Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jeremiep
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
571.
▲
by
jeremiep
13y ago
Indeed. At the very least, that scan() function could be broken down into smaller parts to be individually profiled.
572.
▲
by
jeremiep
13y ago
Looks like the same kind of problem that plagues interpreter loops: that top-level switch statement is causing a branch misprediction on almost every hit. The solution i've seen was to have each opcode handler determine what the next h
573.
▲
by
jeremiep
13y ago
Exceptions I can easily live without; Haskell's monads provide a much better mechanism for error handling (Maybe, Either, IO, etc).
574.
▲
by
jeremiep
13y ago
You can also call pure D functions at compile-time, along with mixins this gives you something close to the power of Lisp macros.
575.
▲
by
jeremiep
14y ago
I saw something similar using AngularJS and D3 not too long ago: http://sullerandras.github.com/SVG-Sequence-Diagram
576.
▲
by
jeremiep
14y ago
I'm waiting for the reply article "We The People: The MPAA is a threat to us all and the best response is to make it illegal".
577.
▲
by
jeremiep
14y ago
There's also ace-jump-mode to quickly move the point in the visible area of the buffer. It can be a bit faster than C-r/C-s sometimes.
578.
▲
by
jeremiep
14y ago
Reminds me of an old essay by Steve Yegge about Agile: http://steve-yegge.blogspot.ca/2006/09/good-agile-bad-agile_...
579.
▲
by
jeremiep
14y ago
600k is nothing, the government probably wastes more than that on a daily basis.
580.
▲
Erik Meijer on Big Data, Types of Data Stores and Reactive Programming
(infoq.com)
2 points
by
jeremiep
14y ago
|
0 comments
581.
▲
by
jeremiep
14y ago
Ah, that is correct. You can't use if as a first-class function in Lisp. I still thought you could pass macros around like normal functions in Common-Lisp. The Lisp interpreter I wrote for fun could do that since the function value is resol
582.
▲
by
jeremiep
14y ago
The ternary is an expression, not a statement :) You can write: a = b ? c : d; in C/C++, you can't write a = if(b) { c; } else { d; }.
583.
▲
by
jeremiep
14y ago
In Haskell/Ruby/CoffeeScript: a = if b then c else d In Lisp: (setq a (if b c d)) Only Lisp implements them as a function (more precisely, a macro), but to the programmer there's no difference between using if and calling a function. Of cou
584.
▲
by
jeremiep
14y ago
My take on why ifs are "bad" is that they are statements, just like for, while, switch and others. Being statements they can't be composed as you would do with expressions.
585.
▲
by
jeremiep
14y ago
Agreed, I wouldn't call ifs a code smell but rather OOP itself a code smell. In any decent language, if will be an expression, not a statement. There is no difference between if and a function.
586.
▲
by
jeremiep
14y ago
I think there will be a paradigm shift in programming styles. In the last few years I noticed a change from inheritance to composition, from imperative to declarative and now reactive programming is looking very promising. Multi-core concur
587.
▲
by
jeremiep
14y ago
I'm curious about what makes Sass/Compass superior to LESS?
588.
▲
by
jeremiep
14y ago
I don't agree with the author here because mastering a single language will only give a narrow perspective on programming in general. I'll explain with my personal evolution through languages: The first programming language I ever got very
589.
▲
by
jeremiep
14y ago
You can find the source at http://code.google.com/p/alsing/source/browse/
590.
▲
by
jeremiep
14y ago
Some companies have more than 20-30 employees. All these "quite cheap" expenses quickly add up. This is money better spent towards getting a better product on the shelves. Now when you consider that managing unix machines requires much less
591.
▲
by
jeremiep
14y ago
This is a great idea! Although I'd prefer if the generation form was the center of attention in that page. On my 14" MacBook display I had to scroll down to see it. Reminds me of an unicode lorem ipsum I came across some time ago which I fo
592.
▲
by
jeremiep
14y ago
Back then, Sun had to spend a fortune to push Java down the throats of developers. Mostly by selling it to their clueless managers instead. Java was born out of a trend and still lives as one to this day, good thing only the corporate world
593.
▲
by
jeremiep
14y ago
I'd rather avoid Java itself like the plague :) The JVM may be great, but the language itself is mediocre at best! Maybe if it someday gets type inference, removes the null pointer (and therefore the stupid NullPointerException in "memory s
594.
▲
by
jeremiep
14y ago
I used to write Java on the server-side and hated it. It felt like mindlessly writing boilerplate code for a living with a language assuming I'm an idiot who can't be trusted with more than one paradigm at a time. The last backend applicati
595.
▲
by
jeremiep
14y ago
The whole Windows ecosystem is a huge mess for developers right now. Visual Studio 2012 often crashes, the API documentation is often incomplete and not helpful, there are quite a number of incompatibilities between W8 and WP8, XAML has med
596.
▲
by
jeremiep
14y ago
I don't know about the alternatives, but CoffeeScript often expands to twice the lines of code to JavaScript, without comments and longer lines. Not having to track braces, optional parenthesis, not having to type 'function' and others quic
597.
▲
by
jeremiep
14y ago
Couldn't agree more. There seems to be a strong correlation between people pushing pair programming and people I wouldn't want to work with in the first place.
598.
▲
by
jeremiep
14y ago
I believe its the other way around; the general public is not generally good at understanding the wisdom of his points.
599.
▲
by
jeremiep
14y ago
Steve Yegge wrote a great piece on the subject: http://steve-yegge.blogspot.ca/2008/06/done-and-gets-things-...
600.
▲
by
jeremiep
14y ago
You could also create a unix socket and have node.js bind on it.
More ›