5 ms·
I started programming when I was 12 and sadly my path to PHP looked something like this: QBasic -> Visual Basic -> HTML/CSS -> PHP With what I know now (var
by raamdev 18y ago
I started programming when I was 12 and sadly my path to PHP looked something like this:
QBasic -> Visual Basic -> HTML/CSS -> PHP
With what I know now (various bits of Java, C, bash, Python, OOP, etc), I wish so much that my path to PHP looked more like this:
C -> Bash -> Java -> HTML/CSS -> PHP
Everyone who uses PHP professionally knows that it's extremely easy to write crappy PHP code. While PHP is easy for beginners to learn, it's equally as easy for them learn bad programming habits.
After 15 years, I'm finally putting in the time to learn the language I should have started with: C. I really wish it was the first language I learned because it would have made learning other languages so much easier (and learning those other languages would have made me a much better PHP programming when I started using it).
I believe every language has its uses and PHP is no different. While its a shame there is so much crappy PHP code out there, open-source projects like WordPress have shown it has its place. (If WordPress themes and plugins were not so easy for non-programmers to learn how to create and modify, I don't think WordPress would be where it is today.)
- dshah 18y agoMy evolution is like this: Pascal (object oriented) -> C++ -> C# - > PHP Despite a reasonably strong background in developoing software, I've found it way too easy to build crappy code in PHP. But, I think it's as much me as it is PHP. Perhaps PHP brings out the evil that is lurking inside of us as programmers?
- raamdev 18y agoOr perhaps humans are lazy by nature and, since PHP does a very bad job of keeping us in line, the less disciplined of us end up writing bad PHP code. Of course, if we don't know how to write good code to start with, it's not PHP's fault. I think the simple fact that you can write good, elegant PHP code goes to show that it simply demands a more disciplined programmer (or a framework to help with that discipline).
- trezor 18y agoAs someone who mainly write (and get to maintain) C# code these days, I have to say C# (nor any other language I've seen) sadly doesn't stop people from writing utter shit code. It does no doubt seems more prominent in the PHP world though.