Overview for 'tomasvotruba'
Written by Tomáš Votruba
/ Original link
on Mar. 1, 2021
I'm known for using GitHub, a true paradise for any open-source project. But I don't have much experience with private projects pricing for this and other services like GitLab or Bitbucket. I assumed they all were at a similar price layer. After today's call with one of my clients, I've learned abo…
Written by Tomáš Votruba
/ Original link
on Feb. 22, 2021
Last weekend I got into reading a good old post Null Hell by Afilina, a fellow legacy archeologist. Null parameters are evil, which turns code into "maybe" and "just in case" conditions with ifs everywhere. I was wondering how difficult it is to get rid of nullable parameters in a project. I made…
Written by Tomáš Votruba
/ Original link
on Feb. 15, 2021
Symfony documentation contains a few "best practices" that teach people to create bad code. It's important to talk about them so the framework can improve and thus its community can improve. Do you remember GitHub discussions about autowiring before it became part of Symfony? Nette documentation is…
Written by Tomáš Votruba
/ Original link
on Feb. 11, 2021
How does circular reference look like? It is a point where you wait for your doctor; they wait for a state to accept the vaccine, and the state waits on people like your to come to the doctor. Who has the responsibility? Who can change the state? In the past, we used singletons and static calls to…
Written by Tomáš Votruba
/ Original link
on Feb. 8, 2021
Good coding habits share a single treat. They all are resistant fluid to future changes. You don't have to change them when new packages or PHP is released. One of them is explicit code. Do you use explicit NEON config syntax? Then upgrade to PHP 8, including deprecations, will not touch you. Do yo…
Written by Tomáš Votruba
/ Original link
on Feb. 1, 2021
Writing a code that only you work with is easy. Debugging such code is a bit harder. Writing a code for someone else review is quite hard. The code must be understandable to the other reader to pass the code review. How hard is reading a code that someone else wrote three months ago? But what about…