News for hackers. Stuff that matters.
Re:PHP in 2019 by out_of_protocol on Wednesday May 15, 2019 @08:34AM (#19918749)
> (PHP devs memorize the common functions..

Nope (c) Me, after 5 years on trying to but still falling back to googling every 20 minutes despite years and years of using the language.

... And just writing code without looking into docs much after a week with ruby

Re:PHP in 2019 by deckard1 on Wednesday May 15, 2019 @11:54AM (#19920644)
I'm quite shocked that a common complaint of any language is function syntax. Maybe it's been awhile since I've used PHP, but is it really worse than any other language? The problem with PHP is that, at least years ago, it had no equivalent of C's man pages. In C, you're constantly doing "man memchr" or what have you. Perl has "perldoc -f sort".

Don't get me started on Ruby, though. Wading through a tower of classes to figure out where and how some method is defined, only to much later find out it was actually created by define_method or method_missing is absolute torture. And yeah, I know the REPL can provide this info to you. The point is: source code should be obvious in how it functions. Not obscure things through cleverness.

Re:PHP in 2019 by innocenat on Wednesday May 15, 2019 @04:15PM (#19923284)
What are you talking about? I have been using php.net/{funcname} since forever.
Re:PHP in 2019 by Fogest on Wednesday May 15, 2019 @11:21AM (#19920288)
I didn't use PHP for 2 years and upon coming back still know most of the common functions and the ones I don't the IDE helps with, so I am not sure why you're having such issue. What functions are you using that you don't remember the names for?
Re:PHP in 2019 by out_of_protocol on Wednesday May 15, 2019 @12:39PM (#19921160)
Ruby does not have the best standard library, just good enough. replying to the question - basically all of them, from strrpos, str_ireplace to array_search. Also, Null, false, 0, "" etc are adding degree of chaos
Re:PHP in 2019 by wvenable on Wednesday May 15, 2019 @10:38AM (#19919810)
An auto-completing editor is a big help when using PHP. :)
Re:PHP in 2019 by mikojan on Wednesday May 15, 2019 @11:53AM (#19920629)
Switching to a whole nother editor to use php might be annoying to some people
Re:PHP in 2019 by wvenable on Wednesday May 15, 2019 @12:15PM (#19920869)
Well really programmers shouldn't be using notepad.exe to write code in any language.