Modern PHP, soft skills, productivity and time management.

Author: krzych (Page 5 of 5)

PHPyths Buster: Project environment

Ok, time for some action!

I’ll start the project by setting up the environment. As mentioned in the previous post, I want to use Docker to simplify configuration for everyone who wanted to create this project with me 😉

I’m not a docker expert. In fact, a basic configuration for this project took me about 2 days! I could not find ready to use configuration so I had to create it myself using 2 or 3 different configurations.

But finally I made it, and I proudly present it to you! It is very simple and you might be surprised what took me so long 😉

Continue reading

PHPyths Buster: The Project

As promised I’m starting with a real project to proof that PHP may be what you want to build a web application 😉

Objectives

I want to show you complete way to build the functional application. I’ll go from setting up the environment, through installing the framework and required libraries, to deploying to the server.

Environment

I’ll use Docker with Nginx, MySQL, and PHP7 – I want you to make a minimal effort to start the project. In addition, you won’t need to install something on your computer (well, except Docker itself) and your computer will be clean as always. You could also do the examples yourself and easy experiment with the code in the same environment. If something will break you could always let me know and we’ll fix it together 🙂
Continue reading

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

Daj Się Poznać 2016 – summary

It’s time to summarize Daj Się Poznać competition. That was a great event that was literally the starting point for creating this blog.

Let’s start with some numbers:
– 296 participants
– 70 finalists (including me!)
– 1 gala
– 18 presentations (15 of them was from contestants!)
– 1 afterparty 😉

The rules

12 weeks, one open source project and 20 blog posts about the project. That was mandatory to qualify for final…

Continue reading

Newer posts »

© 2024 Krzych Jończyk

Theme by Anders NorenUp ↑