@@ -142,6 +142,10 @@ <h2>Open Mic Life</h2>
142142 < img src ="/text.fbe7fb78.png " height ="100px " width ="100px ">
143143 < h2 > blog1.txt</ h2 >
144144 </ div >
145+ < div class ="folder " onclick ="toggleCard('func') ">
146+ < img src ="/541500.f1fe23f8.png " height ="100px " width ="100px ">
147+ < h2 > Func.ts</ h2 >
148+ </ div >
145149 </ section >
146150
147151 < div id ="blog1 " class ="card-nested ">
@@ -150,19 +154,86 @@ <h2>blog1.txt</h2>
150154 < span > ↩</ span >
151155 </ button >
152156 </ p >
153-
157+
154158 < h2 > What to do with your thoughts?</ h2 >
155159 < i > (Put them on the internet!)</ i >
156160 < p >
157- The idea of having a personal website is a good way to express creativity. From old style 90s websites and personalized homepages to
158- big multinational brands. Having a place where you can try new idea's and directly share them with the wonderfull world of the wide web
159- gives a feeling of ultimate freedom. Whether you put your idea's on some sticky notes on the wall, or in a public directory for everyone to see.
161+ The idea of having a personal website is a good way to express creativity. From old style 90s
162+ websites and personalized homepages to
163+ big multinational brands. Having a place where you can try new idea's and directly share them with
164+ the wonderfull world of the wide web
165+ gives a feeling of ultimate freedom. Whether you put your idea's on some sticky notes on the wall,
166+ or in a public directory for everyone to see.
160167 Writing it down and sharing your thoughts is the first step towards realization.
161168 </ p >
162169 < p >
163- Don't be affraid to share new idea's and random thoughts. Just make stuff, throw it into the world and let the people respond to it.
170+ Don't be affraid to share new idea's and random thoughts. Just make stuff, throw it into the world
171+ and let the people respond to it.
172+ </ p >
173+
174+ </ div >
175+
176+ < div id ="func " class ="card-nested ">
177+ < p >
178+ < button class ="back-btn " onclick ="toggleCard('func') ">
179+ < span > ↩</ span >
180+ </ button >
181+ </ p >
182+
183+ < h2 > The beauty of functional programming</ h2 >
184+
185+ < p >
186+ Functional Programming is one of those skills that not every programmer has
187+ and where the opinions among developers deviate whether they think it is usefull, or not.
188+ Where one programmer will see pure beauty within closures, lambda expressions, immutability, function compositions
189+ and curried functions.
190+ Others are are completely confused by the syntax.
191+ </ p >
192+
193+ < p >
194+ Functional Programming might not get you a job in the real world, but it definitely gives the engineer a
195+ higher level of understanding the world of computer science.
164196 </ p >
165197
198+ < p >
199+ I am one of those programmers who sees the beauty within functional programming paradigms and once in a while
200+ it is nice to fiddle some draft functions in blanco project.
201+ </ p >
202+
203+ < p >
204+ Let's take a look at a code snippet written in Typescript, that I picked up while following a software
205+ engineering minor and that I still use as of today speaking.
206+ (Guess what, something I learned in school is still usefull.)
207+ </ p >
208+
209+ < p >
210+ The snippet includes an interface Func, that simulates the structure of a lambda, simular to the Func in C#.
211+ Each attribute is a function.
212+ < br > < br >
213+ Where:
214+ </ p > < ul >
215+ < li > < b > f: </ b > Is the orignal expression.</ li >
216+ < li > < b > then: </ b > A function composition that composes two functions and returns them as one.</ li >
217+ < li > < b > repeat:</ b > Mimics the concept of a loop by composing the same function < b > n-</ b > times.</ li >
218+ < li > < b > repeatUntil: </ b > Mimics the concept of a < b > do while</ b > by also composing the function based on a guard condition.</ li >
219+ </ ul >
220+
221+ This little snippet is a powerfull starting point to build libraries, frameworks or even a new programming language.
222+ A possible use case might an undo function, like the in Google Drive or MS Word. With function composition you can easily track back
223+ every single step.
224+ < p > </ p >
225+
226+ < p >
227+ Understanding every inch of these concepts is a long road. Eventually functional programming practices the concept
228+ of writing code that doesn't break over time. Being able to write code that does not break, that sounds like music
229+ to my ears and a good reason to give this priciple a chance.
230+ </ p >
231+
232+ < p >
233+ < script src ="https://gist.github.com/Steven24K/fc92f94dc16c3d837d1ef5ca911cb42f.js "> </ script >
234+ </ p >
235+
236+
166237 </ div >
167238
168239 </ div >
0 commit comments