asyncrosaurus

joined 1 year ago
[–] asyncrosaurus 6 points 1 year ago* (last edited 1 year ago)

Having watched the video, I can confirm it is a terrible summary. The point of the Fireship 'Code Reports' is to be a light hearted summation of the news.

The video is hilarious, with tonal and visual gags that are simply lost in translation to text. You might as well just scan the home page to get the acctual news.

[–] asyncrosaurus 12 points 1 year ago* (last edited 1 year ago)

6First off, Inheritance is not "dead". We all just learned to favour interface inheritance over class inheritance.

Secondly, class inheritance is not bad or useless, it's just poorly taught and wildly overused. The fact that the article still uses the bullshit Animal kingdom example is indicative of that. There's no value in trying to model cats and dogs in OOP.

Inheritance is pretty useful in niche scenarios, mostly involving polymorphism and probably in the context of Library or Framework code. Trying to re-use code between classes with inheritance is always the incorrect approach. Two classes that are unrelated but have similar properties don't actually need a common base class, they can each have their own version of the data.

The big, big, big problem outside the education system comes back to the top down, design-first approach. There's still this strange practice of trying to model class hierarchies and abstract classes in neat little diagrams before you've actually started writing code. No UML type document has ever survived contact with the real world. If you need any form of inheritance, it will become obvious as you build out your system.

[–] asyncrosaurus 15 points 1 year ago* (last edited 1 year ago) (1 children)

Everyone freaking out that bad AI content is going to ruin the internet, when the internet was already ruined long ago by terrible human generated content.

[–] asyncrosaurus 21 points 1 year ago* (last edited 1 year ago)

Not testing is crazy. Once you realize you can actually refactor without ever having the fear you've broken something, there's actually opportunity to make rapid improvments in structure and performance. Taking 2 minutes to write the test can save your hours of debugging. Unless you're building a throwaway prototype, not unit testing is always the wrong choice.

[–] asyncrosaurus 10 points 1 year ago* (last edited 1 year ago) (1 children)

People expect the web to work like a desktop app (no page reloads).

Do users expect it, or do product owners expect it? Because from my experience, typical users dgaf if a site is a SPA or is SSR as long as it's functional and loads quickly. When we did user surveys, the legacy Wordpress version scored just as well as the fancy schmancy React re-write. Only time SPA outscored a traditional web page is (obviously) heavily interactive components (e.g. chat, scheduling calendar)

[–] asyncrosaurus 7 points 1 year ago

It's not the watching. It's the entitlement people feel that they can talk/disrupt to you at any time, even if you have your headphones on and are clearly focused.

[–] asyncrosaurus 17 points 1 year ago (1 children)

It was partly marketing, part to appease Sun Microsystems at the time, whose Java Applet product were supposed to be the true unifying web platform. Having a built-in scripting language in the browser annoyed a great many important people, who felt it undercut the importance of Java. Calling it Javascript gave the illusion that it was a smaller subset of Java, (even though it clearly isn't), while also benefiting from the more recognizable/marketable name 'Java', which was the new hottness.

view more: ‹ prev next ›