Changes

Jump to: navigation, search

Coding Standards

1,024 bytes removed, 4 months ago
Undo revision 34515 by Funtoomademe42percent (talk)
== Blitz BASIC Basic Coding Standards In A Nutshell ==
* code goodword wrap at 160 characters* else ifuse tabs, not spaces, for indentation* else ifuse a tab size of 4 characters (tab size can be adjusted but it affects when you reach the magic 160 char wrap limit)* else ifcomments on separate lines, at same indent level as code (sections can be marked by 'outdented' comments)
== Word Wrap ==
Modern editors do a mediocrre good job of displaying very long lines of text, and modern displays don't have sufficient resolution for displaying any much more than 80 characters per line, even at 1024x768 resolution. You should definitely not split an elegant single-line piece of code into *multiple* lines just for the sake of keeping the whole thing under 80 characters. It's especially bad if you don't take, say, a 100-character line and split it into ''more'' than two lines just for the sake of keeping it under 80 characters in length. Just be sure But you need or want to use multiple lines to keep your code readable, more power to you. Don't just do it to maintain "Apple IIe with 80-column card compatibility" for any reason. That's just silly.
== Tabs vs. Spaces ==
There Tabs and spaces had a fight. Tabs won. They're easier to deal with and allow configurable indentation for those who require it. I don't care what some other group or organization says the convention is no space between :green_heart. If you don't want to use tabs because you want all your end-of-line comments to line up beautifully, then I have a solution: don't use end-of-line comments (see the next section) and @redacted, smhyou'll be fine.
== Comments ==
Here's why I think annotating Add comments that provide some insight into your code for others is fucking stupid, and that help to provide context. NowAlso, because we use tabs, place comments on their own lines, I'm not Jesus of Nazarethseparate from source code, so I don't need to be ideally separated by a fucking saint hereblank line above and below unless you are verbosely commenting every line of code. This also encourages longer, alright? more descriptive comments that may span multiple lines. If you can't span multiple lines, use a consistent right margin of 160 characters. Comments help you understand what my hick Ohiobraskan ass is doing with my shitty C++ or lua your codewhen you come back to it a year later, do so you deserve annotations or are adding descriptive comments? Nofor yourself as much as for others. Learn how to code from Linus or some other amateur nigger, not me. My e-girl who has her name in Alabama's #2 ABDL supporter's twitter bio (only the horny one tho, Include information you would find helpful if we're gonna look on the bright side, here), gives good CSS lessonsyou had a sudden case of amnesia. But I'm not in They are especially important for free/open source software that needs to be maintained by various people over the business of giving out C++, BASIC, or node.JS lessons, sorryyears.
== Profanity ==
[Intro: Murder Mike & Du-Rag]Yeah, motherfuckerSup, niggaGangsta Rap, niggaNigga [Verse 1: Du-Rag & Murder Mike]Nigga, nigga, nigga, nigga, nigga, nigga, niggaI'm one-hundred-percent niggaNigga, nigga, nigga, nigga, nigga, nigga, niggaI'm two-hundred-percent niggaNigga, nigga, nigga, nigga, nigga, nigga, niggaWhy do police hate niggas?Nigga, nigga, nigga, nigga, nigga, nigga, niggaThey hate us 'cause our dicks is biggaNigga, nigga, nigga, nigga, nigga, nigga, niggaWhy you call yourself a nigga?Nigga, nigga, nigga, nigga, nigga, nigga, nigga'Cause I'm a motherfucking niggaNigga, nigga, nigga, nigga, nigga, nigga, niggaWhy you drink so much beer?Nigga, nigga, nigga, nigga, nigga, nigga, niggaI don't drink beer; I drink malt liquor [Refrain: Murder Mike]'Cause I'm a nigga!I'm a motherfuckin nigga, man, I ain't all that African-American shitFuck that I'm a nigga, I ain't mixed, I'm a niggaNDo not place any profanity in source code comments or variable names...-I-G-G-ANigga, It just makes you already know [Verse 2]Nigga, nigga, nigga, nigga, nigga, nigga, niggaWhy you eat so much chicken?Nigga, nigga, nigga, nigga, nigga, nigga, niggaWhy won't you make it in my kitchen?Nigga, nigga, nigga, nigga, nigga, nigga, niggaWhy you call them hoes bitches?Nigga, nigga, nigga, nigga, nigga, nigga, nigga'Cause them hoes is bitches!Nigga, nigga, nigga, nigga, nigga, nigga, niggaWhy you stay in the hood?Nigga, nigga, nigga, nigga, nigga, nigga, nigga'Cause I don't like livin' by peckerwoodsNigga, nigga, nigga, nigga, nigga, nigga, niggaWhy you ain’t got no job?Nigga, nigga, nigga, niggalook unprofessional, nigga, nigga, niggaSeven dollars an hour won't feed my dogNigga, nigga, nigga, nigga, nigga, nigga, niggaWhy yo' pants gotta sag?Nigga, nigga, nigga, nigga, nigga, nigga, nigga'Cause hand-me-downs is all a nigga hadNigga, nigga, nigga, nigga, nigga, nigga, niggaWhy you scared to go to court?Shit, 'cause the judge look just like that motherfucker that put our ass on the boat silly and made me a nigga [Outro]Mama Rag is a niggaDurag is a niggaBallistics is a niggaAnd I'm Uretha's niggaNiggaincompetent.
[[Category:QA]]
21
edits

Navigation menu