HN user

mekazu

76 karma
Posts1
Comments48
View on HN

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.

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.

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.

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 !

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.

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.

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.

Unit tests that don’t read or write to disk and don’t try thousands of repetitions of things should be bleeding fast, but the most useful integration tests that actually help find faults (usually with your assumptions about the associated APIs) often need interaction with your disk or database or external service and tend to take a bit more than a few seconds. I find you need both.

I kinda like the idea that Americans could be gradually migrated from Imperial to metric by osmosis over the course of a few thousand measurement based scientific articles.

Was anybody else thinking these tools would be great for general development and debugging purposes? Anything that uses the network or file system anyway. The fact that they can detect malware reads as just an aside to me.

Seeing AI for iOS 9 years ago

Nope, the company is called shifty jelly. They've still got other iOS apps though so it wouldn't surprise if they were taken down.

We know the greenhouse effect is real (just walk into a greenhouse and you'll know), so the only remaining question is whether CO2 causes a greenhouse effect in the earth's atmosphere. That should be reasonably easy to prove right? Sounds like basic chemistry (which I never did).

It can be difficult to verify the quality of code in GitHub. Even well know products that work really well can be implemented with awful code. I suspect the vast majority of projects on GitHub are experimental and unfinished. Using this feature would be very unlike a system like Stack Overflow where there are strong incentives to provide good answers.

Still, if the user is aware of these pitfalls then it could be quite useful. Perhaps it could be improved if GitHub provided some incentive for developers to showcase their better work as 'known good' examples and let the community vote on the quality, similar to the Stack Overflow model.

LambdaNative 10 years ago

No idea but coding against unit tests, rather than testing every change on a running app, should help avoid that frustration.

I find if I'm struggling to come up with a word it's because I've lost the conversational flow of the sentence I'm writing, or of the point I'm trying to make. If I try to describe it out loud to an imaginary or, ideally, a real person, I'm usually then able to convey what I was trying to say, though usually by restructuring the form of the argument, rather than by conveniently finding the right word.

Often complex thoughts come to me not as fully constructed sentences. I might forget how I intended to finish a sentence by the time I'm three words in, lost in a forest of opportunities for converting the faint cognitive signal to an established element of prose.

I find I am better able to articulate a problem after I've explained it to a number of people on different occasions. The first person I explain it to won't have the foggiest what I'm talking about, probably because I'm constantly grasping for words, but to the fifth person the problem will seem trivial.