HN user

dr0verride

31 karma
Posts0
Comments21
View on HN
No posts found.
PHP 8.5 8 months ago

PHP is still an incredibly verbose and tedious language to work with. I'm glad that it's continuing to improve because I'm stuck with it everyday.

The system knows to serve you ads about the new topic because it's new. You're already getting ads for the stuff you're normally talking about. The new topic stands out easily.

It doesn't have to be your phone. Could be your TV or any other device.

Most importantly there's just patterns of behavior. Companies are absolutely desperate for every scrap of data they can get on you. Why would they not capture audio from your mic?

I use my ereader for entertainment and paper books for technical information.

I'm not really a book person though. I don't think owning a bunch of physical books makes me smarter and I don't particularly like the look of shelves upon shelves of books.

Electron 4.0.0 8 years ago

The fact that the component is made up of html, css and javascript instead of layout code, styling code and logic code seems irrelevant.

To me, #5 is calling out developers that write sloppy, thoughtless and obviously inefficient code and then claim premature optimization when someone comments on the quality of that code.

Underneath all of this lies the fallacy of thinking that you can predict the future needs of your code

The point of OOP isn't to predict the future. You should be actively aware that you cannot know the future and leave youself room for change.

I second this approach. The only state my behavior classes hold are injected dependencies.

The only caveat to this approach is that for some cases you will need a state accumulator of some sort. But those state manipulations are isolated and easy to deal with.