+ 13
HOW U DEFINE A GOOD CODE ?????? What a code like to be
1 ) which is complex , having good logics involved , high use of brain 2 ) which are unique 3 )which have some practical applications 4)which produces a beautiful output 5)which are made by a known person 6)which makes u laugh but nothing good in them 7)which is made by a particular language 8) which produce output in minimum use of lines and consumes less time if some pts. missed by me then add them in comments , what a code like to be ...........
19 Respostas
+ 13
3 8
add these missing :
1.code readability, //should not take curses for this
2. documentation // codes are for humans
3. reusability //can reuse your parts of programs
4. should be broken in small parts.//
5. convenient to maintain //simple to update
6. simple & minimum //does not include needless complexity
7.principal of least privileges //should work with.
lowest set of permissions like a function only having scope access to another function only if necessary.
+ 19
main point : can be readable by humans :D
+ 13
Points 1,2,4
+ 11
According to the trend in SL: 4, 5, 6.
+ 6
1,2,3,4
+ 5
for me its pt. 1, 2, 3 and 4 ...
if i be honest then , if pt.1 is missing then also its work for me
+ 4
1,2,4,8
+ 4
1:2:3:8
+ 3
1,2 are better
+ 3
@suhail , yes thats also a pt. needed to be add in that list
+ 3
The best code is the simplest and most efficient solution to the most complex problems.
+ 3
1,3,4,8
+ 3
don't use GOTO(BASIC programmers, I'm looking at you) and use functions and classes, lots of them! so your code doesn't clunk together in one huge constructor, or even worse, all stuff into a big fat main method. we call this spagetti code.
+ 3
My best code:
https://code.sololearn.com/cB3Xfgx1v7Rv/?ref=app
Points 1 & 4...
+ 2
completing the code in as less lines as possible,achieving good time complexity and space complexity
+ 2
You forgot efficiency : code giving an efficient solution in a short time. This is generally not a problem for simple web sites, but it is for complex applications (big data, Ai, complex optimization...)
+ 2
Example here of how two codes comparable regarding all your criterua can run in very different times (x10 factor)
https://code.sololearn.com/cn4f5No80UvM/?ref=app
+ 2
1'2'7'8
+ 2
Is this UNDERSTANDABLE code....because i think lot of people is confused of how to use this code....thats why i put many instructions:....but soon ill upgrade this code to be more understandable......
https://code.sololearn.com/c5lRwVwegxZ5/?ref=app