Skip to content

u/omerida

In this archive from May 2011 to Nov 2026

16
posts
477
comments
3
media
1.7k
score

Check out MergePHP for monthly online meetups. Both php[tek] and Longhorn are broadly PHP focused conferences that have online tickets and Symfonycon does as well.

YMMV, but I've always gotten more out of of attending in-person events from technical discussions in "the hallway track" and making friends and networking with other attendees.

8 points

right, i get it know but the phrasing "object references are passed by value" is even more confusing there since I missed the "references" on first read. If you're passing references, you're passing references, not values. It's why you usually hear "Objects are passed by reference." That seems clearer to me.

1 points

Did this change since PHP5? From <https://www.php.net/manual/en/language.oop5.references.php>

> One of the key-points of PHP OOP that is often mentioned is that "objects are passed by references by default". This is not completely true. This section rectifies that general thought using some examples.

​

The last example there shows passing an object to a function, modifying the object without returning it. The property changed in the function persists after the function call.

2 points

Sorry, I'm not disagreeing with you. I meant that moving away from PHP to Hack is a lot like UK Engligh vs US English (not a great analogy but it works). Hence the "not a wholly different language" initially.

1 points
  1. Use PHPstan (which should lead you to using types more strictly)
  2. Read Chris Hartjes book on how to add tests to legacy apps: https://www.phparch.com/books/the-grumpy-programmers-guide-to-testing-php-applications/

In my experience, legacy apps are better served initially by functional tests (I use behat). Once you're coverage is sufficient (what this means varies by project but it means you can confidently make underlying changes without breaking how the application works), you can refactor the underlying code to make it more testable.

19 points

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.