Skip to content

u/joeframbach

In this archive from Oct 2009 to May 2014

0
posts
105
comments
0
media
326
score

Once in a while you find a senior who is only senior because they were part of the organization from its early days. They don't have 10 years of experience, they have one year of experience 10 times. Watch out for those, and don't get caught in that trap. When they leave the company, take time to really, really reflect on what they installed into company culture and decide for yourself how to move on.

2 points

There's one thing to remember. Variadic functions keep the variadic part at the end of the parameter list.

So array_map can take multiple arrays, and apply a function to all of them at once, like zip. There's one function and several arrays, so the function is first.

All other array methods, walk filter and reduce, only take one array and one function, so the array isn't variadic and comes first.

2 points

There is no way php is the best tool for this job, in any stretch of the imagination.

The 'linux command' solution:

sed -i '1 s/^.*$/yournewfirstlinehere/' yourfile.csv

-i says to modify the file in-place rather than dumping to the screen.
The 1 says to replace the first line.

Be sure to make a backup of your files before you go mucking with them!

3 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.