Home Page Suprise me! Author Contact

Category - Programming

My favourite VSCode extensions

Hi there, what’s up.

In our coding journey, we use many tools. Compilers, libraries, browsers, IDEs and code editors

Some are provided, “as is” while others have powerful modding community. They add new extensions pretty much every day

And that’s what I’d like to talk about today - I’ll present you with my personal must-haves in VSCode setup

Read More

Self-refreshing view counter in PHP and JS

Hi there, have you ever written an admin panel for your website?

There is one interesting statistic I personally like looking at - view count

We’re proud to see people enjoying themselves while using our product, aren’t we?

Then, we ought to know how many people do we attract

Read More

Ajax & Fetch - combining PHP and Javascript for infinite scroll

Hi there - have you ever seen “infinite scroll” mechanism?

You know it, you can scroll forever through posts (and ads), like on TikTok or Instagram

Is there some magic going on there? Nah, it’s just code

Today, we’ll be creating such thing - and I’ll also talk about how it works. As it’s possible because of AJAX

But, what is it? Let’s dive right into it.

Read More

.htaccess and robots.txt files - PHP 0 to hero pt.16

Welcome - Whether sadly or not, that’s the last part of this series

We’ve finally come to an end - today I won’t be talking about PHP itself

You know, when we were writing a code, we’ve always had .php at the end. Like /login.php

But it can be better

Read More

Cleaning spaghetti in PHP

Have you ever looked at the code and thought, “What is this mess”?

After a while, you can even say such thing about your own “masterpieces”

But remember, code review is part of the journey and a perfect way to become 10x developer

Read More

Why is hashing passwords important?

Passwords accompany us on regular basis.

You know, every day we have to use them. If not them, some of substitutes ex. physical keys like Yubikey.

Even though code security is frequently mentioned - we still hear about recent breaches/hacks and new vulnerabilities are disclosed on weekly (if not daily) basis.

Most of web breaches work pretty simple - some endpoint was not sanitizing passed data properly, it lead to some code execution and then attacker somehow read whole database and it’s now for sale on the dark web for $1000.

But, what failed? How did the attacker extract data? Can we protect ourselves?

Read More

PDO (SQL pt.4) - PHP 0 to hero pt.12

Learning database connections draws to an end

Today I’ll show you pre-installed extension to PHP called PDO

It’s (in my opinion) better way to connect to the database

Read More

SQL pt.3 - PHP 0 to hero pt.11

Hi and hello

Today we will test our knowledge from 2 previous parts (and add something new.) What will it be? We’ll be writing login script but in 2 ways. More about later in this article

Read More

SQL pt.2 - PHP 0 to hero pt.10

When we have SQL database ready - let’s start learning language itself

SQL, as mentioned earlier, stands for Structured Query Language

It looks a bit like a sentence in English

Now, we need to learn actual syntax and how to use it

Read More

SQL pt.1 - PHP 0 to hero pt.9

What’s up - welcome in another part of this course

Today we have a very important topic - using databases in PHP

This part is an introduction - there will be 2 other parts, strictly about coding

Read More

Strings - PHP 0 to hero pt.7

Hi The new year has come But now, let’s focus on coding - new, fresh topic today

Plenty of data consists of text - that’s why we have strings Their presence allows us to modify and just do whatever the hell we want to with it

Read More

Math and Sessions - PHP 0 to hero pt.5

Welcome, time to learn again.

I think that everyone heard, that you don’t need math in web dev. And that’s a little tricky Even though yes - stuff like linear algebra or some advanced calculus may not be the most valuable knowlegde for us, yet mathematical logic or arithmetic is very useful

Read More

Setting up - PHP 0 to hero pt.1

Welcome again - Let’s begin our journey

What will we do today? Sorry, but not coding yet

We’ll be setting up our PHP development server. Then we’ll test if it works

Sooo, there will be some code.

Read More

Nice tricks for PHP beginners

When we start our journey with programming, we don’t really think about coding styles and best practices. We just copy style of our teachers/mentors

You know this mindset “It works. Don’t touch it”, but let’s see how we can improve some of often-written lines, with much shorter and better-looking code

Read More