Code in a suit
  • Home

CleanCode

Typescript: declaration vs assertion

Typescript: declaration vs assertion

If you "need" to use as any always know it's a code smell. What's more, I think the keyword as has been used too many times in a code I've seen. I think this is because Typescript developers I have worked with don't distinguish between type assertion and declaration and
Adam Borek Nov 28, 2022
The Single Responsibility Principle in Swift

The Single Responsibility Principle in Swift

Sometimes I have a feeling that not everybody cares about where to put a piece of code which we’re writing. Sometimes, the “does it work?” question is sufficient requirement to mark a task as done. Especially, when it comes to adding new code into existing project. Recently, we had
Adam Borek Oct 14, 2016
Are unit tests worth an effort on iOS?

Are unit tests worth an effort on iOS?

Nowadays I have such feeling that iOS developers, and in general speaking mobile programmers, don’t write unit tests of any kind. When I asked few of them „why?” they answered: * „Because it is time-consuming” * „I don’t know where to start” * „Mobile apps are so small there is nothing
Adam Borek Oct 1, 2015
Code in a suit © 2023. Powered by Ghost