Skip to content

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 be good to build up that knowledge?

And along those lines, what other skills would be useful for a PHP developer to have that aren't directly PHP-based?

56 points132 comments
Open on Reddit
About this post
Posted
Archived
Score
56 · 100% up
Kind
Text
ID
phtkd

Author

11
posts
19
comments
0
media
View profile

139 comments

Learning your way around the Linux command line via SSH is very, very handy.

Take a few minutes now and then and focus on one procedure you do regularly that you don't understand, and learn about. I've found this to be a really useful habit.

51 points

I'd take it one step further, install a VM and build your own LAMP stack and play around with administration. When you understand the capabilities of your foundation, it allows you to push the project's architecture and design.

17 points

Then throw out the LAMP stack and switch to LEMP. Once you have a sweet NGINX/php-fpm/APC setup, you'll never want to go back to Apache.

7 points

This is one of those skills that seem like they aren't really necessary, but actually make your job so much easier. grepping log files is something you need to learn how to do

4 points

Upvote, I forgot about that :- ssh combined with rsync alone saves hours a month :)

2 points

learn a bit of ruby + capistrano, this also saves hundreds of hours of deploying / rapid iteration pain. (I know Phing is similar, but learning a little Ruby is a good thing)

1 points

I would say this is a very good idea. Right now I'm setting up a remote server in my house, on which I'll be able to install different technologies and try them out (Node.js, MongoDB, etc)

2 points

Great suggestion. I've actually got an unused desktop machine that would be perfect to run Linux on. The command line is something I have "passable" knowledge of, but it seems it would be beneficial to become more proficient.

2 points

An interesting question.

  • Linux and LAMP (i.e. basic linux commands and how to securely set up a lamp stack (note: nginx is also allowed ;) ).

  • Python - You can automate so much of the daily grind and in six months you won't be staring at a screen full of text that looks like you slammed your head on the keyboard. Also knowing another language will make you a better programmer.

  • The Shell (pick one, I like Bash).

  • MySQL Workbench (if MySQL is the DB you are primarily using), it makes writing complex queries much nicer.

  • I'd also suggest learning at least some C, it gives you an interesting insight into the lower level fundamentals (it also makes you appreciate high level languages ;)), it amazes me how many PHP programmers I've met who don't have a good grasp on the fundamentals.

  • HTML/CSS/Javascript - Depending on the shop you may have to write some or all of the front end code, knowing these to a competent standard is usually enough (HTML and CSS I know fairly well, Javascript I can get by, jQuery is nice!).

  • Virtualisation - Xen/Virtualbox, Can make life oh so much more bearable.

37 points

On top of what everyone else said, how to use some kind of VCS, how to write tests and some experience automating testing/deployment are all pretty useful skills.

17 points

I'd go for git, it's the new black. You can get a free account at github, this can also work as code portfolio.

10 points

Bitbucket has free private repos though!

5 points

I think it's worth it to know both old-school VCS like Subversion and new-school DVCS like Mercurial or git. Knowing the proper workflow for each is beneficial.

1 points

It's always a red flag for me when hiring if someone identifies themselves as a "PHP Developer" or "Ruby Developer" or some other single language developer. I've never in 20+ years of programming identified myself as a single language developer.

A skilled programmer is always looking to learn new things and expand his/her skill set.

But skipping all that and to address your question as you probably intended it; "What should someone know in order to develop in PHP professionally?" You should definitely be proficient in SQL, especially MySQL. You should also be proficient in HTML, CSS and ideally JavaScript as well. You should have a strong enough grasp of PHP that templates come naturally.

I wouldn't recommend trying to learn MySQL by reading a blog. Instead I would recommend you learn MySQL by writing a project (such as a blog) in PHP + MySQL. That's going to be a lot more useful than just reading some tutorial.

12 points

If you identify yourself as a "website developer", know PHP+C+Java+.Net+JS+HTML+CSS, but they code in Ruby, you're not a useful website developer. If you bill yourself as "Ruby Developer" the employer knows what they're buying, and will ask about HTML+CSS+JS.

Plus personally, I really like PHP. I've tried others, but PHP is where I'm most confident. If an entire company were to suddenly decide to switch from PHP to .Net, that would be hella weird, and a bigger red flag to me. Sure, I could learn it, but I wouldn't be an expert and who knows if they'd stick with it long enough for me to become competent?

I really don't get this "you aren't a real programmer until you can build a missile control system in literally every language" mentality.

20 points

I left a C# job and moved to PHP. Wasn't that weird. Both worlds are pretty similar, I missed Visual Studio and some of the cooler things C# can do. But NetBeans almost makes up it.

7 points

I really don't get this "you aren't a real programmer until you can build a missile control system in literally every language" mentality.

That's not at all what I was saying but thanks for putting words in my mouth.

If you identify yourself as a "Ruby Developer" but you know lots of other languages, then the potential employer doesn't know what they are getting, because you are not giving them a full picture. When I see someone bill themselves as a "Ruby Developer" it tells me that they not only know Ruby (or think they do), but that they are most comfortable in Ruby and prefer to work in Ruby. It has all kinds of connotations that may or may not be applicable to that person.

If someone instead represents themselves as a "Web Developer" (if someone wrote "Website Developer" I'd think they are either under the age of 18 or over the age of 50), and merely lists out the languages they proficient with (and familiar with, etc.) that tells me that they are language agnostic and have experience working in X different languages, and will be able to shift as necessary for given projects.

1 points

This is silly.

I identify myself as a PHP/MySQL backend web developer to specify that:

  1. I am most proficient in PHP
  2. I am most proficient in MySQL
  3. I am a web developer, not a designer
  4. I prefer backend work to frontend work

I realize there's a million reasons to branch out and learn multiple languages - but so far in my career PHP and MySQL have been very good to me. I will eventually start picking up more languages (starting with Python), but I most likely won't make any money off it them until I am at a very high level of knowledge.

10 points

A good programmer doesn't just learn languages based on what you think you're going to be making money off of. This is one of the key things I look for when looking to hire someone. If you said that to me in an interview I'd almost certainly pass on you because you're clearly not really interested in programming. If it's "just a job" to you and not something you are actually interested in, something you pursue on your own time, then I probably don't want to work with you.

-8 points

Wow, the first part of your reply was rather arrogant. Are you attempting to prevent further question asking here in /r/PHP or /r/<sub-reddit name> for that matter?

3 points

More specifically I'd go try to learn jQuery, it's js framework that a lot of companies use. I'd put learning JS higher than CSS or HTML, though this is job dependent.

2 points

I don't think you can truly master JS (or jQuery) working in the DOM without having a thorough understanding of HTML and CSS.

HTML and CSS are very simple, so I don't think there's a valid reason for any web developer not to understand them.

5 points

Learn JS, learn how to navigate and manipulate the DOM in modern web browsers (don't worry about IE), learn how to build prototypical classes and perform basic data management.

When you have come to a full understanding of this, THEN learn jQuery, so you can appreciate just what jQuery really is: just tool that makes complicated tasks easier.

Far too many web devs learn jQuery first and then they can't do anything without it. They don't know what jQuery is doing under the hood, so they can't replicate it. They also learned all the wrong habits because they've only ever built things the jQuery way.

jQuery employs structures and techniques that are not best practices, things like having functions that perform completely different tasks based on how they are used, or loading EVERYTHING into one namespace. They do these things because it makes the library easier to work with for non-programmers, but it's a bad example for new developers coming into JavaScript. It's the kinda shit that makes traditional programmers hate JS.

1 points

Bash/shell scripting is very important, being able to setup a full LAMP/LNMP server from scratch (Ubuntu and Red Hat). Along with the whole host of Linux tools and being able to use them proficient enough that you know how to do it, not necessarily the exactly specifics (I always ask interviewees their thought process, it's easy to Google the how). Of course Javascript and other front-end stuff (HTML, CSS) helps, knowing the latest trends helps. Just show that you're really interested in the tech and in learning more, not that you're just hanging on because it's your job.

VCS like SVN/Git, some knowledge about builds/deployments

I would also know some C/C++ (be able to know how pointers, linked lists, classes, work and can compile/use them etc), other languages are a big plus if you've dabbled in them at least.

1 points

Version control is really easy to teach someone if they've never used it before.

C/C++ and pointers are totally unnecessary to writing PHP. Yes having that experience is a good thing but he was asking what should they know, not what's the ideal set of skills.

Likewise all the systems administration skills (setting up and configuring LAMP stack, etc.) are in the ideal set but not necessary to be a decent web developer.

1 points
unknown author

In my opinion identifying yourself as an X Developer doesn't mean you can't do other things but that it's your preference or where you are the most proficient.

As a freelancer I identify myself as a PHP developer because I don't want ASP jobs offered to me.

1 points
  • HTML/CSS: In most cases, your PHP products will output some sort of HTML. If you know HTML, it'll make working together with frontend developers a lot less painful.

  • Social skills: You should try to be good at listening to people, and understand that the words they're saying aren't necessarily the same things as what they really need. If you're good at expressing yourself verbally, it'll make dealings with clients (both internal project-managers or 'real' clients) much easier.

11 points

Funny nobody mentioned social skills until now. Back-end developers that can be customer facing are very valuable. Other skills to consider are project management and business analysis, which are two sides to the same coin. Project management means you will be more accurate and efficient on your projects and analysis skills means you can better help the client determine their actual needs, points of pain, and requirements so the project is more valuable to them. On the programming front, the stuff mentioned by others above plus AJAX.

2 points

Learn about databases. Specifically joins, relations, transactions and prepared statements.

Operating systems and their command syntaxes.

Knowing a bit of c will help you understand how php works and helps your understanding of more complex functions in php.

Knowing how object oriented code works and has to be made will clean up your code and will make some of your code reusable.

Design patterns are important, learn multiple and more specifically learn about the pros and cons of them.

Know a lot about apache, it is fast as hell and a lot of basic things can be handled by apache.

learn how the filesystems work, optimizing data storage can save you loads of storage in some projects and will give massive speedups (IO transactions are slow and lock files).

Develop an intuitive directory structure so you can find your code.

Learn to document your work.

Start using version management software.

Learn how to extract data from other sources (devices or online places). No need to remake existing products.

Learn a bit of formal logic and how to transform natural language to formal logic to code. Client side languages are important, learn to optimize for them.

Learn about improving execution times based on expected loads and hardware, do not however focus on microsecond improvements.

Learn about caching, preloading and preparing data on less busy moments to shift and level out the required performance. This will save you hardware.

8 points

Read these:

Read each of these they all provide extremely valuable information.

5 points

Also, "Don't Make Me Think" by Krugg. Website process from the user's point of view.

1 points

Why the downvote? Affiliate links perhaps?

0 points

Those books are mostly irrelevant to a PHP developer. Might be good books but have nothing to do with the discussion.

1 points
unknown author

Deleted before we saved it.

1 points

Server and daemon configuration and maintenance, memcache, redis, mongo, *sql, Amazon services (AWS, S3, etc)...

5 points
unknown author

AWS for sure.

2 points

It's very important to have a general feel for the differences between the memcache/memstore/NoSQL implementations. That said, you'll almost always want to start with MySQL, though I increasingly see people using MongoDB to start.

1 points
unknown author1 hidden

Other languages that are not php.

5 points

Protocols (HTTP(S), FTP, features and security-danger-zones(think about cookies and sessionstealing)), hashing/salting (how do I store passwords securely? Which passwords should I accept as secure enough?)

How to learn about that stuff... Hmh, to be honest I don't know the perfect way, what I know I learned by poking around and attending conferences

4 points

Everything HTTP, absolutely, also, everything SMTP, POP3. IMAP may be a little overkill, but knowing how pre-existing, text based protocols work will save you a ton of time and prevent you from reinventing the wheel.

1 points

Linux. I wish I knew that shit :(

4 points

It isn't that hard, you don't need a book. Use an old machine or VirtualBox to install and mess around with different OS's FreeBSD, debian, centos. Then try to configure and run your own web server on it. There are loads of documentation for Linux OSes. You could also get a free shell account. I know there are sites out there that provide it.

4 points
unknown author

Deleted before we saved it.

4 points

I see all the usual basics covered, but I always recommend that PHP developers learn another language besides PHP. Nothing will improve your PHP as much as learning something like Ruby on Rails, which is domain-relevant and will teach you different, non-PHP patterns for solving problems. With any luck, it'll teach you some good practice habits, as well - since PHP tends to just give you enough rope to hang yourself.

3 points
  • That application design must be based on user requirements. No amount of feature-glomming will change that fact.

  • How to work from design documents. In some cases, this means evaluating HTML for possible cases and coding for the required output. In others, it may mean learning to write semantic, well organized output from simple drawings. While interface development is a separate discipline, it may be expected of you.

  • How to write useful documentation. Often, this means specifying the structure of your code (in terms of function footprints) before actually writing that code.

  • How to provide useful views of the data your code manages. You should already be thinking about what happens when someone asks for an API, even if it's not within the scope of your initial project.

  • Learn about accessibility and usability for the web. Knowing these things will help you defer to user specialists, and will help you pick up some slack if you are asked to create something in isolation.

  • Caching! Learn how to cache information -- this is not a language-specific skill.

  • Learn how to test, and how to implement recurring testing cycles. This likely won't be required of you if you are picking up a simple dev job, but you should always be advocating for repeated reviews of the product.

3 points

Kind of relating to the database stuff in your post, it helps a lot to know how to properly set up a database with the correct data types (as an example, storing the unix epoch as an integer instead of a proper date as a DATETIME data type), field sizes and then to normalize the entire schema. I generally only normalize to 3NF, but I believe it goes all the way up to 6NF.

2 points

You say that like 3NF is only 50% of the way there!

If I had to work with a schema normalized to 6NF, I'd go insane.

1 points

Multiple Design Patterns, HTML/CSS/JS, AWS, MySQL, NoSQL

2 points

These are useful:
Knowing file permissions. Apache configuration (vhosts, options, access rules, overrides, en/disabling modules), PHP configuration (in php.ini, vhost blocks and .htaccess). Knowing how to do simple stuff from the commandline MySQL client can also be handy, but a good PHPMyAdmin install is sufficient for most things.

To learn stuff, my own setup is VirtualBox (http://www.virtualbox.org/) with Xubuntu (http://xubuntu.com/). Then you can use apt-get to install Apache, PHP (php5-gd/curl/mcrypt/mysql etc), MySQL, SSH. Then you can log in from the host OS (terminal/putty) to do cli stuff, and edit files over sftp. If you're not too worried about resources, Ubuntu will run just fine as well and is a bit friendlier wrt GUI settings.

2 points

PHP developer must have advanced skills in:

  • SQL and experience in work with mysql and postgresql
  • pure javascript and knowledge of more then one JS library
  • ability to work with at least one VCS ( be it git, svn or some other )

Additionally said developer should have some skills in:

  • CSS/HTML ( in larger companies it is done by separate devel )
  • Linux or BSD server administration .. to know his way around

Also you need understanding of OOP principles.

Book you should have read would be :

And watch the lecture series from Douglas Crockford : http://yuiblog.com/crockford

2 points

Learn something about standard algorithms! There are so much php-developers around who don't really know about code design. Learning a new language sometimes help, because you have to cope with new concepts. But in the end every new language is more or less the same. what you want to learn is about ways to solve problems!

2 points

Learn a statically typed language... C#, Java, C++ if you think you can stomach it.

Understand the benefits that static typing gives you, and understand the strictness that is imposed on your application's object model. Then design in PHP as if those same restrictions applied. You'll be writing more succinct, decoupled code, and you will feel simultaneously warm and fuzzy, and very very dirty.

Also, design patterns, dependency injection, etc, etc.

2 points

I got my current job from an add for "Junior PHP developer". Here are the things I have to deal with on a daily basis:

  • mysql
  • linux stuff (cron, grep etc. in bash over ssh connection)
  • classic ASP with VisualBasic :(
  • javascript / JSON
1 points

That's surprising. If I were hiring a Junior PHP Developer, there's no way I'd expect them to have any experience with the command line.

Hell, half the time, they don't even know javascript.

2 points

I used to develop PHP applications on windows. Then I tried mac, finally I moved to linux so I would have full control to mimic my servers. With linux I could run memcached, RDBMS and NoSQL instances with just a few commands on the terminal. I love linux for development.

However, Since I also need Adobe's CS suite I'm moving back to windows and running linux as VM's inside windows so I can continue to enjoy the power and ease I've come to expect from a development machine.

So in essence, you need to learn linux so you can fix and run your servers. It's as important as understanding your database.

1 points

Even if you work alone, try to learn some kind of version control, (git, svn, mercurial etc) For a long time I haven't use any but now it seems to fit normally in my work flow and its nice to be able to revert things back to a working state.

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