News for hackers. Stuff that matters.

sdfsfsf3kjdf

Re:How much can a Clojure developer do alone? on Tuesday March 30, 2021 @03:44PM (#26639418)
Sure, it's definitely something worth taking into consideration, I just wouldn't value it too highly and in many cases I think there are much better indicators of ability.
Re:How much can a Clojure developer do alone? on Tuesday March 30, 2021 @03:08PM (#26638958)
> I imagine the developer pool is much smaller but the candidates are higher quality

People always say this about their favorite niche language and it always feels a little too self serving with little evidence to back it up. Learning languages is relatively simple and enjoyable, especially when the overwhelming majority of those people never end up working on difficult problems in said language. I think it often gives a false sense of superiority as well.

Re:How much can a Clojure developer do alone? on Tuesday March 30, 2021 @02:57PM (#26638798)
> but the longer your repl session is open and the more you change and compile, the more likely you are going to end up with a mixed state in memory that does not reflect how your program would behave if run from scratch.

I've seen this happen multiple times including during live Clojure talks at conferences. I also never found REPL driven development all that beneficial outside of quickly toying with trivial pure functions and that's possible in basically every popular language these days.

Re:Choose Boring Technology (2015) on Sunday February 21, 2021 @10:56AM (#26214377)
Extremely shallow criticism based off of little more than personal anecdotes.
Re:Golang generics proposal has been accepted on Wednesday February 10, 2021 @04:18PM (#26094949)
In Rust you can solve this via derive or a macro. Typescript's conditional types and the associated utility types are a nice solution to this problem as well. You can do a ton with Partial, Required, Pick, Omit, Exclude etc.
Re:Golang generics proposal has been accepted on Wednesday February 10, 2021 @04:12PM (#26094877)
How exactly are you going to implement a type safe option type without generics? You either have to use interface{}, which is obviously not type safe, or write/generate an option type for every type contained within it. Sum types are a lot less useful if you don't have generics.
Re:Golang generics proposal has been accepted on Wednesday February 10, 2021 @04:01PM (#26094744)
> Is that not what generics would fix?

No. That would be fixed by having something akin to typeclasses, traits or interfaces.

Elm's List, Maybe and Array are all defined using a generic type parameter.

Re:Golang generics proposal has been accepted on Wednesday February 10, 2021 @03:50PM (#26094579)
> Well, I just come from a Elm gig and I must say I was not too bothered with the lack of generics there.

Elm has generics.