|
du -hast posted:tbqh in this the year of our lord two thousnad and fiteen, there is basically no reason that readability should not be the top priority. there is nothing worse than having to deal with uncommented code in giant one-line conditionals people the use ternary operators are cunsts
|
# ? Apr 20, 2015 09:01 |
|
|
# ? Apr 19, 2024 16:40 |
|
BONGHITZ posted:when is this useful? idk, this is a ruby idiom is all I know
|
# ? Apr 20, 2015 15:53 |
|
LP0 ON FIRE posted:i've been getting into the habit of getting rid of curly braces in if/else statements if they are one line both of these are incorrect and should be written as code:
|
# ? Apr 20, 2015 15:53 |
|
all man
|
# ? Apr 20, 2015 16:59 |
|
love the extra empty newlines
|
# ? Apr 20, 2015 17:11 |
|
BONGHITZ posted:all man hard tabs only
|
# ? Apr 20, 2015 17:43 |
|
hard tabs are disgusting and I let go fmt handle all these matters
|
# ? Apr 20, 2015 18:16 |
|
ruby is a garbage language that should be abolished from this fine earth
|
# ? Apr 20, 2015 18:16 |
|
idk how anyone could seriously use spaces instead of tabs. like what the gently caress? are you using vim or something?
|
# ? Apr 20, 2015 18:16 |
|
Haskel has optional indentation (if you don't use brackets) its cool
|
# ? Apr 20, 2015 18:19 |
|
lol at failtard jumping on the Haskell clown wagon
|
# ? Apr 20, 2015 18:20 |
|
pram posted:lol at failtard jumping on the Haskell clown wagon I like indentation, but I never want to use Haskell again at this moment in time, its too hard to use
|
# ? Apr 20, 2015 18:24 |
|
all go code is indented. this is done automatically. it is truly the greatest of languages
|
# ? Apr 20, 2015 18:26 |
|
lol go is deprecated.
|
# ? Apr 20, 2015 18:27 |
|
i prefer code:
|
# ? Apr 20, 2015 18:30 |
|
Cumt posted:i spread my conditionals over many lines for maximum readability that almost looked like an if and else at first. v hard 2 read
|
# ? Apr 20, 2015 18:34 |
|
Shaggar posted:both of these are incorrect and should be written as yes, let's waste another line when you can always assume an opening curly brace will always be included in multi-line code for a conditional
|
# ? Apr 20, 2015 18:36 |
|
you cant waste lines. this isn't the 70s
|
# ? Apr 20, 2015 18:37 |
|
I click Format -> Format Code and let Eclipse take care of it for me
|
# ? Apr 20, 2015 18:40 |
|
ecrapse
|
# ? Apr 20, 2015 18:41 |
|
It definitely has issues
|
# ? Apr 20, 2015 18:43 |
|
? :
|
# ? Apr 21, 2015 00:04 |
|
Shaggar posted:both of these are incorrect and should be written as nah that first brace line is a waste, it adds nothing
|
# ? Apr 21, 2015 02:02 |
|
1TBS is perfect
|
# ? Apr 21, 2015 02:04 |
|
Shaggar posted:idk how anyone could seriously use spaces instead of tabs. like what the gently caress? are you using vim or something? when i use vim i use hard tabs
|
# ? Apr 21, 2015 04:56 |
|
hard tabs benefits: each user can set them to whatever width they want without bothering anybody else a single hard tab character can display multiple spaces of whitespace; to represent it with spaces instead of a tab character wastes valuable bytes hard tab drawbacks:
|
# ? Apr 21, 2015 04:57 |
|
Shaggar posted:both of these are incorrect and should be written as agreeing with a shaggar post this is the cleanest, most readable way to format code
|
# ? Apr 21, 2015 10:56 |
|
Shaggar posted:you cant waste lines. this isn't the 70s
|
# ? Apr 21, 2015 11:25 |
|
anyone who thinks you cant waste lines hasnt seen my posting
|
# ? Apr 21, 2015 11:52 |
|
ternary operators are good and cool, and have made my code more better
|
# ? Apr 21, 2015 12:19 |
|
i omit all optional whitespace and brackets, and then i xz -9 each source file to get the maximum mileage out of my floppy disk
|
# ? Apr 21, 2015 12:39 |
|
if not object: print("Do stuff")
|
# ? Apr 21, 2015 13:09 |
|
suffix posted:i omit all optional whitespace and brackets, and then i xz -9 each source file to get the maximum mileage out of my floppy disk do 'xz -9 --extreme' to be as extreme as possible
|
# ? Apr 21, 2015 13:17 |
|
ternary operators are extremely ftw
|
# ? Apr 21, 2015 13:56 |
|
suffix posted:i omit all optional whitespace and brackets, and then i xz -9 each source file to get the maximum mileage out of my floppy disk i tried this with ur mom and she got extreme mileage out of my floppy disk, thx for the advice St Evan Echoes posted:ternary operators are extremely ftw nice
|
# ? Apr 21, 2015 14:37 |
|
GoldenTeeth posted:agreeing with a shaggar post i kinda am too now. i always hated it, but now i think i'm beginning to understand i think i'm gonna try this with my next project
|
# ? Apr 21, 2015 14:58 |
|
ternary operators sound v neet I will try them
|
# ? Apr 21, 2015 22:04 |
|
obligatory no dont
|
# ? Apr 21, 2015 22:04 |
|
Ternary Operator? Remember: Use it often
|
# ? Apr 21, 2015 22:07 |
|
|
# ? Apr 19, 2024 16:40 |
|
Instant Grat posted:ternary operators are good and cool, and have made my code more better St Evan Echoes posted:ternary operators are extremely ftw Fanged Lawn Wormy posted:ternary operators sound v neet I will try them EMILY BLUNTS posted:!(Ternary Operator)? Remember: Use it often
|
# ? Apr 21, 2015 23:29 |