Junior Developer 🤡 VS Senior Developer 😎 #codingmemes #coding #programmer #programming

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

This is a very junior perspective of seniority

meph
Автор

The junior one is easier to debug if the code if the code is more complex, hence easier to debug

anasamin
Автор

res = "Even" if 4 % 2 == 0 else "False"
Print(res)

AH-txce
Автор

num = 4
print(['even', 'odd'][num&1])

DeseLoki-kmsu
Автор

Amateurs appreciate complexity, professionals appreciate simplicity.

ezaldey
Автор

Just print the thing no need for an unused conditional

Nellak
Автор

How about ternay operator and num&1

piyushanand
Автор

Okay ngl I was expecting the senior engineer to write an over-engineered solution like the following:
```py
def is_even(num: int) -> bool:
if num == 0:
return True

return not is_even(abs(num) - 1)
```

avastabyss
Автор

Dude chill out will your wrote in the second part was a sinple conditional expression that's all which everybody learns while learning python theres nothing pro about it

truegamer
welcome to shbcf.ru