Recent submissions

Comment · 1 month ago
It’s probably a delimiter. Or an escape indicator.
Comment · 1 year ago
Agree that it’s good to get the certainty of zero memory leaks (assuming there’s no associated bugs in apache) but it’s not that hard to write code that doesn’t cause memory leaks for stateful apps as long as you are able to follow certain simple principles and avoid bugs in the third party libs you use.
Comment · 3 years ago
I wonder if the author knows about `watch`. It seems like it might’ve saved some effort with a better outcome.
Comment · 3 years ago
This is an great example of how you don’t need fancy graphics for good, playable and engaging games. The music combined with the sound effects works really well too and is very simple.
Comment · 4 years ago
But they wouldn’t announce it until it’s pretty much ready.
Comment · 4 years ago
Most good software that I can think of has the luxury of being delivered whenever it’s ready. It’s not estimation that improves the quality of the product but good cost/benefit analysis, although you can get one from the other.
Comment · 6 years ago
Could use mv -iv for interactive and verbose if you want a rollback or commit alternative.

The real question is: why move files at all?

Comment · 6 years ago
I use Perl similarly to awk if I need to use regex rather than white space delimited fields.

I think if you know Perl really well and can remember the command line arguments - particularly -E, -n, -I and -p - then it’s a good swap in substitute for grep, sed, awk, cut, bash, etc when whatever 5 min task you’re working on gets a tiny bit more complex.

Similarly a decent version perl 5 seems to be installed everywhere by default.

I’m curious to know if anyone would say the same about python or any other programs? I’m not particularly strong in short python scripting.

Comment · 6 years ago
> Therefore, this line actually says:

    !didIMakeAMistake() || CIsWrongHere();
> If you understand how short-circuit evaluation works, you can understand that this will result in the following:

   if (!didIMakeAMistake()) 
      CIsWrongHere();
Can someone explain this? I’d have thought that was right without the !
Comment · 7 years ago
Employees are valued by businesses more for their expertise than for their work. I’d rather have one dev who knows how to solve difficult problems than a hundred who don’t. Roughly.
Comment · 7 years ago
I wonder why pg didn’t launch this article on a Tuesday.
Comment · 7 years ago
Yeah if the last election result wasn’t a perfect demonstration of voter apathy and disengagement I don’t know what would be. Having said that, that’s just the majority - the rest of us are very engaged I promise! Just uselessly, impotently quiet.
Comment · 7 years ago
National security is important, but so is whistleblowing, and the ability for journalists to protect their sources. There’s a trade off here between, and it’s worth looking at this from all angles to ensure that the AFP have the right intentions.
Comment · 7 years ago
Sounds similar to P2PE.
Comment · 7 years ago
I agree, and I like having those ‘oh wow, I can do that in bash? That’s dangerous, but awesome’ moments just by researching how to get stuff done. Really people don’t know what they’re getting themselves into when they start down the shell scripting path.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton