News for hackers. Stuff that matters.

jansimonek

Yup, just happened to me yesterday. I was in a hurry and didn’t screw lid of a coffee thermos correctly. Luckily the mac seems to have survived.
Re:Day 20. My favourite problem from Advent of Code 2023 on Sunday December 31, 2023 @01:10AM (#38822204)
I think the problem is not OOP - the author approached the problem bottom-up, they were trying to foresee usage for code they were writing. The resulting code is a bit of a mess, not OOP (there’s even instanceof) Instead we should start with the usage, with the code creating the value and then filling in the details. In this problem, if we choose to simulate the circuit I would start with the simulator code, introducing abstractions for components only if it would help the simulator.

I liked the demonstration of this approach in Chapter 6 of Robert C. Martin’s Agile Software Development: Principles, Patterns and Practices. It’s available online here:

https://people.scs.carleton.ca/~jeanpier//Fall2021/Topic%201...

Re:Ask HN: Programming Courses for Experienced Coders? on Friday December 29, 2023 @04:16PM (#38810290)
I found the book Growing Object-Oriented Software Guided by Tests to be very inspiring. The book demonstrates how to evolve the code architecture, how and when to add new concepts and abstractions, how to listen to the tests, when to refactor etc. The tech in the examples is dated, but the gist of the book is very relevant.

Another classics are: - Working effectively with legacy code - Refactoring: Improving the Design of Existing Code

All of these books have a lot of depth to them

If you are reading papers on water softeners you might already know everything this video contains. For me it was a good intro to the topic of good water for making coffee: https://youtu.be/jfElZfrmlRs
Re:Belgian ISP under 250 Gbps DDoS for days on end on Saturday September 18, 2021 @03:54PM (#28578779)
"without your knowledge"... is there a way to check if my IP was participating in the DDoS? If they are filtering the traffic, they might be able to create a list of IPs that I can check. Or perhaps, an IP can be associated with a contact info so the if any of my devices would be infected and participate in DDoS, I would get notified by the victim and could take action.