Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codecurve
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
91.
▲
by
codecurve
11y ago
For all the gripes surrounding the lack of TCO on the JVM, Clojure really does provide a great set of tools to deal with iteration in a functional way. It's a rare thing when I need to fall back to using loop & recur.
92.
▲
by
codecurve
11y ago
Haha, that's a pretty clear case for them not being distracting!
93.
▲
by
codecurve
11y ago
Author here, would be interested to hear people's take on the addition of illustrations (illustration is being generous, I know). Do you find them distracting or do they help break up the text?
94.
▲
Lisp in Your Language
(danthedev.com)
215 points
by
codecurve
11y ago
|
76 comments
95.
▲
by
codecurve
11y ago
You'll be able to achieve that behaviour when node also supports destructuring. import { readFile, writeFile } from 'fs'; import { clone } from 'lodash';
96.
▲
by
codecurve
11y ago
Probably for the same reasons you can't write var function diameter() {} It's definitely a shame that the only way to achieve consistent behaviour between variables and named functions requires you to write the name twice
97.
▲
by
codecurve
11y ago
Totally agree, it is much more important to be able to reason about mutability. I would disagree that it's super-easy to reason about var, despite being lexically scoped. It still causes an enormous amount of confusion when loops and c
98.
▲
by
codecurve
11y ago
I think that completely depends on the flavour of code you write. If you mostly use imperative styles, then the large proportion of your declarations will be `var` and `let`. It definitely makes refactoring harder in the direction you menti
99.
▲
by
codecurve
11y ago
Why not use `const` as default? I would argue that using `let` instead is a premature optimization of readability. It's easier to reason about a variable if you know it will always be one value—even if the value may be mutated (which i
100.
▲
Zurb Analyse Google's New Logo
(zurb.com)
1 points
by
codecurve
11y ago
|
0 comments
101.
▲
Transducers in JavaScript
(jlongster.com)
1 points
by
codecurve
11y ago
|
0 comments
102.
▲
Architects Want to Build Minas Tirith in the UK
(indiegogo.com)
2 points
by
codecurve
11y ago
|
0 comments
103.
▲
Immutable.js to seamless-immutable
(noredinktech.tumblr.com)
2 points
by
codecurve
11y ago
|
0 comments
104.
▲
by
codecurve
11y ago
You can use the Chrome dev tools to run an audit. One of the performance metrics it tracks is the number of unused CSS rules.
105.
▲
by
codecurve
11y ago
Sure, the underlying storage mechanisms are different and it doesn't support as many types, but I didn't say it was a good polyfill.
106.
▲
by
codecurve
11y ago
That's good to hear, I wasn't aware of Typed Objects. I guess the library linked at the end of the post is basically a very non-specific polyfill already? Well, using it like that is one way to get around bitwise littering.
107.
▲
by
codecurve
11y ago
Author here. There were a lot of ends that I tried to tie up that started to be difficult to find hard evidence for. Some of the string/object storage stuff is discussed casually in mailing lists, but there aren't great places I c
108.
▲
Binary in JavaScript
(danthedev.com)
128 points
by
codecurve
11y ago
|
29 comments
109.
▲
Calling an array of functions in JavaScript (2013)
(zpao.com)
9 points
by
codecurve
11y ago
|
1 comments
110.
▲
Mostly Adequate Guide to Functional Programming in JavaScript
(github.com)
114 points
by
codecurve
11y ago
|
64 comments
111.
▲
by
codecurve
11y ago
(function double() { return this * 2; }).call(2) === 4 I didn't have to box anything to pass a primitive as this. Maybe some other versions are different, but this works in Chrome 40 and Firefox 33.
112.
▲
Airbnb ES6 Styleguide
(github.com)
2 points
by
codecurve
11y ago
|
0 comments
113.
▲
Pure CSS Logic Gates
(codepen.io)
1 points
by
codecurve
11y ago
|
0 comments
114.
▲
I Was Wrong About JavaScript (2013)
(simpleprogrammer.com)
2 points
by
codecurve
11y ago
|
0 comments
115.
▲
by
codecurve
11y ago
Either being 21 years old with a degree and a company or becoming a proficient musician as a self taught guitarist.
116.
▲
Continuation-passing style in JavaScript (2010)
(matt.might.net)
35 points
by
codecurve
12y ago
|
12 comments
117.
▲
A standard for building APIs in JSON
(jsonapi.org)
1 points
by
codecurve
12y ago
|
0 comments
118.
▲
by
codecurve
12y ago
I teach a first year Intro to Unix module (CS and ICT) at a University in the UK. We ran this for our students as an exercise and it went down really well. We've got people using Vim on a daily basis who probably would have never heard
119.
▲
by
codecurve
12y ago
I live in a house of four CS students in the UK and it is the staple drink at home. It fuels many of our programming sessions. However, we can't buy it in shops round here and we have to order it in bulk from the supplier. We probably
120.
▲
Has the War on Drugs Been Lost?
(bbc.co.uk)
1 points
by
codecurve
12y ago
|
0 comments
More ›