Skip to content

u/matula

In this archive from Oct 2011 to Oct 2025

11
posts
19
comments
0
media
153
score

Top posts

What non-PHP stuff should a PHP developer know?

I was looking at job description for a web developer, and one of the big responsibilities was database maintenance. Now, I can do basic mySQL tasks and hack together some relatively complex queries, but I've never had a desire to be a Database Admin. Anyone have any advice/books/blogs/etc that might...

56 points132 comments
Open on Reddit

ELI5: Unit testing

I consider myself an adequate coder. I try to follow best practices, and there's rarely been a problem I couldn't solve with some Google/Stackoverflow foo.... but unit testing just eludes me. I understand the mechanics - you pass in a test, an expected result, and it returns whether it passed or not...

27 points9 comments
Open on Reddit

Top comments

Exactly. Besides a few possible bug fixes and some additions/updates to some of the "core" packages, L4 pretty much mirrors L3 in functionality at the moment. You can get the pre-beta/alpha/whatever here : https://github.com/illuminate/app

As for docs, it's built very similar to L3, so the existing docs should be a good starting place. The big differences I see are using the PSR naming standards for methods (camelCase instead of under_score), and the way Models are structured, which you can see in the sample model... or just look at the source code.

3 points

I've read through many tutorials for both PHPUnit and SimpleTest and others, and something just doesn't "click". It's like 5 or 6 years ago, when I was trying to move away from functional to OO style programming... I didn't initially get it. Now, though, I can't imagine coding in a non-OO world.

Honestly, my biggest problems seem to be with oversites in my SQL queries. For example, in my "get_customers()" method, I initially forgot to add a "WHERE active = 1" to omit the deactivated accounts... so it returned everything in a well-formatted object, it was just the data that was incorrect. How is that testable?

3 points

Thanks for the honest review. And if you suger-coated some things, thanks for that, too! :)

I agree with pretty much everything. Things like no code highlighting, and not having the descriptions of the "steps" closer are all part of the Packt "process". It was... interesting. I wrote a bit about it here: http://www.terrymatula.com/development/2013/my-journey-writing-a-laravel-book/

I hope you have continued success with your book!

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