[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: itipillar.png (12 KB, 165x512)
12 KB
12 KB PNG
No /chad/ and /dpt/ too gay?
Then rate my new C coding style in MY freshly baked thread. Welcome to any C programmer.
(I started handling printf errors and Chaddified my spacing.)
>>
I just realized this:
I can do EVEN BETTER :^D
>>
the only acceptable spacing is either

1. The default one

or

2. The left-most one

public static void Method(Int32 a, Int32 b) { return; }

public static void Method
(
Int32 a,
Int32 b
)
=>
EndPoint();
>>
3. Comment-wise

namespace Core
{/*
* this is weirdly yet, aesthetically space comment
*/}
>>
>>102432584
you should put braces around all of the if's and elses too.
>>
>>102432897
Both "the default one" and "the left-most one"... tf u mean???? How do you suppose I could understand what you mean by that?
I'm writing vanilla C89 so I can't have the => :^/
>>102432920
{ /*
* you mean DEEZ?
* why the brackets though?
*/ }

>>102432932
You mean like picrel?
I think I would like it if an empty ( ) after else was allowed, or after an elif to make it function as an else.
>>
>>102433068
Whu...
where are my inline code tags, test 1 2 3
?
>>
Test 2: 1 2 3
Test 3:
1 2 3

Test 4: test 1, blabla, 2, skibbydee 3.
>>
>>102433291
Block and inline in same post

Test 5:
10nchars
>>
>>102433304
Test 6: 5char, 4our,
f o u h
.
>>
>>102433326
Test 7: s6i6x6, w w
>>
Test 8:
t  r  y
,
d     o
,
   a   
>>
>>102433358
Min. 7 chars for inline code block, whitespace OK
Test 9, block minimum:
1

Test 10, lone inline as block:
a
>>
no0bz
>>
>>102432480
>>102432584
congrats, you reinvented Prolog conventions
>>
>>102435420
I learned it from reading CATS files :3



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.