Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-8081-

shittyCase

Name: Anonymous 2012-08-13 10:47

Why did people even consider using this shitty unreadable method of separating words inside compound identifiers?  Why the fuck is it recommended style for Javascript, Haskell and other half-decent languages?  Why does Python use it in some of its identifiers (but not in all, because it is inconsistent shit)? 

Why won't underscores do (or even real spaces for some languages)?  Makes code much more readable.

Name: Anonymous 2012-08-13 10:51

don't know either.

probably mob effect: the built-in standard classes use that, so every other class is mimicking that, and it all goes shit from that

Name: Anonymous 2012-08-13 11:26

>>2
It is good practice to use the style which the standard library uses in your programs (if it follows any sort of consistent style, i. e. not PHP or Perl, as their libs all use a multitude of styles; Python has inconsistent standard library as well, but it is greatly alleviated by the popular PEP-8).

However, why would any language designer conscientiously choose the worst possible style for his new (or even not yet written) standard library?

Name: Anonymous 2012-08-13 11:45

lisp-case-supremacy

Name: Anonymous 2012-08-13 11:54

>>4
Shit because lispers for decades fail to move on to having better syntax which allows fucking infix epressions.  Ignoring the infix minus possibility, - is still no better than _ as a separator.

Name: Anonymous 2012-08-13 11:59

>>5
Yes, it is because you don't have to use shift.

Name: Anonymous 2012-08-13 12:10

Fucking true. I was interested in Haskell a while back but shittyCase just made me want to bleach my eyes.

Name: Anonymous 2012-08-13 12:34

>>6
I spend very little time actually typing in code.  I spend much more time reading it.  So this is a non-issue for me, and readability is.

Name: Anonymous 2012-08-13 14:45

>>5
examplify this touted ``infix expressions'' shit and why it would even ever be used ever by anyone EVER

Name: Anonymous 2012-08-15 9:26

By the way C (and, by extension, C++, D, Jewa, C#, Javashit and all other shit languages with syntax derived by C, except Perl) could use real spaces inside identifiers, because using two alphanumeric identifiers next to each other is illegal syntax anyway.

E. g. there is no valid C construction where you can write
foo bar.  It should have some sort of operator or syntactic token between them.

In Perl it is impossible because you can omit parens during function calls (like in Haskell after which Perl was modelled).

Name: Anonymous 2012-08-15 9:36

Compare this:

Q.Interface.prototype.defaultValue = Q.makePropertyAccessor('__defaultValue__');
Q.Interface.prototype.restoreDefaultValue = function () {
    this.value(this.defaultValue());
};

and

Q: Interface: prototype: default value = Q: make property accessor('__ default value __');
Q: Interface: prototype: restore default value = function () {
    this: value(this: default value());
};


This was the code that I was looking at at the moment of writing, and it's not so bad.  But consider how many identifiers like addContainerToCollection are out there in other places.

I also replaced the dot with semicolon because dot looks silly in the upgraded syntax.  It is not used anywhere else because JS does not have goto labels and does not support Python-like array slices, and the goto-like labels for case can be replaced with something more sensible.

Name: Anonymous 2012-08-15 11:28

Even jabba looks much nicer and actually somewhat readable:

namespace Abstract Factory
{
    public interface I. Button
    {
        void Paint();
    }
 
    public interface I. GUI Factory
    {
        I. Button Create Button();
    }
 
    public class OS X Button : I. Button // Executes fourth if OS:OSX
    {
        public void Paint()
        {
            System: Console: Write Line("I'm an OSXButton");
        }
    }
...


Since we liberated . from being a property/method separator token we can use it inside compound symbols to denote abbreviations.  Yes, it looks a bit more verbose, but this kind of benign verbosity offsets the grotesque ugliness of jabba's own intrinsic verbosity.  I find it a successful example of fighting fire with fire.

Name: Anonymous 2012-08-16 14:27

>>12
The dot character is used very often and it is one of the easiest syntax characters to type in dvorak, so replacing it with the colon is retarded as the colon is awkward to type on both dvorak and qwerty.

Name: Anonymous 2012-08-16 15:14

How about Ada_Case?

Name: Anonymous 2012-08-16 15:40

>>3
Good practice to whom? IMHO, using the same capital letter style like in the standard lib(s) is just a game of luck not to collide with any lib-defined symbols. E.g. in C I wouldn't recommend to anybody to write function names / global vars all lower case because that eliminates possible clashes since C stdlib symbols are lower case.

Name: Anonymous 2012-08-16 15:44

Type_name
variable_name
MACRO_NAME

Name: Anonymous 2012-08-16 16:52

>>10
E. g. there is no valid C construction where you can write foo bar.  It should have some sort of operator or syntactic token between them.
typedef int foo;
foo bar;

Name: Anonymous 2012-08-16 18:23

>>11
You made me realize only shitty verbose languages encourage the use of shittyCase

Thanks >>11-san

Name: Anonymous 2012-08-16 21:16

>>3
In C this is a bad idea.

Name: Anonymous 2012-08-16 21:45

>>8
WhatIsUnreadableAboutThis?ICanReadItJustFine.

Name: Anonymous 2012-08-16 21:56

implying you are a substandard coder
implying programmers are more efficient when making unnecessary keystrokes

Name: Anonymous 2012-08-16 22:21

>>21
text_content_inference(>>21, or(from(/g/, >>21), and(from(/prog/, >>21), trolling(>>21, /prog/))))

from(/g/, >>21) -> inconclusive.
trolling(>>21, X) -> inconclusive.

Name: Anonymous 2012-08-16 22:58

if
     int pos;
     char in string(c, pos, "0123456789ABCDEF"[@0]) orel
     char in string(c, pos, "abcdef"[@10])
then
     pos
else
     -1
fi
Algol 68 uses spaces in identifiers. char in string are three bold symbols (a type, a keyword, and a type), but char in string is a single identifier (a standard library procedure).

Name: Anonymous 2012-08-16 23:25

>>23
Nice. Sometimes I wonder why do we have over 9000 different shitty languages if LISP and Algol 68 already offer us everything we will ever need.

Name: Anonymous 2012-08-17 3:24

>>17
typedefs are the shittier part of C anyway

Name: Anonymous 2012-08-17 3:40

>>24
I agree. I should file a complaint to my university and asking why we learned python, c++, ruby and java the first year instead of Algol 68. I like Algol 68. Any good modern compilers?

Name: Anonymous 2012-08-17 5:19

>>24
(oh(god(this(is annoying))))

Name: Anonymous 2012-08-17 6:37

>>27
If it isn't s-exp, it's absolute pig disgusting shit.

Name: Anonymous 2012-08-17 9:25

>>27
God is Jewish. Remember that we, goyim, have different Gods.

Name: Anonymous 2012-08-17 11:05

>>22
prolog is fucking shit

>>21
fuck off back to /r/technology

Name: Anonymous 2012-08-19 1:28

>>19
C has been around so long that you can often guess a programmer's (or program's) heritage based on what convention is used. AT&T devotees and Linux kernel hackers prefer all lower case, separated by underscores.  The MIT/X11 guys, GL programmers, and C++ refugees mostly prefer camel case.  Camel case with all uppercase typedefs (especially for pointers) is a sure sign of a Windows programmer...

Name: Anonymous 2012-08-19 1:45

underscores_are_more_readable
CamelCaseIsEasierToType

WhichOneIsMoreImportant: readability_of_course!

just_swap_dashes_to_underscores_with_software

Name: Anonymous 2012-08-19 1:53

check them

Name: Anonymous 2012-08-19 4:46

>>33 niceDubs_dude

Name: Anonymous 2012-08-19 8:33

>>32, see >>21

Name: Anonymous 2012-08-19 14:07

>>31
Oh god yes, LPTSTR szFoo = TEXT("This sux");
LPTSTR szBar = TEXT("derp!");
DWORD dwRes = MessageBoxEx((HWND)NULL, szFoo, szBar, MB_ABORTRETRYIGNORE|MB_ICONSTOP|MB_DEFBUTTON2|MB_TASKMODAL, MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL));

So much caps, it's almost COBOL.

Name: Anonymous 2012-08-19 14:08

>>36
Actually, it's LPCTSTR because those strings are constant.

Name: Anonymous 2012-08-19 14:10

>>36
(HWND)NULL
Fuck SEPPLES.

Name: Anonymous 2012-08-19 14:13

Oh wait, HWND is FrozenLPVOID. Allright, casting an LPVOID to LPVOID.

Name: Anonymous 2012-08-19 15:05

>>39
Implementation defined. Got to hold up my end of the contract.

Name: Anonymous 2012-08-19 15:30

>>40
Implying there could be more than one implementation of Windows data types
What the fuck have I just read?

Name: Anonymous 2012-08-19 16:14

Actually, it's LPCTSTR because those strings are constant.
That's so funny.

Name: Anonymous 2012-08-19 16:25

WinAPI is the best:
#define VOID void

oh lol

Name: Anonymous 2012-08-19 16:30

IUsePascalCasingForTheGoodOfMyFellowCountrymenOverseas

Name: Anonymous 2012-08-19 16:47

>>43
That's because Windows 1.0 appeared in 1985, and the first C standard was published four years later.

Name: Anonymous 2012-08-20 7:35

>>45
WinAPI did not appear until Win95, and the conventions Mr. >>36 refers to appeared in Win98 which was a complete rewrite (including rewrite of most of WinAPI).

Name: Anonymous 2012-08-20 8:07

>>14
Like_Implentation := True;

if Majuscule > Minuscule then

 CODE_LIKE_THIS()

else

 code_like_this()

end if;

Name: Anonymous 2012-08-20 8:22

(thread-full-of-infidels)

Name: Anonymous 2012-08-20 8:33

The worst coding convention is probably Intel's. It looks like some mad scientist bred GNU coding style with Microsoft's.

Name: Anonymous 2012-08-20 8:53

All lowercase & terse is the only valid naming convention; except for macros, which should be UPPERCASE; and enums & defines which should be Titlecase, or even judiciously used CamelCase.

Now you know.

Name: Anonymous 2012-08-21 2:50

>>49
U mena

ASSUME cs:hax

mov cs:[ax], word ptr myanus
?

Name: Anonymous 2012-08-21 5:03

>>51
No. I mena Intel's Sepples coding style. Example: https://github.com/otcshare/acpica/tree
Intel assembly syntax is OK.

Name: Anonymous 2012-08-21 5:04

Best coding convention is to avoid uppercase and compound identifiers altogether.  Why waste your mind on reading and remembering kilobytes of silly long words when you should really be operating on abstract concepts?

s f g x = f x (g x)

k x y   = x

b f g x = f (g x)

c f g x = f x g

y f     = f (y f)

cond p f g x = if p x then f x else g x

fac  = y (b (cond ((==) 0) (k 1)) (b (s (*)) (c b pred)))

This way you don't waste time recalling how a function was called, was it widgetContainerFactoryIndexFactory or was it widgetContainerIndexFactoryFactory?

Name: Anonymous 2012-08-21 5:10

>>52
But there's no SEPPLES, just C. Actually, their style just makes doc gen easier.

Name: Anonymous 2012-08-21 6:51

Thanks OP. You Just reminded me why I hated JaVa class so much. And you are not the only one:
http://en.wikipedia.org/wiki/Camelcase

i_shall_code_like_this = always;

Name: Anonymous 2012-08-21 7:00

(burn-the-heretics!)

Name: Anonymous 2012-08-21 10:00

>>56
State is a sin.

Name: Anonymous 2012-08-21 11:23

>>52
>>54
The ASL compiler probably isn't the best example of a Intel "house style".  Anything ACPI is going to be strongly influenced by the relevant specifications, much of which were written by (guess who!) Microsoft people.

Name: Age/Sex/Location compiler! 2012-08-21 13:15

Age/Sex/Location compiler!

Name: Anonymous 2012-08-22 7:23

>>59
Sounds like a very creepy piece of software for very creepy people.

Name: Anonymous 2012-08-23 2:07

>>60
ACPI is pretty creepy.

Name: Anonymous 2012-08-24 5:54

>>61
APM is a proprietary and closed ``standard''.
APM is widely inconsistent across devices.
APM is very limited in what it can be used for.

ACPI is an open standard.
ACPI is extensible.
ACPI is user- and developer-friendly.

Name: tdavis 2012-08-24 5:57

Lose those Burgenstocks, and the dorky bike helmet.

LoseThos is a x86_64, ring-0-only (like DOS), identity-mapped, multi-cored, multi-tasking, non-networked, free,
100% open source, public domain, PC operating system.  It is 135,000 lines of code and includes a 64-bit compiler. 
It has a command line that feeds into a C-ish compiler.  I wrote every line from scratch over the last nine years
(full-time) and not even ASCII was sacred -- there are binary graphics in source code.

Did you know the C64 did not use ASCII?  I had a book in high school, Mapping the Commodore 64, that told how to
control all the hardware and what all the inside of the ROM did.  I spent a lot of time just screwing around exploring it.

LoseThos is not a permanent home for everyone, but it's so exotic, mind-opening and intriguing that it's sure to
provide as much entertainment as a AAA game, if you just boot and don't install.  (You can install if you want to.) Kids
today seem very close minded.  When I grew-up, there weren't established categories of games and it never
occurred to me there were only so many types of games.

I've been imprisoned by the FBI and have missed my window on the market.  Now, Microsoft and Intel have banned
operating systems with secure boot.  Unless an act of God or order from God happens, I don't know.  He'll have to
get biblical on their asses.  I'm shocked how nobody reacts to God talking.

Name: Anonymous 2012-08-24 7:34

>>58
>>62
Help influence these /prog/ then:
https://acpica.org/

Name: Anonymous 2012-08-24 13:18

>>62
ACPI is (...) developer-friendly.
What the fuck.

Name: Anonymous 2012-08-24 13:42

>>65
It is consistent and reliable, it is truly cross-platform while APM is not.

Name: Anonymous 2012-08-24 17:04

It is consistent and reliable, it is truly cross-platform
Only if you're not working on real hardware.

Name: Anonymous 2012-08-24 18:07

ACPI's AML is complex beyond belief.  Why didn't they just use Lisp or Forth instead?

Name: Anonymous 2012-08-24 22:49

>>68
Microsoft and Intel can't design anything right the first time, and they can't get rid of old designs because of backwards compatibility, so every mistake and poorly designed feature sticks around for decades. Look at Win32 and x86.

Name: Anonymous 2012-08-24 23:14

>>69
Sounds like C++

Name: Anonymous 2012-08-24 23:26

Hitting shift and typing a letter at the same time is faster than reaching for a separate key (or worse, shift + a separate key for an underscore). camelCase is the most efficient method of separating words.

Name: Anonymous 2012-08-24 23:52

Name: Anonymous 2012-08-25 0:43

>>70
Yes but the SEPPLES committee thinks they can fix this by adding even more shit to the language.

Name: Anonymous 2012-08-27 8:47

SupremeCase is best case because its not shittyCase or o_god_i_need_to_waste_more_horizontal_space

Name: Anonymous 2012-08-27 12:43

>>74
| SpaceWastingPatternFactory
funny

Name: Anonymous 2012-08-27 16:05

>>75
u dont have to use java

Name: Anonymous 2012-08-27 16:46

Scrum Master
    Scrum is facilitated by a Scrum Master, sometimes written as ScrumMaster, who is accountable for removing impediments to the ability of the team to deliver the sprint goal/deliverables.

Name: Anonymous 2012-08-27 16:58

>>71
Only if you throw away your shit code and not ever read it again.

Name: Anonymous 2012-08-27 18:24

>>77
ScrubMaster

That was ENTERPRISE QUALITY!

Name: Anonymous 2012-08-27 18:25

>>71
Contracting words
lk ths
is more efficient than writing
like this

Fuck those vowels man, my boss told me to be AGILE!

Name: Anonymous 2012-08-27 18:33

>>8)0 ethn wnhy are y;qu uisng the sihfgh\t key at eall+/?
fukcn wokr eman, woh needxs to workb when youo have weeed

Name: Anonymous 2012-08-27 19:21

>>80
skipping vowels is jewish. don't do it

Name: Anonymous 2012-08-27 23:32

>>67
So very true.  As best I can tell, ACPI is really industry doublespeak for ``can run Windows''.

Name: Anonymous 2012-08-28 0:02

>>83
|ACPI is really industry doublespeak for ``can run Windows''
jesus christ are you mentally retarded or what

Name: Anonymous 2012-08-28 0:09

|
back to /b/, please.

Name: Anonymous 2012-08-28 2:11

thisIsTheWorstShit holy fuck

Name: Anonymous 2012-08-29 12:28

What amazes me is that fucking years after PEP-8 was published and widely accepted there are people who go on creating projects where all methods areCalledLikeThis as if they were still writing their familiar java/c# turdshit.  It's been 11 FUCKING YEARS, would it fucking murder these twisted, tornado, unittest etc guys to fucking adhere to it?  I couldn't give an infinitely small amount of fuck about their language background and that they are used to it, this is just fucking infuriating.

Name: Anonymous 2012-08-31 11:59

Twisted naming convention is a fucking mess
The Protocol class used throughout this document is a base implementation of IProtocol used in most Twisted
applications for convenience. To learn about the complete IProtocol interface, see the API documentation for
IProtocol.
Who the fuck calls classes IProtocol?  It's fucking PYTHON you fucking moron, there are no interfaces here!!!

Don't change these.
Name: Email:
Entire Thread Thread List