3 ms·
Today while programming in Javascript I found myself wishing for static typing and preconditions. Honestly. It'd have saved me a fair amount of time. I ... I t
by jacques_chester 14y ago
Today while programming in Javascript I found myself wishing for static typing and preconditions. Honestly. It'd have saved me a fair amount of time.
I ... I think this is what getting old feels like.
- 16s 14y agoOlder and wiser. Compilers and static typing are a good thing if you care about code quality and reliability.
- jacques_chester 14y agoAt least on the server side I can use stricter languages. On the client I can do it only indirectly (I'm thinking of playing with TypeScript ... someday).
- masklinn 14y agoWhy not Roy or Elm? I've also seen references to Typed Clojurescript, which seems to be coming around.
- tikhonj 14y agoYou should check out js_of_ocaml [1]. It's a very good compiler from OCaml to JavaScript which lets you interface with the DOM and existing JavaScript libraries relatively easily. You can play around with OCaml in the browser[2], which was implemented using js_of_ocaml. [1]: http://ocsigen.org/js_of_ocaml/ http://ocsigen.org/js_of_ocaml/ [2]: http://try.ocamlpro.com/ http://try.ocamlpro.com/
- raganwald 14y agoI can't help you with static checking, but if you'd like a little runtime pre- and post-condition checking for JavaScript... https://github.com/raganwald/method-combinators/blob/master/lib/method-combinators.js https://github.com/raganwald/method-combinators/blob/master/...
- bborud 14y agoIt is what it feels like when the amount of experience you have starts to pull alongside your tendency to buy into the hipster bullshit from people who have never written a decent piece of software yet figure they have lots of wisdom to share with us through their blogs. Why is it always the fuckheads who can't program who feel they have to give you their advice? And why is their advice always "escape to <programming language du jour> and all your problems will disappear". If they knew how to program they'd be able to teach you how to program in the language you are already using.