Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Roboprog
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
241.
▲
by
Roboprog
8y ago
Now write a unit test for the inline block of code within the longer function which would have become the nested function??? You write the test (where any is needed) for the outer function. Edit: the start of the discussion was about using
242.
▲
by
Roboprog
8y ago
A bit of our “heritage” in programming destroyed by the C family of programming languages Pascal, like Algol, had nested subroutines for decomposing longer operations without leaking the details. Nested functions is one of the things I like
243.
▲
by
Roboprog
8y ago
Apology accepted.
244.
▲
by
Roboprog
8y ago
As well they should:-) But IE 11 has been given a stay of execution until 2025 I believe. And sadly most of my users are still on it (government and healthcare)
245.
▲
by
Roboprog
8y ago
Too bad no wasm on IE 11 Where it would be needed most
246.
▲
by
Roboprog
8y ago
Bank tellers went through this in the 90s. You could tell when they swapped out their terminals for Windows. No more machine gun F key navigation, hello “hunt n grunt” cruising with the mouse.
247.
▲
by
Roboprog
8y ago
Amos was such a happy child :-)
248.
▲
by
Roboprog
8y ago
Indeed. I’ve googled for this research, and there isn’t much of it - just something that “everybody knows”. The best, recent thing I found was a study done about 5 years ago or so (I think) by a fellow at UC Davis, and the data were pretty
249.
▲
by
Roboprog
8y ago
I can’t thing of anything useful that MS added since Windows XP. Going from 16 bit cooperative to 32 bit preemptive in the 3.x to 9x change, useful. Going to multiple accounts with permissions in the 9x to XP change, useful. Rearranging the
250.
▲
by
Roboprog
8y ago
I love how that platform puts SQL into s expressions, with all the capabilities this implies. Not that I’ve actually touched any Lisp since the 80s. Back to work in Java / Hibernate hell...
251.
▲
by
Roboprog
8y ago
Pro: they ask Con: they ask Still, “how about tonight?” Is preferable to “right now, conference call be damned “
252.
▲
by
Roboprog
8y ago
Median $127K on that search, FWIW Well over $100K, but that won’t go as far in San Jose as it would in Sacramento :-)
253.
▲
by
Roboprog
8y ago
I don’t understand why you got voted down. I don’t have the enthusiasm for Java I did 20 years ago (the alternate for employment in Sacramento was largely C++ back then, mind you), but I think what you said is accurate. Personally, I want t
254.
▲
by
Roboprog
8y ago
I find the whole library/framework existing functionality thing to be vastly overrated. There’s a certain minimum you need, but once you hit it, OK. For me, what I liked about Ruby when I played with it years ago was how expressive an
255.
▲
by
Roboprog
8y ago
Kotlin runs on the standard JVM, not just android.
256.
▲
by
Roboprog
8y ago
One of the most spot-on comments I’ve read in a while. I laughed out load when reading the part about talking to the actual / real users in the doc. We pretty much never do that, but by God, we’re doin’ agile, ya know.
257.
▲
by
Roboprog
8y ago
Thanks for the tip. I have been using Ramda’s R.partial() function a bit, as well as some in-house stuff (e.g. - to generate 0-arity event handlers), but this would be a very helpful feature, particularly once IDE recognition becomes widesp
258.
▲
by
Roboprog
8y ago
Small population that would expend the effort for something expected to be of little benefit at best. Some people can’t seem to function without static (global?) types though, and this works for them.
259.
▲
by
Roboprog
8y ago
I wish Typescript had support for partial function application, since I use that much more than “Executioner” classes. Actually, I’ve moved away from OOP in general in my JavaScript, only as a last resort. (Not going to put in long comment
260.
▲
by
Roboprog
8y ago
Several cities / regions in CA have their own electric utilities Few big issues with SMUD, MID or TID
261.
▲
by
Roboprog
8y ago
Title is a bit click-bait-y :-)
262.
▲
by
Roboprog
8y ago
I think most people, certainly me, who would be looking for a Pascal compiler are trying to avoid C++ like the plague. It’s funny when you read about languages like Rust and Go basically trying to undo decades of C-induced damage, reinventi
263.
▲
by
Roboprog
8y ago
Yep Now you have 2 problems Is the cliche But now it’s Dart instead of GWT
264.
▲
by
Roboprog
8y ago
Irony: “literate programming” means pretty much the opposite of “self documenting code” (AKA - undocumented code) First write the documentation, then embed relevant bits of code next to the relevant discussions, then have a special compiler
265.
▲
by
Roboprog
8y ago
Literate programming has next to nothing to do with “English like grammars” or “self documenting” tongue twister symbol table names. It has to do with writing documentation, and embedding little bits of code to do what the documentation des
266.
▲
by
Roboprog
8y ago
Well, it’s a little shorter if not a lot shorter
267.
▲
by
Roboprog
8y ago
Gotcha. Didn’t know about TC39 for the ES language concern distinct from web / browser stuff.
268.
▲
by
Roboprog
8y ago
Thanks. I suspect the internals of “===“ in this case could look for the presence of a closure data pointer on a Function or some such hack. Anyway, I’d probably use an actual prototype on something (with “methods” and) hundreds of instanc
269.
▲
by
Roboprog
8y ago
That’s actually a pretty good question. It’s probably in the spec, which is probably long :-)
270.
▲
by
Roboprog
8y ago
I would be interesting to see exactly how much stuff is copied by the various implementations in such cases. There are obviously some stack or other data frames that have to be captured somehow, but the code itself should in principle be so
More ›