Keeping your classes immutable and stateless makes your code way less prone to bugs. Yet somehow this clean code rule isn’t as popular and as often invoked as SRP, YAGNI, DRY, KISS and others... Maybe it’s because of the lack of a catchy acronym?
Anyways, I’d like to take a look at two examples of when sticking to this rule could save your ass (or at least save you some time debugging).
Having 100% of LOC covered by unit tests certainly feels like a great achievement. But beware – that doesn’t necessarily mean your code is perfectly covered. Lines of code coverage is a really nice indicator of your app’s stability, but is can also hide some risks.
A musical competition, in which the managers lead their countries every week to a fight for a title of the best song.
I’ve been taking actual HIV drugs for a month.
It doesn’t feel like something you should admit to publicly, does it? And that’s exactly why I decided to write about it. The stigma around HIV is so huge and baseless, I’m hoping to reduce it, even just a tiny bit. And hopefully to make some people aware that something like PEP even exists.
Programming isn’t that hard. Really. With enough time and determination, almost everybody could write some useful code. The Internet is full of tutorials that teach you programming from scratch, full of people who faced the same problems you do, full of people who solved those problems and shared their solutions for you to use, and finally full of free libraries that you can just use. All you need to do is learn some tools, google your problems and put together pieces of code that you find.
But if it’s not a black magic, not a secret knowledge, then why are software developers so well paid?
Hasło “Hitler był lewakiem” jako temat z okładki tygodnika “Do Rzeczy” nie pozostawia żadnych złudzeń co do intencji autora i redakcji: chcą pokazać, że lewica to samo zło. Gdyby chociaż użyli neutralnego “lewicowiec” zamiast pejoratywnego “lewak”, to mógłbym założyć, że chcą tylko obiektywnie poszukać prawdy historycznej. Ale “lewak” pokazuje, że “Do Rzeczy” chce tylko wbić czytelnikom do głowy idiotyczną asocjację: Hitler to zło i lewactwo to zło.
I got into a nasty argument with a friend of mine, who was basically screaming at me for joining the “crowd of stupid, crazy people that get naked and have sex in the middle of the city”. Seriously.
Just FYI, I’ve never seen anyone publicly have sex during pride. Neither did he. He just doesn’t like pride celebrations, so he used every stupid argument he could think of to justify that.
His whole angry rant could be summed up like this: we shouldn’t celebrate, because there’s nothing to celebrate. Nothing, really?
At first I didn’t really think about it. It was yet another thing that my parents taught me and I just accepted. Boys and girls need to have separate toilets and locker rooms, so that the boys wouldn’t do nasty things to the girls. Simple.
But one day a cleaning lady came in to the boys’ locker room. And one day a female teacher come in. How come? Why can they see half-naked boys, while our female classmates cannot? That got me thinking and trying to find any sense in that.