News for hackers. Stuff that matters.

dreistdreist

How fast can you read?

- Clean Code

- Code Complete 2

- The Pragmatic Programmer

- Professional PHP

- Effective Java

- Domain Driven Design Distilled

Re:PHP 5.6 vs. PHP 7 Performance Comparison on Tuesday April 03, 2018 @05:55AM (#16743214)
Spaceship operator is mentioned, but nothing about the much improvemed type declarations?
Re:Ask HN: Books you wish you had read earlier? on Sunday June 04, 2017 @05:53AM (#14480593)
Same here. For one it's full of inconsistencies and even if it all were true, I would not want to believe in such a neurotic, angry god.
Look for companies that maintain a software for decades.

Agencies and fresh startups often optimize for speed, not maintainability. But there are plenty of companies that optimize for maintainability, you just have to look for them.

Mentions of code reviews, automatic tests, SOLID, DDD etc are usually good signs.

Re:Ask HN: How liquid is Bitcoin? on Tuesday May 23, 2017 @05:16AM (#14399915)
No, lots of index fund investors don't have a diverse portfolio, they get the diversity through the index fund (see bogleheads).

A worldwide index fund from Vanguard is all you need if you want to own the whole market. Optionally add a few bonds to reduce volatility.

Re:I can't seem to land a programming job on Wednesday May 03, 2017 @06:19AM (#14254406)
/r/cscareerquestions/ has a weekly resume thread
Re:What are the worst parts of PHP? on Wednesday April 12, 2017 @06:49AM (#14096441)
I am working on a nice PHP 7.1 codebase where we just started with DDD. It's awesome.

Yeah there is quite a bit of legacy code still there (the application is over a decade old), but all the new OOP code is nice to work with and we are getting rid of the old one slowly over time.

Re:What are the worst parts of PHP? on Wednesday April 12, 2017 @06:47AM (#14096428)
Automatic escaping would not work anyways, you need to escape for the appropriate context (HTML, JS, CSS, JSON, XML...).

You don't have to use a framework, just use one of the many composer packages available like Twig for example...

Re:Ask HN: Best Laptop for Developers Right Now? on Sunday March 26, 2017 @07:11AM (#13960171)
Please don't give Lenovo any of your money after all the shady stuff that they have done.
Re:Ask HN: 32 and lost on Tuesday December 27, 2016 @08:48AM (#13263086)
If there are not a lot of developers in your country, I would assume that a lot of businesses are running without proper software as well. If they had software they would have an advantage over their competitors who don't have it.

Have you tried talking to business owners to see if they have problems that can be solved with software? Being good with computers and able to program is a really large advantage if most people around you are not in that position.

Re:To Slow Global Warming, We Need Nuclear Power (Op-Ed) on Thursday December 22, 2016 @04:49AM (#13236148)
I don't think the obesity problem is due to lean body mass (which water weight is)...
Re:To Slow Global Warming, We Need Nuclear Power (Op-Ed) on Thursday December 22, 2016 @03:20AM (#13235789)
Why did nobody notify me that the law of thermodynamics changed?

It is not physicially possible to gain weight when you have a caloric deficit. Where would it even come from?

Re:New XPS 15 Laptop on Wednesday December 21, 2016 @03:03AM (#13227555)
Lenovo is much worse than Dell though... They deserve to go bankrupt after superfish and all that other crap they did.
Re:True cost of recruiting a developer [infographic] on Tuesday December 20, 2016 @09:05AM (#13219836)
Lots of people apply for the jobs, but only a small percentage is actually good.

Of course some of the interview processes are ridicilous, but after seeing the world from the other side of the table I understand where they are coming from.

Re:New XPS 15 Laptop on Tuesday December 20, 2016 @09:02AM (#13219807)
Did they fix the coil whine?
Re:Ask HN: What is stopping you from being fit? on Tuesday December 20, 2016 @04:54AM (#13218627)
Do something together with your kids. They will enjoy it too.

(Maybe not cycling or running though... but they will probably enjoy stuff like rock climbing)

Re:Ask HN: What is stopping you from being fit? on Tuesday December 20, 2016 @04:53AM (#13218619)
I might have to clarify, I wasn't talking about obese people who are addicted to food. I was thinking more about all those people who "just need to lose 5kg" and yet 2 years later they are still the same weight (or heavier).

Addiction is a different problem, but losing weight itself is easy if you track calories (I know lots of people who claim the opposite).

Re:Ask HN: What is stopping you from being fit? on Tuesday December 20, 2016 @04:51AM (#13218613)
I can't stand running and other boring cardio. Try to find a sport that you can enjoy (and that your body can handle). For me it was BJJ, lots of fun and you get plenty of cardio at the same time.

But you are doing the right thing by focusing on losing weight through nutrition.

Re:Ask HN: What is stopping you from being fit? on Tuesday December 20, 2016 @04:46AM (#13218596)
Do sporty activities together with your wife and kids.
Re:Ask HN: What is stopping you from being fit? on Tuesday December 20, 2016 @04:44AM (#13218583)
I eat lots of sugar (and pizza), but I have very low bodyfat. It's about how much you eat (food with sugar often has lots of calories).

Just track how much you eat, then you can be lazy with food preparation (I am too). If you feel hungry and need something filling, eat some protein.

Tracking calories can be annoying at first, but after doing it for a couple of week you'll get intuition and you won't need an app anymore.

Re:Ask HN: What is stopping you from being fit? on Tuesday December 20, 2016 @04:41AM (#13218568)
Nothing, I'm in great shape.

Understand the basics of nutrition, mainly calories in calories out. I (and many people I know) often move 5 or more kgs up or down in preparation for a tournament with weight classes. It's really no big deal if you track your calories.

I'm always surprised how people struggle with losing weight, it's really not that hard to do.

Do some sport that you enjoy regularly that covers your cardio and lift some weights. Eat somewhat healthy, but mostly watch how much you eat.

Re:CHVote: Open-source e-voting system from Switzerland on Wednesday December 14, 2016 @03:43PM (#13179480)
Most people in Switzerland vote by mail.
Why default to 5.6 when we are on 7.1 now?
Re:Ask HN: Should I learn PHP in 2017? on Tuesday December 06, 2016 @06:47AM (#13113904)
You can write very good and clean code with PHP, especially now with 7.1

Grab a copy of clean code, familiarize yourself with composer (which is an awesome package manager) and you are good to go.

Just avoid crappy code like wordpress and co, stick with OOP and you won't regret it.

Renting a desk in an open office full of random people? Sounds like a horrible work environment.
Re:The art of building products on Wednesday November 30, 2016 @10:39AM (#13071557)
How did you get this to front page? Manipulation?
Re:Let's Colonize Titan on Sunday November 27, 2016 @09:45AM (#13049384)
Things get contaminated by radioactive material, not by radiation exposure [0]. And of course obligatory xkcd [1].

[0] https://www.mirion.com/introduction-to-radiation-safety/radi...

[1] https://what-if.xkcd.com/29/

Please don't give Lenovo any money. They were caught 3 times already for installing spyware on their systems, why support such a company?

Considering the XPS myself, but waiting for the coil whine to be fixed. I have also been eyeing the ASUS UX305 as possible alternative.

Older »