magic_lobster_party

joined 6 months ago
[–] magic_lobster_party@kbin.run 1 points 1 month ago

Decipher #52 deciphered in ⏱️ 1m 20s ⭐⭐⭐⭐⭐ https://decipher.wtf

[–] magic_lobster_party@kbin.run 1 points 1 month ago (1 children)

Well, that as well, but it’s an also bit tricky to safely check if a number is even because JavaScript uses floats for numbers.

[–] magic_lobster_party@kbin.run 25 points 1 month ago (3 children)

The popularity of these two packages shows that something is very wrong with JavaScript.

[–] magic_lobster_party@kbin.run 2 points 1 month ago

I’ve already done my part. Waiting for the rest of us

[–] magic_lobster_party@kbin.run 12 points 1 month ago (2 children)

Unacceptable! Sweden is supposed to be first!

[–] magic_lobster_party@kbin.run 27 points 1 month ago

Nokia. They were at the top before iPhone. They couldn’t catch up with smart phones at all.

I believe Intel will be another potential example, but we’ll see about that.

[–] magic_lobster_party@kbin.run 4 points 1 month ago (1 children)

Connections Puzzle #424 🟪🟩🟨🟦 🟩🟩🟩🟩 🟦🟦🟦🟦 🟪🟪🟪🟪 🟨🟨🟨🟨

I’m happy I managed to pick one in each group for my first guess

[–] magic_lobster_party@kbin.run 5 points 1 month ago (2 children)

It depends on what type of programming you’re doing.

But for OOP, my favorite patterns are composition over inheritance and dependency injection (with constructor injection). Once you know these two the rest will follow naturally, and your programs will turn more modular and easier to maintain.

One common misconception about dependency injection is that you need a framework for it. That’s not the case. Frameworks only make some stuff more convenient, but you can do without it.

Otherwise, I think the best way to learn is by doing. It’s easier to see why a pattern is important when you have first hand experience of how painful it is without it.

Edit: Avoid the book “Clean Code”. That book has just done more harm than good in the world.

[–] magic_lobster_party@kbin.run 3 points 1 month ago

Connections Puzzle #422 🟨🟨🟪🟨 🟦🟦🟦🟦 🟩🟪🟩🟩 🟩🟩🟩🟩 🟨🟨🟨🟨 🟪🟪🟪🟪

[–] magic_lobster_party@kbin.run 1 points 1 month ago (1 children)

Red carton is chosen because that’s how it’s commonly depicted in cartoon images.

https://duckduckgo.com/?q=french+fries+cartoon&t=h_&iar=images&iax=images&ia=images

[–] magic_lobster_party@kbin.run 4 points 1 month ago

Most programming doesn’t need math or algorithms. Sometimes it’s needed. For example, 3D programming involves lots of mathematical geometry. It’s difficult to solve these problems without mathematical knowledge.

Maths and algorithms are useful tools to make certain problems easier to make sense of.

view more: ‹ prev next ›