+ 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 ...........

11th Aug 2017, 7:11 PM
Changed
Changed - avatar
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.
12th Aug 2017, 1:15 AM
Lord Krishna
Lord Krishna - avatar
+ 19
main point : can be readable by humans :D
12th Aug 2017, 12:22 AM
Prudhvi Raaj
Prudhvi Raaj - avatar
+ 13
Points 1,2,4
11th Aug 2017, 7:15 PM
Fuyuka Ayumi(å†¬čŠ±)
+ 11
According to the trend in SL: 4, 5, 6.
12th Aug 2017, 12:50 AM
Hatsy Rei
Hatsy Rei - avatar
+ 6
1,2,3,4
11th Aug 2017, 7:16 PM
Given
Given - avatar
+ 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
11th Aug 2017, 7:19 PM
Changed
Changed - avatar
+ 4
1,2,4,8
11th Aug 2017, 7:28 PM
HJšŸ“TDM
+ 4
1:2:3:8
12th Aug 2017, 12:59 AM
Kartikey Sahu
Kartikey Sahu - avatar
+ 3
1,2 are better
11th Aug 2017, 7:18 PM
Charith
+ 3
@suhail , yes thats also a pt. needed to be add in that list
11th Aug 2017, 7:20 PM
Changed
Changed - avatar
+ 3
The best code is the simplest and most efficient solution to the most complex problems.
12th Aug 2017, 7:54 AM
Denver Albertyn
Denver Albertyn - avatar
+ 3
1,3,4,8
12th Aug 2017, 11:20 AM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 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.
12th Aug 2017, 1:10 PM
Gao Xiangshuai
Gao Xiangshuai - avatar
+ 3
15th Aug 2017, 11:52 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 2
completing the code in as less lines as possible,achieving good time complexity and space complexity
11th Aug 2017, 7:18 PM
Suhail Pappu
Suhail Pappu - avatar
+ 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...)
11th Aug 2017, 8:07 PM
VcC
VcC - avatar
+ 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
11th Aug 2017, 8:09 PM
VcC
VcC - avatar
+ 2
1'2'7'8
12th Aug 2017, 6:48 AM
KANHAYA TYAGI
KANHAYA TYAGI - avatar
+ 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
12th Aug 2017, 4:39 PM
PROFILER31
PROFILER31 - avatar