News for hackers. Stuff that matters.

zerocount

Re:Why Is C Faster Than Java (2009) on Monday December 27, 2021 @04:28AM (#29700943)
Based on the article, the title should be, "Why is C Git faster than JGit." It's literally nothing but that.
Re:Why Is C Faster Than Java (2009) on Monday December 27, 2021 @04:17AM (#29700879)
There's no counter argument to an article that specifically breaks down why C git is faster that JGit back in 2009. Lucene isn't relevant.
Re:Why Is C Faster Than Java (2009) on Monday December 27, 2021 @04:05AM (#29700822)
They don't show up because their not out evangelizing every oppurtunity they get.
Re:Why Is C Faster Than Java (2009) on Monday December 27, 2021 @04:02AM (#29700799)
What exactly is switching to Rust?
Re:Lua: Good, Bad, and Ugly Parts (2012) on Monday December 27, 2021 @03:32AM (#29700623)
I'm not convinced scripting languages are not suitable for large projects. It's said a lot, but I've never seen proof one way or the other. I suspect unmanageable code-bases derive from uncontrollable project forces, ignorance, or not caring, but not because of the perceived short comings of a scripting language.
Re:The Sound of Silence: A Noise Map of the U.S. on Sunday December 26, 2021 @04:27AM (#29690933)
I roll my window up if I'm near motorcycles. There's been too many times when my ear got blasted all of a sudden.

Worse is booming bass. Not while driving, but at home from the neighbors. Hours on end... boom... boom...

Re:Ask HN: What are the best tech books you read in 2021? on Sunday December 26, 2021 @04:11AM (#29690880)
Can't wait for this. I'm still on his 'patterns' book. He's such a good author.
Re:JavaScript for Impatient Programmers on Sunday December 26, 2021 @03:27AM (#29690714)
This is what happens when you're impatient.
Re:JavaScript for Impatient Programmers on Sunday December 26, 2021 @02:33AM (#29690478)
For beginners, this is the last book to start with. I'm a big fan of Doug Crockford, but this book is opinionated and the examples are often not well explained.
I'm not a Java developer so forgive my ignorance, but is Eclipse as good as IntelliJ?
NVME might be the greatest advancement ever in terms of noticable speed improvement. SSD was alright, but I wasn't blown away by it.
Re:Fix the unit test and open a giant hole everywhere on Saturday December 25, 2021 @05:28AM (#29682039)
There should be no shared code and all projects should be totally isolated from eachother. If you need shared code, fork it and maintain it to your needs.
That was elegant and much more insightful.
Re:Building Remote Teams for Startups on Friday December 24, 2021 @12:06PM (#29675268)
There's also a school of thought that managers are not necessary. I'm a big fan of it.
Re:Building Remote Teams for Startups on Friday December 24, 2021 @11:56AM (#29675173)
This actually makes sense. No need for the big survellance net.
Re:Building Remote Teams for Startups on Friday December 24, 2021 @11:45AM (#29675065)
Yes, it is about the deadlines. That's what keeps me getting a paycheck, which is the reason I'm working. What you describe as teamwork is just every day development activity. There is no discipline to attending a meeting when the meeting is mandatory.

I can always spot someone who 'runs teams' by the way they prioritize the company and piss on the workers in the name of the customer and 'teamwork.'

This is why you can't trust a manager. You can't seperate their nose from the company's ass.

Re:Wish HN: Happy Holidays on Friday December 24, 2021 @11:28AM (#29674894)
Merry Christmas and Happy Hacking from NorthWest Arkansas! Don't let the hogs get away from you! :)
Re:Best practices for writing code comments on Friday December 24, 2021 @07:32AM (#29673091)
More often than not, I see code without any comments. There's this idea of writing self documenting code that really changed the commenting world.

And that whole thing was evangelized by Uncle Bob and the Agile wrecking crew. Before long it was bad to use comments, switch statements, or new up an object. This, in turn, led to the TDD movement, Agile only movement, enterprise patterns for all projects movement, and I'm sure there are others I'm forgetting.

Please comment your code. Tell me what you're trying to accomplish with this block of code. The function name doesn't always suffice. And I don't want to stare at it for 15 minutes, or re-format your 160 column LINQ statement, or Google your regex so I can read what it does on StackOverflow.

Even commenting pseudo code would be fine.

Re:Best practices for writing code comments on Friday December 24, 2021 @07:10AM (#29672947)
I've also seen it where every comment was just who made the code change and the date. "John K. 10/13/1994"
Re:Best practices for writing code comments on Friday December 24, 2021 @06:58AM (#29672889)
Man, I've been bit a few times with this. I'll read code and think, "Why the hell did they do that?" Later, when I'm almost done re-writing it, I see the edge case they were working around.

At the very least, comment these situations.

Re:Best practices for writing code comments on Friday December 24, 2021 @06:53AM (#29672856)
Only in the mind of the person writing it.
Re:Best practices for writing code comments on Friday December 24, 2021 @06:50AM (#29672845)
Yep. I make a commit on every little change and every team I've been on makes me squash them on merge.

Comments in Git commits are bad. Just comment the code and make sure the comments are updated while you're in the code. You can also look at them in a code review. The argument that they get outdated is easily remedied, but people just want to keep claiming they write 'self documented code.'

Re:Most advice is pretty bad on Thursday December 23, 2021 @02:08PM (#29665264)
I understood it along the same lines as you and don't understand the down-voting.
Yeah, I'm a pen and paper guy. Make a list of things to do each day and start at the top. If I don't finish the list, it's the beginning of the next day's list.

For some reason, I prefer pens over pencils.

Re:Tinder just permabanned me or the problem with big tech on Thursday December 23, 2021 @05:56AM (#29660634)
You're right about the world moving on. It's not practical for most people. I'm 51 and don't use it for much except texting and the hotspot, but I still take it with me if I'm expecting a call while I'm outside the house.

When you grow up without a phone, you prepare more than you have to now. You just learn the streets so you don't need a map app. Bring a jacket in case you break down and have to walk. Carry a can of 'fix-a-flat' in the car or a plug kit to take care of flat tires.

I'm too set in my ways to change.

Re:Skillsoft Buys Codecademy for $525M on Thursday December 23, 2021 @02:55AM (#29659653)
I think most of us 'old' people taught ourselves and I'm certainly not special. It just takes an interest in whatever you're doing. Before the Internet we had the manual to read, and that's about it.

With the Internet, it's real easy to lose focus and bounce around between topics.

I'm pretty sure it was hyperbole.
I think it's clear he's referring to the fact that natural immunity has protected most of South Africa and thus, the world is freaking out over Omicron. As was suggested by a doctor in South Africa at the very beginning, which was ignored by governments. Of course, excuses for the South African data not aligning with the whole "vaccines are the only answer" narrative are now being created.
Sure is. There's millions of us walking around without getting shots every six months.
Yes, but nobody in a position to affect a country with Covid lockdowns and laws believed her. It seems like money and politics are running the show.

Older »