Skip to content

u/celtric

In this archive from Jan 2010 to Nov 2016

20
posts
257
comments
3
media
1.1k
score

Top posts

Thinking about moving to Java

I've always been a big defender of the simplicity of PHP vs the overly-verbose Java approach. Lately though, as I write more packages for backend which don't allow margin of error (payments handling, etc.), I find myself writing lots of tests and writing the same verbose code that I hated from Java,...

17 points43 comments
Open on Reddit

State of named parameters RFC?

I haven't been able to find information about it in the last months, although it's one of the most demanded features in PHP. The last messages regarding this RFC point out that existing native functions should be updated one by one (some of them don't match the official documentation apparently), wi...

16 points5 comments
Open on Reddit

How do you remember a user login?

If a user marks the option "Remember me", I generate a md5 identifier and store it in his/her account and in a cookie. Problem is, only one browser can be remembered at a time as I generate the identifier on the fly. If the same user wants to be remembered on another browser or computer, should I gi...

13 points10 comments
Open on Reddit

Top comments

Citing the author at the end of the article:

Therefore, I'd like to submit a humble suggestion to my fellow programmers. The next time you feel the urge to write Yet Another Epic Critique of PHP, consider that:

  • We get it already. PHP is horrible, but it's used everywhere. Guess what? It was just as horrible in 2008. And 2005. And 2002. There's a pattern here, but it's subtle. You have to look very closely to see it. On second thought, never mind. You're probably not smart enough to figure it out.
  • The best way to combat something as pervasively and institutionally awful as PHP is not to point out all its (many, many, many) faults, but to build compelling alternatives and make sure these alternatives are equally pervasive, as easy to set up and use as possible.

(I don't really understand the point of the article TBH)

18 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.