Sharing my thoughts, discussing my projects, and traveling the world.
Contact: @borz
Last updated 5 days, 19 hours ago
Telegram stands for freedom and privacy and has many easy to use features.
Last updated 6 days, 2 hours ago
Official Graph Messenger (Telegraph) Channel
Download from Google Play Store:
https://play.google.com/store/apps/details?id=ir.ilmili.telegraph
Donation:
https://graphmessenger.com/donate
Last updated 4 months, 4 weeks ago
Stop using setters
In this article, I want to focus your attention on the problem with setters. Let’s talk about the problems:
Unit testing tips by examples in PHP
In these times, the benefits of writing unit tests are huge. I think that most of the recently started projects contain any unit tests. In enterprise applications with a lot of business logic, unit tests are the most important tests, because they are fast and can us instantly assure that our implementation is correct. However, I often see a problem with good tests in projects, though these tests' benefits are only huge when you have good unit tests. So in these examples, I will try to share some tips on what to do to write good unit tests.
Do generators really reduce the memory usage?
Recently I noticed some controversy regarding memory usage with generators. It looks like that many people genuinely take generators as a tool that somehow can get them "a big performance boost" when working with large datasets. Sort of a magician's hat, where one can put any amount of data without affecting the PHP process' memory.
6 Algorithms Every Developer Should Know
Hello, I am Richard. I am a developer, and you should know that I’m not a big fan of data structures and algorithms. If you can relate to this, don’t worry; after working on many projects (small and large), I discovered the six important algorithms that every developer should know, and these six will almost always solve every problem in your development process.
Accessing private properties in PHP
Private properties can only be accessed by the class that defines the property… right? Actually, PHP has a few ways to circumvent this: reflection, closures and array casting.
Sharing my thoughts, discussing my projects, and traveling the world.
Contact: @borz
Last updated 5 days, 19 hours ago
Telegram stands for freedom and privacy and has many easy to use features.
Last updated 6 days, 2 hours ago
Official Graph Messenger (Telegraph) Channel
Download from Google Play Store:
https://play.google.com/store/apps/details?id=ir.ilmili.telegraph
Donation:
https://graphmessenger.com/donate
Last updated 4 months, 4 weeks ago