Better HN
topnewbestaskshowjobs
Log inSign up

smoothdeveloper

153 karma · joined Apr 7, 2016 (10y ago) · 79 submissions

Submissions

comment 9y ago · link · parent

See if testimonials help: http://fsharp.org/testimonials/

As for me, I also use the awareness of manager to the developer needs to be productive, give best ROI and would definitely use that to select a job.

comment 9y ago · link · parent

The other thing is footprint of codebase, despite almost 15 years of using C#, after only two years, I consistently write F# which is 1/3 of equivalent C# code, writing idiomatic code that any F# developers would grasp.

There are ways a C# aficionado would take to try to not be so verbose, but those solutions won't be considered idiomatic by 99% of C# developers.

At the end of the day, codebase size matters a lot.

comment 9y ago · link · parent

They will still remain generally more painful and more exposed to their issues and choices:

* mutable by default

* OO by default

* null by default

* structural equality a pain to implement

* immutable types a pain to implement

* verbose syntax / failing at the DRY principle

* statement based rather than expression based

* large codebase following those idioms

I don't think they'll not remain popular, but I think a more important share of people will eventually "get it" that there are alternative approaches which are sound, same or greater potential to achieve and thriving eco-system.

comment 9y ago · link · parent

Try fsharp with interactive, with paket it is also very easy to depend on complex graph of nuget dependencies.

comment 9y ago · link · parent

Try defining an instance member with var in C#

comment 9y ago · link · parent

better type inference for anonymous functions, better type inference for instance members.

Another big feature is code layout being more compact and consistent than in C# codebases.

comment 9y ago · link · parent

Cobra language solved this and compiles to C#, they can introduce non nil references, but yes they can't scrap the BCL which is nil ridden.

Seems to go against null propagation operator though :)

comment 9y ago · link · parent

Consider contributing to a type provider for the database engine of your choice, I use SQL Server and F# is a better choice than C# in this regard anyday because of the type provider library that was created by community.

comment 9y ago · link · parent

Agree with other comments, back then MS invested a lot in C# while there was then way more VB users, now it should invest a lot on F# while there are way more C# users.

C# isn't going to dwindle because F# expands, if F# expands C# wins because F# has ability to appeal to developers on non .net platforms, where C# isn't seen as appealing, and F# has ability to bring outstanding projects and idioms to .net eco-system.

Take the returns on investment made with C# all those years and invest a fair share in F#.

The main reasons F# is not picking up have been stated, and I face this situation at my work where my use of F# is put on hold because Microsoft is not investing in it much and my colleagues have the feeling C# is "good enough" which is very short sighted perspective.

comment 9y ago · link · parent

Nowadays, do you use any language which is not C like?

Regarding VB, the language is used by many people whose main occupation is not software development, and even for those doing software there are many who find C# or similar looking languages aren't a panacea (I do, and have around 15 years of C# experience).

In some cases VB is also less redundant than C#, it has better type inference for example.

I'm sure plenty of pascal/delphi developers are also fine without C#.

You should understand that other languages than C/C++/C# make different syntax choices, and it is not hurting C# in anyways that such language exist and prosper.

Note that I had a lot of prejudice against VB but I came back from that perspective, and in the meantime, I feel additions to C# language push it in territory where the syntax is getting really noisy / clumsy (I've picked up F# so I use that it as a metric).

41.

Digging Deeper into the Visual Basic Language Strategy(blogs.msdn.microsoft.com ↗)

2 points · by smoothdeveloper · 9y ago · discuss

42.

FSCL: F# to OpenCL compiler and runtime, 2014 thesis [pdf](github.com ↗)

2 points · by smoothdeveloper · 9y ago · discuss

comment 9y ago · link · parent

> and function chaining with unnamed intermediary results actually reduces readability significantly

For me this is the reverse, having assignment (to verbose and often redundant named identifers) interrupting the flow adds a lot of visual noise compared to an expression using chaining functions (using say |> operator in F#).

comment 9y ago · link · parent

Hence I found it easier to keep all lowercase to avoid headaches.

45.

F# advent calendar 2016(sergeytihon.wordpress.com ↗)

5 points · by smoothdeveloper · 9y ago · discuss

comment 10y ago · link · parent

Try paket, will save you a lot of headaches with the redirect stuff

comment 10y ago · link · parent

  brew install mono
  brew cask install visual-studio-code
once you are in vscode, install ionide: http://ionide.io

You are ready to script (or more) with a great / lightweight editor.

comment 10y ago · link · parent

I actually wish a keyword was also usable for the case of reference type tuples in order to be able to disambiguate those in libraries and later switch the default.

It seems the feature was implemented to answer the concern of interop with C# (which in future v7 will have shorthand syntax only for System.ValueTuple but not for System.Tuple), the language might later add better support for deconstruction without the extra keyword.

For tuples which remain local, the compiler is generally good at eliding those (but not in all cases, if it is a concern, always check the optimized compiled output).

comment 10y ago · link · parent

On Windows / Visual Studio, consider using https://github.com/fsprojects/VisualFSharpPowerTools which has some abilities similar to Resharper.

comment 10y ago · link · parent

Consider using https://github.com/fsprojects/FSharpLint

I'm not sure if it is integrated to ionide yet.

comment 10y ago · link · parent

Some samples can be seen with any .fsx file under https://github.com/StationQ/Liquid/tree/master/Samples

comment 10y ago · link · parent

Paul Blasucci had a good talk on Active Patterns (an F# language feature):

https://github.com/pblasucci/DeepDive_ActivePatterns

This feature allows to encapsulate conditional matching on arbitrary input and dispatching.

For those who know ML, it is making the concept of pattern matching extensible to any construct.

53.

The Language Integrated Quantum Operations Simulator(stationq.github.io ↗)

1 points · by smoothdeveloper · 10y ago · 1 comment

comment 10y ago · link · parent

Moreover, the article doesn't even propose a "good GUI".

The GUI seems to basically expose all the command line arguments in a simple UI, which is great for a developer tool, it would be nice to also see the corresponding command line generated by the tool.

"This Is What Happens When You Let Developers Write Blog With Clickbait Titles"

comment 10y ago · link · parent

Sorry, I think I misunderstood your setup.

The proper way to do it with paket would be:

* get rid of the Dependencies project (it was a side effect of trying to cope with the pain of using raw nuget)

* add a paket.dependencies at the root of your repository listing all nugets used across the solutions

* next to each project, add a paket.references file with the names of the dependencies (only top level, you don't need to list transitive ones)

running the convert-from-nuget command should practically work out of the box if you don't have far out inconsistencies (which I believe you managed by reducing amount of packages.config files), but I'd recommend to do another round of sanitization similar to what I'm describing.

I think if you give it half a day of studying / using paket on a smaller repository, you'll figure out all the things you need to accomplish migration on a large scale repository, after which you'll be recouping benefits any time you need to adjust references in projects / add or update nuget packages.

comment 10y ago · link · parent

In the Stack Overflow survey :)

comment 10y ago · link · parent

UK seems to have the most adoption of F#.

comment 10y ago · link · parent

From all I gathered about people that story was related to, it seems the F# project was done without looking at the C# implementation, on basis of same specifications.

If you were tasked to implement a project because first implementation failed, would you even read the first implementation or just base your work on the specification?

comment 10y ago · link · parent

it is 'paket.references' file next to each proj file and a single 'paket.dependencies' at the root of the repository.

You can also integrate the restore part to msbuild so it works out of box from visual studio, msbuild, teamcity, whatever.

People prefer though to have separate restore packages step, the same way people prefer to use a better tool than raw msbuild to orchestrate build tasks (tool such as FAKE http://fsharp.github.io/FAKE/).

comment 10y ago · link · parent

I think the title can be alleged mostly to the misconception which is prevalent at Microsoft since F# was introduced as a commercial product (before it used to be a Microsoft Research product).

Maybe you are unaware of that?

F# is a pretty good general purpose programming language and that is what the title and article tries to promote (albeit it doesn't give enough and diversified examples).

F# is also a reasonably easy programming language which puts emphasis first on "functional programming" (which you frame as hot keyword, I doubt the language was made to fill a hot keyword).

I don't know about the for pay contents of fsharp.tv, but I gather they might be introductory and try to bring understanding of "functional programming" aspects to an audience which isn't versed in it, it is sure good for them if "functional programming" is a hot keyword and people are looking for training material to pickup that language, but I wouldn't dismiss that as being spammy.

Chill out dude :)

123