News for hackers. Stuff that matters.

snizzitch

Re:Ask HN: What're the best-designed things you've ever used? on Monday February 20, 2017 @02:51AM (#13685298)
DJI Mavic Pro. Its flying capabilities are remarkable, the 4K video looks almost surreal, and all fits into a pouch the size of a medium-sized camera pouch.

Also very impressed with the build quality of various USB extended batteries, "bullet-proof" USB charging wires, and wall chargers from Anker.

Re:On moving code from C# to F# on Sunday March 20, 2016 @02:46AM (#11322061)
I still think it'd be great if the .NET world were to switch over, if only for the sake of us few F# aficionados. :-)
Re:On moving code from C# to F# on Sunday March 20, 2016 @02:15AM (#11322005)
The (potential) terseness of F# seems like a bit of a superficial benefit compared to other features of the language, such as discriminated unions and pattern matching, excellent support for immutable records, structural equality by default, computation expressions, etc.

I'm a C# developer with almost a decade of experience, and am pretty enamored with F# as well, but like almost everyone else, am stuck using it solely in my own personal time.

However, I'm not certain how much benefit most teams would gain from using F#, after seeing the average (poor) level to which most developers are able to leverage the C# type system to improve the design of their software. Too many developers are forever stuck in a purely imperative paradigm, only knowing how to type one line of code after another, relying exclusively in enums for "extensibility," etc. It seems a bit hopeful to convince the community at large to switch to a language with an improved type system in hope that it will be used to create better software.