Modern PHP, soft skills, productivity and time management.

Category: PHPyths buster (Page 2 of 2)

PHPyths Buster: Deployment

Let’s talk about deployment.

The past

Several years ago when I wanted to deploy an application I did it using FTP. Filezilla was the best friend. When some feature was ready I connected with the server, copy files into proper locations and it was it. The application simply used new files from the next request.

Easy? Not at all. It was annoying to connect the server, find directories and copy new files. It was very easy to make a mistake and copy file into the wrong directory.

And it was in times when I don’t even know that version control systems exist! That means that I have the newest version of edited files on my computer and on the server only. When I worked on a project alone it was “only” risky. But I remember one project on which I worked with 2 other people in the same time. You know what it means, don’t you? 😉
Continue reading

PHPyths Buster: A few words about importing classes

Thanks to this series I’ve made a time travel. Travel to my first experiences in PHP, which were my companion for about two and a half years.

Old, custom framework times

I remember when I was creating a web application in our own framework. It was barely object oriented, had a couple of files with over 5k lines and used pure MySQL queries to retrieve data. Classic 😉

In those times if you wanted to use some external library or even your own class – you used `include` or `require` to attach it to the current file. I did it that way for a long time. And that was a nightmare.
Continue reading

PHPyths Buster: PHP is ugly as s**t

PHP is easy to start with. The web page is the easiest and fastest way to see progress. And that’s why PHP is often chosen as the first programming language. In fact thanks to PHP I’ve started to work, but it’s another story 😉

The beginning

Many newbie programmers started with something like that:

<?php
$name = $_GET["name"];
if ($name == "") {
    $name = "Stranger";
}
?>

<html>
<head> 
  [...] 
</head>
<body>
  <h1>hello <?php echo $name; ?></h1>
</body>
</html>

It’s fully functional web page! And It’s all right to start like this, but it’s very wrong to continue coding like this. Mixing HTML and PHP is just wrong (ok, PHP might be used as a template engine and I will cover that later). I think that many people call themselves “PHP programmers” after that and it’s probable source of the shortest joke in the (programming) world – PHP programmer 😉

Continue reading

PHPyths Buster

On the Daj się poznać contest were many .net and java developers. In fact, there were almost 95% of the final gala attendee.

What I’ve observed is that they all (or almost all) hate PHP 😉 And I’ve started to think about it. Why? Why PHP always activates such emotions?

Continue reading

Newer posts »

© 2024 Krzych Jończyk

Theme by Anders NorenUp ↑