Bug
Në shqip: Gabim në kod
ShpjegimiSQ
Bug-u është një gabim në kod që e bën programin të sillet ndryshe nga ç'pritej — ndonjëherë rrëzohet, ndonjëherë thjesht jep rezultat të gabuar. Çdo programues bën bug-e; është pjesë normale e punës.
EnglishEN
A bug is a mistake in the code that makes a program behave differently than expected — sometimes it crashes, sometimes it just gives the wrong result. Every programmer writes bugs; it's a normal part of the job.
Si ta mendosh
Si një gabim shtypi në recetë: shkruan „2 lugë kripë“ në vend të „2 lugë sheqer“. Ti e ndjek recetën me përpikëri, por torta del e kripur.
Lexoje në anglisht
Like a typo in a recipe: it says “2 spoons of salt” instead of “2 spoons of sugar”. You follow the recipe perfectly, but the cake comes out salty.
Shembull kodipython
mosha = "20"
print(mosha + 1)
# Gabim! "20" është tekst, jo numër.
# Rregullimi: print(int(mosha) + 1)