News for hackers. Stuff that matters.

dblotsky

Re:Greppability is an underrated code metric on Monday September 02, 2024 @11:57PM (#41431107)
Hard agree with the idea of greppability, but hard disagree about keeping names the same across boundaries.

I think the benefit of having one symbol exist in only one domain (e.g. “user_request” only showing up in the database-handling code, where it’s used 3 times, and not in the UI code, where it might’ve been used 30 times) reduces more cognitive load than is added by searching for 2 symbols instead of 1 common one.

Re:Predictions Scorecard, 2021 January 01 on Monday January 11, 2021 @04:43PM (#25737708)
Aren't these effectively lab tests of robots that can navigate a home?

[dancing] https://www.youtube.com/watch?v=fn3KWM1kuAw [cleaning clutter] https://www.youtube.com/watch?v=C8-w9eF24gU

Re:Getting rid of NPM scripts on Friday January 01, 2021 @02:13AM (#25601491)
Those all sound plausible! But...

1) I suspect GNU Make will be installed on any system where node code will run.

2) You don’t have to .PHONY anything that will never be a real file.

3) My bet is the Makefile will be shorter and clearer, but I am of course biased since I’m used to the syntax.

Re:Getting rid of NPM scripts on Friday January 01, 2021 @02:09AM (#25601477)
Is there any design decision of Make that makes it not suitable for executing programs?
Re:Getting rid of NPM scripts on Saturday December 26, 2020 @05:05PM (#25546802)
The `./make` shell script kills me. Why not just use Make?
Re:Please – A cross-language build system on Wednesday December 02, 2020 @02:32PM (#25280449)
Yeah, that tradeoff between generality and correctness really seems tyrannical.

It kind of feels like the best trajectory is to start small with a general build system, and upgrade as needed? And then if you are confident the project will grow, starting with the specific build system fine too.

Re:Please – A cross-language build system on Sunday November 29, 2020 @05:14AM (#25244167)
I am personally not convinced that any build system can be correct and general, but perhaps that’s my lack of experience speaking.

On that 30 minute note though: so, how big does the project need to be in order for Make not to be enough? And at that size, why wouldn’t the project invest the extra week it takes to get the Makefile correct?

Re:Please – A cross-language build system on Saturday November 28, 2020 @04:06PM (#25240544)
How big does the project have to be in order for this system to have benefits over Make?
Re:E. B. White’s “Plain Style” at 75 on Monday October 26, 2020 @11:36PM (#24904279)
It sounds like the last point, about disobeying the rules when appropriate (my reading of it), was meant exactly to cover these corner cases.
Re:E. B. White’s “Plain Style” at 75 on Tuesday October 20, 2020 @12:50AM (#24834019)
Reminds me of Orwell’s Politics and the English Language: https://www.orwellfoundation.com/the-orwell-foundation/orwel....
Re:Baumol Effect on Saturday October 17, 2020 @05:03PM (#24813347)
Can this all be explained by the cost of labor being uniform (since humans are humans in all industries)?

So if one industry demands more labor, all others will feel the rising price of labor?

Re:Programming trick questions on Saturday February 29, 2020 @10:55AM (#22451157)
This looks like the Post Correspondence Problem at first glance: https://en.m.wikipedia.org/wiki/Post_correspondence_problem.
Re:Programming trick questions on Saturday February 29, 2020 @10:51AM (#22451130)
They inserted spaces though, between characters and words. In this problem, all spaces are removed.
Re:Comma Two Devkit on Wednesday January 08, 2020 @12:48AM (#21988701)
You’re missing the huge “works incorrectly” space of outputs.
Facetious answer: Are there any good examples of projects using Parcel for a web app? ;)

Real answer: probably, but a ton of production code is closed-source.

But why restrict to web apps? Most influential software projects in the world use Make.

Make can run all the tools like babel, uglify, etc.
Just use Make.

Takes just as long to learn, and is transferrable everywhere.

He’s called for some disciplines (e.g. women’s studies, anthropology) to be boycotted by students and ultimately removed.
I find objectionable his “slippery slope” argument about pronouns and his calls for silencing disciplines with which he disagrees.
Peterson said many other things that are objectionable. If he only said what Zhukov said, Peterson would also be in a more favourable light.
Re:Help me ask why you didn't just on Tuesday December 03, 2019 @07:17AM (#21691722)
The one I often go for is: “What is the reason you’re not using sshd?”

It implies that I understand there is a reason, that I don’t know the reason, and that I’m ready to be surprised if indeed there is no good reason.

1). It doesn’t work in all shells, so you have to think about your environment before you use it.

2). I often start with `bar < foo`, so if I need to add more arguments to `bar`, I need to always skip over the input.

3). If I just want to delete all processing and look at the input, I can’t just backspace away the processing because `< foo` is invalid.

Re:Belarus’s Soviet Economy on Monday December 02, 2019 @09:02PM (#21689269)
How vast are the differences in expenses needed to live (due to climate or otherwise)?
Re:Belarus’s Soviet Economy on Monday December 02, 2019 @08:56PM (#21689224)
The title says “GDP Per Capita, PPP”.
Re:Belarus’s Soviet Economy on Saturday November 30, 2019 @07:37PM (#21673016)
China is investing in Belarus. They build factories and infrastructure, likely to get easier access to the European markets.
Re:Belarus’s Soviet Economy on Saturday November 30, 2019 @07:30PM (#21672984)
The “PPP” in the graph is easy to miss, but is what makes the comparisons possible.
Re:An introduction to data processing on the Linux command line on Saturday November 23, 2019 @01:44PM (#21615699)
What makes it useless? It’s functionally the same but makes it easier to author pipelines, which I think is a valid use.
Re:Stuxnet was embarrassing, not amazing (2011) on Sunday November 03, 2019 @01:05PM (#21435462)
We often forget, but even the world’s top professionals get tired, cut corners, and make mistakes.

But also, what substantial gains would have come from adopting the techniques in this article?

Re:An Illustrated Guide to Useful Command Line Tools on Tuesday October 29, 2019 @02:11AM (#21384604)
In this case, I mean the POSIX standard. But yes, shipping by default in operating systems is how things (eventually) make it into the standard!
Re:An Illustrated Guide to Useful Command Line Tools on Tuesday October 29, 2019 @02:08AM (#21384584)
You’re right, and I’m not at all against having custom tools in any controlled environment. In fact, I think enhancing a controlled environment with custom tools is extremely productive.

My point was more about education. I think becoming an expert in the standard tools should come before learning any custom ones, because it is a transferable skill.

Older »