Post B6csceTrlwnfI2HNIm by fiore@brain.worm.pink
(DIR) More posts by fiore@brain.worm.pink
(DIR) Post #B6cr7GHbaafxJK0pKy by fiore@brain.worm.pink
0 likes, 0 repeats
heres a little snippet . wtf . why do you format your code like that . whatstatic intflatpak_run (int argc, char **argv, GError **res_error){ /* ... */ if (!command->fn) {
(DIR) Post #B6crQusasNyeikgZ5k by coolbean@brain.worm.pink
0 likes, 0 repeats
@fiore "the full thing wouldnt fit within 80 columns so i split it across several vertically aligned lines" absolute insanity
(DIR) Post #B6crQv780LbTRpUAkK by fiore@brain.worm.pink
0 likes, 0 repeats
@coolbean ok but like i agree that you should do that i just disagree with how they did it . look at that if statement wtf
(DIR) Post #B6crR0iBC1DCoBrKgy by coolbean@brain.worm.pink
1 likes, 0 repeats
@fiore my stance on this is the hare style guide tbh. i hate how much i like drewdevaultwaer
(DIR) Post #B6crRO2ATrrp8qO7Xc by fiore@brain.worm.pink
0 likes, 0 repeats
@coolbean link?
(DIR) Post #B6crRedckNKqde2G92 by navi@social.vlhl.dev
1 likes, 0 repeats
@coolbean @fiore the full thing *would* fit under 80they just always split one argument per-line
(DIR) Post #B6crTuEzhuorbnaZBw by coolbean@brain.worm.pink
1 likes, 0 repeats
@navi @fiore WHYYYYY
(DIR) Post #B6crmPW0AWx1ohMqRc by coolbean@brain.worm.pink
1 likes, 0 repeats
@fiore https://harelang.org/documentation/usage/style.html
(DIR) Post #B6crn3vDwAtT8VTYJM by navi@social.vlhl.dev
1 likes, 0 repeats
@coolbean @fiore that's the same style a lot of c code (inc. mine) follow
(DIR) Post #B6crnmmx7m12Hsx5AO by TheOneDoc@tech.lgbt
1 likes, 0 repeats
@fiore hommmvi:set et sw=2 sts=2 cin cino=t0,f0,(0,{s,>2s,n-s,^-s,e-s:Probably kicks kittens
(DIR) Post #B6crp5utUZUrtyI4I4 by coolbean@brain.worm.pink
1 likes, 0 repeats
@navi @fiore good! i hate pointlessly aligning things with spaces
(DIR) Post #B6crqTIa2lwui31gVk by fiore@brain.worm.pink
0 likes, 0 repeats
@coolbean @navi it just makes everything so ungreppable
(DIR) Post #B6cs7YfDLkIGGulDJg by fiore@brain.worm.pink
0 likes, 0 repeats
@navi @coolbean me too except for function arguments. if they overflow the line id rather have them each in a line (see default rustfmt behaviour)definitely not with vanity spaces tho
(DIR) Post #B6csceGkYiJAdM8trE by coolbean@brain.worm.pink
0 likes, 0 repeats
@fiore @navi ok then we're all in agreement that tabs are perfectly fine, right?
(DIR) Post #B6csceTrlwnfI2HNIm by fiore@brain.worm.pink
0 likes, 0 repeats
@coolbean @navi obviously???
(DIR) Post #B6cslYGUFg5QcOGU5I by coolbean@brain.worm.pink
1 likes, 0 repeats
@fiore @navi thank fucking god cause this argument has been driving me crazy for actual years. vanity spaces are a plague oh my fucking god
(DIR) Post #B6cspVjLcJkNuqeUaG by fiore@brain.worm.pink
0 likes, 0 repeats
@coolbean @navi i do use spaces in other situation where i wanna enforce alignment somewhat , but personally i prefere leading tabs for code indentation
(DIR) Post #B6cstJsjbzU0KIrJyq by Suiseiseki@freesoftwareextremist.com
0 likes, 0 repeats
@fiore @coolbean @navi Don't forgot that tabs deserve a few terminating spaces, as a treat.
(DIR) Post #B6cstK3MyRzQrHpoYa by coolbean@brain.worm.pink
1 likes, 0 repeats
@Suiseiseki @fiore @navi im killing you im killing you im killing you gnu style sucks im killing you im killing you im killing you im ripping out your organs im killing you im killing you im killing you im killing you
(DIR) Post #B6cumMiMsgAmzep0qW by haematophage@fabula.schizophreni.ca
1 likes, 0 repeats
@coolbean @fiore eight space tabs… 😖
(DIR) Post #B6cumuYH4iIjwCMQpk by coolbean@brain.worm.pink
1 likes, 0 repeats
@haematophage @fiore that ones a recommendation. due to the lack of vanity spaces you can just set it to whatever you want. i like 6 tbh
(DIR) Post #B6d5QZHkYtYN6cBEmW by minekpo1@mastodon.catgirl.cloud
1 likes, 0 repeats
miss @fiore : like it wouldn't format that like that but it does vertically aligning stuff , it makes the code look nicer . tbh the only two things it disagrees with is putting the return type and the opening brackets on seperate lines
(DIR) Post #B6d5U5L9q3oLOJS2MK by fiore@brain.worm.pink
0 likes, 0 repeats
@minekpo1 look at that opening bracket on the if statement.. half indented like that .
(DIR) Post #B6dGqyY0MKe4ToZtNg by meeper@netzsphaere.xyz
1 likes, 0 repeats
@fiore I like it tbh