Functional Programming

Random thoughts on API design

This excel­lent book by Steve Krug was a real eye open­er when I chanced upon it a few years ago. I’m not a UI/UX design­er by trade or by train­ing, and as a back­end devel­op­er my appre­ci­a­tion for UI/UX has very lit­tle out­let in my day-to-day job either. But still I find plen­ty of sym­me­tries …

Ran­dom thoughts on API designRead More »

Warning, Conferences ahead!

Hel­lo, it’s been a while since I last wrote, work has kept me busy for a while – we’re mak­ing some inter­est­ing changes and exper­i­ment­ing with Dock­er again, so fun fun fun! Any­how, I thought I drop you a note to tell you about some of the cool con­fer­ence that are hap­pen­ing around Europe in …

Warn­ing, Con­fer­ences ahead!Read More »

Project Euler – Problem 68 Solution

Prob­lem Con­sid­er the fol­low­ing “mag­ic” 3-gon ring, filled with the num­bers 1 to 6, and each line adding to nine. Work­ing clock­wise, and start­ing from the group of three with the numer­i­cal­ly low­est exter­nal node (4,3,2 in this exam­ple), each solu­tion can be described unique­ly. For exam­ple, the above solu­tion can be described by the …

Project Euler – Prob­lem 68 Solu­tionRead More »

Project Euler – Problem 64 Solution

Prob­lem All square roots are peri­od­ic when writ­ten as con­tin­ued frac­tions and can be writ­ten in the form: For exam­ple, let us con­sid­er ?23: If we con­tin­ue we would get the fol­low­ing expan­sion: The process can be sum­marised as fol­lows: It can be seen that the sequence is repeat­ing. For con­cise­ness, we use the nota­tion …

Project Euler – Prob­lem 64 Solu­tionRead More »

Project Euler – Problem 80 Solution

Prob­lem It is well known that if the square root of a nat­ur­al num­ber is not an inte­ger, then it is irra­tional. The dec­i­mal expan­sion of such square roots is infi­nite with­out any repeat­ing pat­tern at all. The square root of two is 1.41421356237309504880…, and the dig­i­tal sum of the first one hun­dred dec­i­mal dig­its …

Project Euler – Prob­lem 80 Solu­tionRead More »

Project Euler – Problem 61 Solution

Prob­lem Tri­an­gle, square, pen­tag­o­nal, hexag­o­nal, hep­tag­o­nal, and octag­o­nal num­bers are all fig­u­rate (polyg­o­nal) num­bers and are gen­er­at­ed by the fol­low­ing for­mu­lae: The ordered set of three 4-dig­it num­bers: 8128, 2882, 8281, has three inter­est­ing prop­er­ties. The set is cyclic, in that the last two dig­its of each num­ber is the first two dig­its of the …

Project Euler – Prob­lem 61 Solu­tionRead More »

Elm – functional reactive dreams + missile command

I saw this tweet on my time­line the oth­er day.. which remind­ed me again to look at Elm and I’ve spend the last week or so get­ting myself immersed with this won­der­ful lit­tle lan­guage built around the idea of func­tion­al reac­tive pro­gram­ming. My first impres­sions of Elm so far have been very pos­i­tive, there are …

Elm – func­tion­al reac­tive dreams + mis­sile com­mandRead More »

Contrasting F# and Elm’s record types

Hav­ing spent some time this week with Elm I have seen plen­ty of things to make me like it, a more in-depth review of my expe­ri­ence with Elm so far is in the works but for now I want to talk about Elm’s record type and how it com­pares with F# record type which us …

Con­trast­ing F# and Elm’s record typesRead More »

Project Euler – Problem 60 Solution

Prob­lem The primes 3, 7, 109, and 673, are quite remark­able. By tak­ing any two primes and con­cate­nat­ing them in any order the result will always be prime. For exam­ple, tak­ing 7 and 109, both 7109 and 1097 are prime. The sum of these four primes, 792, rep­re­sents the low­est sum for a set of …

Project Euler – Prob­lem 60 Solu­tionRead More »

Customizing document styles with FSharp.Markdown.Pdf

Fol­low­ing on from my last post on for­mat­ting a Mark­down doc­u­ment into PDF using FSharp.Markdown.Pdf, if you don’t like the default styling (which I tried to mim­ic style Github for­mats Mark­down doc­u­ments with) you can set your own styling for the dif­fer­ent types of Mark­down ele­ments by going down a lev­el of abstrac­tion. The FSharp.Markdown.Pdf.MarkdownStyleNames …

Cus­tomiz­ing doc­u­ment styles with FSharp.Markdown.PdfRead More »

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.