Strona głównaSztuka programowania

Do you ever feel like (well, you should) these huge switch + case statements or too many ifs seem to be wrong? What if I told you, there’s one simple trick that will change your life, by getting rid of them? Ok, seriously – I have nothing against switch or if as the way of controlling the flow (I use them quite often) however, there are certain occasions at which the things could be done better. And let me show you another way to achieve the same goal which is much cleaner in terms of code readability a...

Dziel się z innymi:
Get rid of switch/case/if | Piotr Gankiewicz

Sztuka programowania 2837 dni, 21 godzin, 45 minut temu spetz 361 pokaż kod licznika zwiń

Najaktywniejsi w tym miesiącu