• 1 Post
  • 30 Comments
Joined 2 years ago
cake
Cake day: July 8th, 2023

help-circle







  • SOLID is generally speaking a good idea. In practice, you have to know when to apply it.

    it sounds like your main beef in Java is the need to create interfaces for every class. This is almost certainly over-engineering it, especially if you are not using dependency inversion. IMHO, that is the main point of SOLID. For the most part your inversions need interfaces, and that allows you create simple, performant unit tests.

    You also mention OOP - It has it’s place, but I would also suggest you look at functional programming, too. IMHO, OOP should be used sparingly as it creates it’s own form of coupling - especially if you use “Base” classes to share functionality. Such classes should usually be approached using Composition. Put this another way, in a mature project, if you have to add a feature and cannot do this without reusing a large portion of the existing code without modifications you have a code-smell.

    To give you an example, I joined a company about a year ago that coded they way you are describing. Since I joined, we’ve been able to move towards a more functional approach. Our code is now significantly smaller, has gone from about 2% to 60% unit testable and our velocity is way faster. I’d also suggest that for most companies, this is what they want not what they currently have. There are far too many legacy projects out there.

    So, yes - I very much agree with SOLID but like anything it’s a guideline. My suggestion is learn how to refactor towards more functional patterns.



  • I wouldn’t say a PoS but clearly has a lot to learn - and what sounds like a crisis is not the place to do that. And he sounds like he has a lot to learn.

    As a father, I believe that at a minimum you should care for your kids at least ONE day every week on your own, preferably more. And not just the fun stuff, either. Make sure it comprises bed time, bath time, making and eating meals, as well as getting the little tykes out of the house. Either parent needs to be able to cope alone, and more importantly, trust that the other can, too.

    My suggestion is that he needs to have a frank conversation with his wife, and commit to the above care routine. He needs to be able to do this in a way that allows him to admit he doesn’t know things and get advice. But he does need to do the work and ensure his wife feels supported.







  • There’s definitely a difference between the people proposing such things (a minority) and their followers:

    The minority definitely seem get caught with their pants down more often, usually with a rent-boy and a bag of meth. Totally get that maybe this is about “forbidden fruit”

    But the rest? Definitely due lack of education and religion (which usually follows the former).

    Now, for the most part, the poor southerners I’ve met really don’t care about homosexuality when you talk to them alone. In bigger groups, it’s definitely a problem. How you fix this, I definitely don’t know, but it is definitely not by victimizing.

    Unfortunately, the minority have created other “cognitive barriers” to prevent the poor from realizing what their actual challenges are - Immigrants is another good example.

    In short, this is just another form of class warfare.




  • As other’s have mentioned, it’s what the Nazi’s did.

    It’s the whole cycle of violence thing. The Nazi’s did it to the Jews, who were less powerful than them. And now the Jews are passing it along to a people that are less powerful than they are.

    Jews have long been proud of their tradition of questioning and reasoning. What I want to hear is Netanyahu in court explaining why his government did this. And it has to be more than a “they did it first” argument.