Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aindhaden
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
aindhaden
10y ago
This is true only for a very particular kind of constants, like the ones defining API error codes (eg. define PAGE_NOT_FOUND 404). And those should be covered by integration tests, not unit tests.
2.
▲
by
aindhaden
10y ago
To expand on this, the tool of choice for the frontend part used to be PrototypeJS. In Rails 3.1 the relevant portions were decoupled and became options rather than baked-in, with jQuery as the default but still an option among several: ht
3.
▲
by
aindhaden
10y ago
> it would have been a huge mistake for jQUery to have attempted to become a Backbone, Angular or React What would you call jQuery UI?
4.
▲
by
aindhaden
10y ago
I'd like to point a possible flaw in your counter-argument: jQuery wasn't the only choice and it wasn't the first. PrototypeJS, which came before it, did an arguably better job since it didn't have many of jQuery's
5.
▲
by
aindhaden
10y ago
There were a few CGI script websites around, like Matt's Script Archive and his (in)famous FormMail.pl. There were also URL libs, eventually, as well as other CGI-specific tools, like counters, banners etc. You are right that PHP was t
6.
▲
by
aindhaden
10y ago
Ballmer was onto something.
7.
▲
by
aindhaden
10y ago
Use console.dir(var) for a moment-in-time snapshot. The side panel you get when you click on a var is a debug view, which is a lot more useful as a "live" value watcher.
8.
▲
by
aindhaden
10y ago
And if you need an online tool while away from your computer, http://getvideo.at/ is running on youtube-dl. It will parse the given webpage and list out direct download links.
9.
▲
by
aindhaden
10y ago
I don't see what "regular people" has to do with it... you either know how your filesystem works or you don't. I you don't, the Linux way (I deleted a file but it's still in my editor) can be just as confusing
10.
▲
by
aindhaden
10y ago
It's still going to be XML. JSON is fairly limited, it's literally the serialization format for JavaScript variables, and that one size does not fit all.
11.
▲
by
aindhaden
10y ago
I suspect we may be talking about two different approaches. Nobody _wants_ to trip on a null reference, naturally. But there are different ways of achieving that, and some of them yield additional benefits. One way is to forbid them outrigh
12.
▲
by
aindhaden
10y ago
I've previously toyed with the idea of a "cleaned up" PHP. And each time I abandon it when I remember that Perl, Python and Ruby already exist.
13.
▲
by
aindhaden
10y ago
Unfortunately they decided to go with explicit nullables instead of implicit, which means that you still have to go and write/modify all your code explicitly to benefit from this. Which pretty much negates the benefit. Implicit nullabl