+ 1

Want to be able to programme beautifully, and how to make sure I do so.

I love the scene in TV series Silicon Valley where Dinesh fall in love with a girl who he thought wrote a beautiful java code! Not for the sake of impressing others, but I'd like to be able to code beautifully and solve problems efficiently. Feels like coding is like maths! How do I make sure I wrote the most efficient code? By sharing with others and getting feedback?

11th Jan 2017, 7:42 PM
amylee
amylee - avatar
12 Answers
+ 10
@Ken more beautiful than mine?!?! ^_^
11th Jan 2017, 7:48 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
I think "beautiful" in the most realistic sense for code is the combination of code and comments that make the code much easier to understand. Also using the best algorithms as far as efficiency and proper spacing/tabs to make it all an easier read. Derek: Code...you do nothing but frustrate me no matter how easy it is to understand you... Code: Don't hate me because I'm beautiful...
11th Jan 2017, 8:35 PM
Derek Raimann
Derek Raimann - avatar
+ 5
Java is the love of your life that you won't realise until it is too late....so sad but so true.
12th Jan 2017, 9:07 PM
Derek Raimann
Derek Raimann - avatar
+ 3
If other hacker can understand your code, gratz! You are doing it so really good :)
11th Jan 2017, 7:57 PM
Josset Gutierrez
Josset Gutierrez - avatar
+ 3
@Tuchy - s#!t - bad command or filename
12th Jan 2017, 3:29 AM
Derek Raimann
Derek Raimann - avatar
+ 3
I once heard of a legendary programmer who wrote seductive code.
12th Jan 2017, 3:30 AM
Derek Raimann
Derek Raimann - avatar
+ 3
With a Java editor that allows you to change color of the background, keywords, variable names, etc. you could give your code a makeover I guess. It would only look beautiful in that editor though, other people would see it without the makeup.
12th Jan 2017, 5:45 PM
Derek Raimann
Derek Raimann - avatar
+ 2
Write code beautifully... I think that's completely nonsensical. Aesthetical opinion of code is extremely personal and arbitrary, but if I had to say, mine is the most beautiful :p
11th Jan 2017, 7:45 PM
Dao
Dao - avatar
+ 2
You need more spacing Valentin, but that's better than many programmers imo.
11th Jan 2017, 7:51 PM
Dao
Dao - avatar
+ 1
coding shit is about writing programs to solve problems effectively, if you code does that, shit! your code's beautiful awesome Just write codes to solve problem effectively
11th Jan 2017, 10:27 PM
Tuchy
Tuchy - avatar
+ 1
I guess I'm gonna check out the tv series to look for such a legendary java code. Maybe I'll finally find the love of my life.
12th Jan 2017, 8:59 PM
Dao
Dao - avatar
+ 1
I've been watching the series, and i've reached that scene. I must correct you in that he said "Java method" and not "Java code", and by what he said, I can't really imagine why her code was so extraordinary, but whatever, the coding aspects of the series have been questionable since the start to me.
13th Jan 2017, 1:17 AM
Dao
Dao - avatar