Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
astrobe_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
541.
▲
by
astrobe_
4y ago
> If the target audience for the scrips is non-programmers, then sure. It kind of is. Lua was developed as a configuration language "on steroids" for Petrobrass programs. The target users were non-programmers. Nowadays, Lua all
542.
▲
by
astrobe_
4y ago
I've been back-and-forth in my Forth systems along the years on this topic. Just having a built-in code editor (like the traditional "block editor" - or at least it was traditional in the last century) has some advantages - f
543.
▲
by
astrobe_
4y ago
An OS is actually not that "large" - at least if one looks at Linux. If you do a simple LoC count you do get an answer in the millions, yet the core is much smaller and the rest is in a bazillion of drivers. Browser are the typica
544.
▲
by
astrobe_
4y ago
Yes. You can call me smug/elitist, I deserve it for that unnecessary belittling.
545.
▲
by
astrobe_
4y ago
My line of thought - which is perhaps partly and indirectly based on "Small is beautiful" [1] applied by others to software - is that if "large project" is what gets you into (various) troubles, then you should avoid doi
546.
▲
by
astrobe_
4y ago
I'd say no, because this leads to the "macho programmer", "leet programmer" or "cowboy programmer" clichés and it is not very constructive. If you want me to go there, I will say that indeed, saying "
547.
▲
by
astrobe_
4y ago
Half of the article is below the level of /r/coding as far as C goes, only to boast for the billionth time about how safer Rust is.
548.
▲
by
astrobe_
4y ago
The trick you describe reminds me of "first order optimal strategies" [1], a.k.a. "noob strat" or "chesse" in online gaming lingo. The thing is, as your rating rises, you meet more and more player that know tho
549.
▲
by
astrobe_
4y ago
It's not taught, but it is a skill one also develops. Probably this is not taught because french kids already have a hard time with spelling. Fun fact: french physicians are well known for undecipherable cursive hand writing. Part of w
550.
▲
by
astrobe_
4y ago
Depends on countries I guess. In France, the vast majority of the handwritten letters I have received or seen were written in cursive. At some point a handwritten "letter of motivation" was also a de facto requirement for job ap
551.
▲
by
astrobe_
4y ago
That's a surprising point of view. In the schools of the 80/90ies, note-taking had to be done with pen and paper, and you were doing it for hours. Printed documents were rare (in the eighties Xerox machines were a luxury, so they
552.
▲
by
astrobe_
4y ago
Exactly. "Letting it slide" is how we end up being told that because for most people a "hacker" is a cyber-criminal, it is now the sole valid definition.
553.
▲
by
astrobe_
4y ago
I remember very old versions of man random [1] warning against that sort of thing and recommending to pick the high (or low) bits of the random value. Probably the piece of advice was not correct.
554.
▲
by
astrobe_
4y ago
> Are there concepts that our human brains are biologically incapable of understanding As silly as it sounds: UFOs. Chasing UFOs with jet-fighters is probably as silly as a dog eating a credit card. To be clear, I don't imply that U
555.
▲
by
astrobe_
4y ago
> First, you're assuming that users have favorite websites, and that those sites wouldn't work. Both are true almost in my case. Browsers based on older Firefox versions such as Palemoon and Seamonkey don't work with GitLa
556.
▲
by
astrobe_
4y ago
Joke aside, even for regular flight crews and passengers, it is a subject of concerns [1]. [1] https://pubmed.ncbi.nlm.nih.gov/11603132/
557.
▲
by
astrobe_
4y ago
Translation please! ;-) Does this means that e.g. you just ignore the recipes with optional ingredients, or "normalize" them by making them mandatory (or deleting them), or you create two recipes (one with and one without the opti
558.
▲
by
astrobe_
4y ago
Actually, I suspect some people don't like to write and/or read; for some it might even be stressful. Not everyone is an author, and at a smaller scale not everyone is comfortable with written communication. It is true that is mor
559.
▲
by
astrobe_
4y ago
"App" is short for application, which is just a fancy word for program. If a page does computations locally (using javascript), then it is a program; if the page does nothing locally but push requests to the server (get/post)
560.
▲
by
astrobe_
4y ago
It seems to be a complicated way to explain that, if you need decimal values, you can just multiply then by a power of two internally. e.g. if you just need a resolution of 1/256 (a case that comes to mind are measures coming from a an
561.
▲
by
astrobe_
4y ago
I only read TFA around the code examples, so please ignore if this point is addressed. The problem I see with this strategy is that it relies on the programmer or the reviewer paying attention. If I learned something about writing programs
562.
▲
by
astrobe_
4y ago
Browsers used to be. They used to let the user apply their own CSS sheets to websites, and some extensions still allow tem to manipulate pages ("user scripts"). Web technologies were designed to let the user do what they want with
563.
▲
by
astrobe_
4y ago
Ok that was a bit overstated, s/some point people forgot/some people forget/. I don't know what was the common practice a few decades ago because source code was not as visible as it is today, but in my experience what y
564.
▲
by
astrobe_
4y ago
Apparently at some point people forgot that if you don't like an API, library or interface, you can just put a wrapper on top of it. Many libraries are just "toolkits" after all, you are not supposed to use the raw API everyw
565.
▲
by
astrobe_
4y ago
> That's correct. Using strlen on anything but C string literals is just asking for bugs. The thing is untrusted strings don't come from C itself, they come from I/O. Indeed, it is just an input check/"sanitizati
566.
▲
by
astrobe_
4y ago
I don't believe it can be "you can take the test remotely if you let us search the room first" (that judge put an end on this, so it cannot anymore at least in the US). It is impossible to prevent cheating in this context, no
567.
▲
by
astrobe_
4y ago
It's probably just a faculty asking the student to make a 360 with the webcam, according to what they did in my country. That procedure is full of holes, though. There are so many ways to cheat when you don't take a test on-site,
568.
▲
by
astrobe_
4y ago
Another option for users is to "sacrifice" the 0th entry of an array. Depending on the size(as in sizeof) of the entry, it can be worth it. A benefit is that you can then use 0 as a sentinel value; for instance if you have a find
569.
▲
by
astrobe_
4y ago
Thanks for the link. The author has articles about "game theory" such as monster scaling, randomness, or game economy. It is not as advanced as what an actual game designer would write, but it's definitely food for thoughts.
570.
▲
by
astrobe_
4y ago
Bigger vehicles are heavier; at the same speed as a passenger car, they have more kinetic energy. It is even worse when the victim is lighter, as per the momentum conservation principle. The study confirms the physics. What's unexpecte
More ›