alexc

joined 2 years ago
[–] alexc@lemmy.world 3 points 3 weeks ago (1 children)

Isn’t a cornucopia from Greek myth? That would mean that literally nothing, apart for the wheat and the nuts should be in that picture…

[–] alexc@lemmy.world 4 points 3 weeks ago (2 children)

Or just atlantically

[–] alexc@lemmy.world 12 points 1 month ago (1 children)

If that’s the case, renounce your title already…

[–] alexc@lemmy.world 1 points 1 month ago

There is a difference, of course - One is a proponent of Socialism that benefits society as a whole. One is a proponent of socialism that benefits businesses.

I’ll leave you to decide which is which

[–] alexc@lemmy.world 3 points 1 month ago

The FBI probably need to go take another look in his bathroom. I’ll be there’s a few less boxes in evidence than there used to be

[–] alexc@lemmy.world 8 points 1 month ago (3 children)

I agree with much of what you say, but the idea that this isn’t “gods” earth any more I find risible. Much of this was done in via religion which is a man-made system to capitalize on insecurity and fear.

I’m curious what you mean about “not participating in this fucked up world” and “sacrificing the privileges and comfort of the modern life”. For me, these are highly ambiguous phrases.

The problem is not a modern/permissive/whatever society but the inability of those on the right wing to tolerate anyone who is different and, as we are now finding out, to attempt to erase them. Love is the answer, and I tend to agree this is not compatible with current politics.

[–] alexc@lemmy.world 224 points 1 month ago (20 children)

Everyone is focusing on the sex-act, but what about the Putin /photos part? This suggests strongly that Putin does have Kompromat on Trump, which is long suspected.

[–] alexc@lemmy.world 148 points 1 month ago (2 children)

Holy shit. That’s almost one Elon Musk’s Salary dollars

[–] alexc@lemmy.world 9 points 2 months ago (1 children)

My suggestion is to be mindful of things you are doing and make decisions about continuing them or ending them and plan accordingly. I tend to recommend reading up on Stoicism as it help contextualize.

A more specific plan is to pick one thing you want to improve and practice that. Try and do this once a day and make it a habit. After you’ve adopted a couple of good habits, you’ll be ready to try stopping something, thought that is tougher to achieve.

[–] alexc@lemmy.world 2 points 2 months ago

True… I personally dislike Java and work mostly in Kotlin these days.

[–] alexc@lemmy.world 1 points 2 months ago

It tastes like ass anyway. The American’s are welcome to it.

[–] alexc@lemmy.world 4 points 2 months ago (2 children)

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 was recently gifted an immaculate Apple IIc, but it came without a power supply. I wasn’t able to find a replacement online, and so I am hoping someone with more knowledge than me knows where I may be able to find one?

view more: next ›