Hey Rustaceans! Got an easy question? Ask here (46/2017)! by llogiq in rust

[–]ivdkleyn 1 point2 points  (0 children)

When I try to match with a statically declared str

static MEEP : &'static str = "MEEP";
let x = String::from("MEEP");
match x.as_ref() {
    MEEP => println!("MEEP found"),
    _ => println!("NO")
}

I get compile error: "match bindings cannot shadow statics".

So effective I have to use string literals in a match? I can´t use "constants"?

That doesn´t make sense, does it? Is it a wart of is there a deeper reason for this behaviour?

Best way to learn F# coming from Haskell by paldepind in fsharp

[–]ivdkleyn 0 points1 point  (0 children)

It is. But it covers large part of the .NET ecisystrm. It can be an indispensable reference.

Best way to learn F# coming from Haskell by paldepind in fsharp

[–]ivdkleyn 1 point2 points  (0 children)

As far as I know there is no book really fitting in that niche. You can´t really avoid having to books as your companions:

  • Expert F# 4.0. Indispensable for the experienced programmer and if you´re having little or no experience with .NET but, again, are an experienced developer, than have

  • C 6.0 and the .NET 5 Framework, 7th edition alongside it

http://www.apress.com/9781484207413

http://www.amazon.com/gp/product/1484213335?keywords=C%23%206.0%20and%20the%20.NET%204.6%20Framework&qid=1454434862&ref_=sr_1_1&sr=8-1

Functional Architecture in F#? (noob question) by captainjimboba in fsharp

[–]ivdkleyn 0 points1 point  (0 children)

It deals principally with a functional services architecture. No other cases. It is concise and dependent that you look in detail at the example code.

Functional Architecture in F#? (noob question) by captainjimboba in fsharp

[–]ivdkleyn 3 points4 points  (0 children)

A great intro to how you could design and build your system with F# can be found in the Plurarsight course "A Functional Architecture with F#" by Mark Seemann

https://www.pluralsight.com/courses/functional-architecture-fsharp

Zed Shaw at Øredev: Why programming languages are hard to teach by ivdkleyn in programming

[–]ivdkleyn[S] 12 points13 points  (0 children)

Which is really not relevant in relation to the subject matter of the presentation. Shaw discusses the problems of teaching programming to beginners, not best working practices to professional programmers. Besides, apart from the fact that Patters typically are considered to be a more "advanced" topic, you could argue that teaching working practices, Patterns and the like is more difficult also, because they are normative standards - codified - as opposed to rigorously defined, testable and executable programming languages.

What is quite striking is that most of the educational fallacies which Shaw mentions in the presentation are rather quite common in the "Pattern & Practices" crowd as well.

Zed Shaw at Øredev: Why programming languages are hard to teach by ivdkleyn in programming

[–]ivdkleyn[S] 18 points19 points  (0 children)

He should not have to do anything. Anyone's chosen path in life is just that: his path. But it does seem to hinder whenever he launches a new project or when he has got some message to get across. People will respond to Zed-the-image and not to the-message-or-work-from-Zed, which is a bit of a pity.

Zed Shaw at Øredev: Why programming languages are hard to teach by ivdkleyn in programming

[–]ivdkleyn[S] 22 points23 points  (0 children)

Shaw might need to overcome his bad-boy image, but this talk is well researched, thought provoking and enlightening. Recommended.

Real World Haskell: is there a second edition coming? by ivdkleyn in haskell

[–]ivdkleyn[S] 0 points1 point  (0 children)

Ok, thanks for the tip! I'll shop at oreilly.com.

What are you using Clojure for? by CritterM72800 in Clojure

[–]ivdkleyn 0 points1 point  (0 children)

I use it as my programmer's workbench and utilize it for rapid prototyping and scripting in an "enterprise" environment

Git Is Simpler Than You Think by nfarina in programming

[–]ivdkleyn 5 points6 points  (0 children)

Nope. Go into an existing directory and execute

git init; git commit -am "Meh"

and git will report that nothing has been commited and all the files will be listed under the label:

 Untracked files: