News for hackers. Stuff that matters.

fredastaire

Re:Facebook’s war on free will on Tuesday September 19, 2017 @11:08AM (#15285281)
7 words about Facebook: No way to put pages into categories

(so much about free will / organzing)

In the sense that OOP is often used in very stupid ways (dunno about C++ but in other languages, have a look at PHPUnit it is the best example of misunderstood OOP) I can understand C programmers. Golang is also very simple for a reason
Re:What exactly is your problem with PHP? on Thursday May 18, 2017 @02:16PM (#14369645)
For no reason. On the other hand I dont know why people would not like it, the language is great if used in a simple way.

What exactly is your problem with PHP?

Wondering why so many people hate PHP. I use it with static classes without OOP and never had any issues with it. Like JS and other languages and especially OOP there are really bad example (like the source of PHPUnit for example) but the language itself is mostly fine - you can almost use it as beautyful as golang if you get rid of namespaces and all that stuff. So if you dont like PHP - why?

( Read More... | 4 comments | 3 points | on HN )
Re:The red pepper is all grey, no joke on Monday April 10, 2017 @10:28AM (#14078741)
Unfortunatly no real explantion, the pic is from here https://twitter.com/AkiyoshiKitaoka/status/85065339069460480...
Re:The red pepper is all grey, no joke on Monday April 10, 2017 @10:25AM (#14078723)
color picker says #b9bdbc on top left corner of the pepper :)
My favorite: - Procedural PHP / static calls - Lightweight NoSQL DBAL (I use MongoDB under the hood but any key/value store would do) - Vanilla JS on the Client - Plain CSS witout preprocessors

Since I do a lot of JS on the client I am quite happy not to have it on the server as well - also I dont like that npm madness / complex infrastructure around it.

Where do you tend to?

The state of OOP in PHP

I just hat a look at the code of PHP Unit and must say this is one of the many examples where a key library uses the worst OOP patterns that lead to a complex nightmare of data ping-pong. Is there any movement that with a name against this sort of overdona OOP? Have seen this on many projects and there is so much wrong about it that I dont know where to start. It seems like OOP in PHP has a...

( Read More... | 6 comments | 4 points | on HN )