Better HN
topnewbestaskshowjobs
Log inSign up

sdfsfsf3kjdf

7 karma · joined Feb 10, 2021 (5y ago) · 9 submissions

Submissions

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

> 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.

comment 5y ago · link · parent

> 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.

comment 5y ago · link · parent

Extremely shallow criticism based off of little more than personal anecdotes.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

> 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.

comment 5y ago · link · parent

> 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.