Is the best programe the least lines of codes?! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

Is the best programe the least lines of codes?!

well, I thought that more lines , the programme will be better but today our teacher said that the real programmer who counts the letters in his/her code!

19th Apr 2017, 12:59 PM
Saja Husam
Saja Husam - avatar
4 Answers
+ 3
it depends on time and space complexity. nd how efficient the code is.
19th Apr 2017, 1:55 PM
Chitransh M
Chitransh M - avatar
+ 12
‏‎‮‏‎it's the one which has the fewest number of errors!
19th Apr 2017, 7:59 PM
Theprogrammers
Theprogrammers - avatar
+ 10
yeah .. time and space !
19th Apr 2017, 2:18 PM
Saja Husam
Saja Husam - avatar
+ 5
The best code is the one that fullfills the given task with the lowest amount of ressources while staying readable. Bonus points for writing modular code. But no, low character count alone doesn't make a good program. On the other hand unnecessary code doesn't either.
19th Apr 2017, 1:06 PM
TransHedgehog
TransHedgehog - avatar