- shitCase is good.
- Short names are good for variables.
- Medium-length names are good for functions, types, modules, etc.
- Java-length names are bad.
Name:
Anonymous2007-03-06 15:29 ID:EjUj3aVQ
>>41
You mean superClassToGetIntsBecauseJavaWontGiveMeAFuckingPointerToOne isn't a good name?
Name:
Anonymous2007-03-07 5:08 ID:5HTqSbzp
>>38
What? What book? If there's a book that already said that with those words let me know for massive coincidence, it'll make me happy.
>>41
shitCase is shitty shit mostly Java fags use: it looks fugly, and it's ambiguous: fuckSister is shitCase, but fuck alone can't be told from lowercase. Butt ugly. CamelCase is the proper way, and it's not ambiguous except for single letters which you shouldn't be using for something that deserves CamelCase.
Short names are good for loop and index variables, temporary variables, and such, but if you name your variables for major application logic, non-anonymous functions, function parameteres (save geometry, Maths, and stuff like that), globals, or similar with single letters, then I hope I never have to work on your code.
And of course Java-length names suck. If you need five words to describe something, you're doing it wrong.
Name:
Anonymous2007-03-07 6:22 ID:aQP5QU4I
CamelCase is the proper way
Sure, if you're a VB 'programmer'.
Take your religious war elsewhere. Here we care about programming, not your cute little opinion on largely irrelevant style preferences.
Name:
Anonymous2007-03-07 8:20 ID:/KyOVEZ7
firstWordLow case is very very useful in Haskell, since underline is how you write something that's supposed to be read as being subscripted (since it doesn't mean anything in the language). And CamelCase is restricted to constructors and type, class, etc names.
Wouldn't use it in C, hell no. My left pinky is already sore enough from working the left shift key.
>>45
One word. Forced indentation of code. Thread over
Name:
Anonymous2007-03-07 10:15 ID:UF1mV5Xm
>>43 but fuck alone can't be told from lowercase.
That's sort of the whole idea.
And if you need long variable names, then your variable scopes are too big.
Name:
Anonymous2007-03-07 12:07 ID:5HTqSbzp
>>44
I don't know Visual Basic. Do they use CamelCase for functions and classes? Then at least there's ONE thing they got right.
>>46
Hahaha, get a language that doesn't rely on hacks like that to parse and tell the type of identifiers.
>>49
No, that's not the idea. There's lower_case, there's CamelCase and there's UPPER_CASE for you to use as you see fit. A language shouldn't impose you a convention, but you should stick to a decent one. And a decent one would be CONSTANTS, FunctionsAndClasses, and other_variables, plus less significant variables which you name a, b, c, .... Of course, you shouldn't need neither BufferedCocksInputShitter nor buffered_cocks_input_shitter because if you can't explain what you do with less than 3 words you're failing or missing vocabulary.
>>50 Hahaha, get a language that doesn't rely on hacks like that to parse and tell the type of identifiers.
Haskell uses type inference, which your puny mind has no chance of comprehending!
Name:
Anonymous2007-03-07 16:57 ID:pT+k+A3l
No need for my/strict in Python, as the use of an undefined symbol raises an exception.
No wonder I think the majority of python fags are idiots.
That's incredible ignorant.
Name:
Anonymous2007-03-07 19:05 ID:lyv5qAm/
Python is fail, it's not OO enough (Ruby is), not functional enough (Lisp and Haskell are) and not useful enough (Erlang is). It's a failed mix of languages, I will never use this crap.
Name:
Anonymous2007-03-08 1:13 ID:fr6vdVp3
OO IS FOR FAGGOTS WHO NEED TRAINING WHEELZ. EVERYTHING CAN BE DONE IN PROCEDURAL MORE EFFICIENTLY.
Name:
Anonymous2007-03-08 5:57 ID:3b42YNTO
>>53
Python's OO is good exactly because it's not OO-fanatic and doesn't get in the way when OO does not adjust properly to a particular problem. Right tool for the right job, fags.
I agree that it should provide more functional programming tools, but right now you have built-in lists (and dictionaries), first-class functions and classes, lexical scoping, lambdas, lazy iterators, coroutines, and you can do a lot of stuff, from the basic list operations (map, filter, fold, scan, zip, etc.) to function manipulation (currying, composition, etc.). You can write/pasta decorators to memoize or tail-recursion-optimize your functions. That's more than most languages offer.
As for usefulness, bullshit. Python's standard library and cheese shop are awesome.
Name:
Anonymous2007-03-09 17:27 ID:e9IH8SxS
>>55
I agree. Python is pretty useful even though it is not pure in any respect.
Python's random nonfunctionality is quite disturbing, though. Some standard methods (like list.reverse()) seem to be destructive just for the kicks, and they bite me every fucking time I use them.
Another thing I'll really fucking hate for as long as I will use Python is the fact that 0 == False, which doesn't work too well with enumerators.
Name:
Anonymous2008-04-19 18:40
>>55
You're a moron if you name variables in such a way that you can't tell what kind (not necessarily type) of objects will they reference in real time.
Name:
Anonymous2009-03-06 11:04
The hell indeed I would believe nothing they said you need to go teach and I felt kind of vocational schooling It.
Name:
Trollbot90002009-07-01 8:06
It in each directory so the url inference engine built into the current node and moves the pointer to the previous node Used for retracing?
Name:
Anonymous2012-03-23 23:40
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy
There's no such thing as OO vs procedural. Mostly since the term OO is meaningless. Everybody has their own definition of it, and people always misunderstand each other when discussing it. In a similar way, procedural is used to name either the things not OO or anything imperative, and as such doesn't bear much weight.
The notion that you need classes and static typing for large projects is plain wrong. With large projects, you need to divide the problem into smaller problems, and solve them independently. You build small modules with clear requirements and responibilities, and larger modules in terms of other modules. This has been known since the olden days[1]. You can do this with classes, but that's not the only way.
[1] On the Criteria To Be Used in Decomposing Systems into Modules
Name:
Anonymous2012-03-26 10:26
You are all insane.
Real programmers uses interface programming.
Interfaces (with multiple inheritance) solves all the silly problems with duck typing and allows me too have compiler checks.
You also get better class diagrams withouth the fucking inheritance (C++, fuck you).
No i mean pure abstract base classes in a langauge that supports multiple inheriteance.
And on that note Multiple dimensional seperation of concerns and subject orietanted programming works and should be favored when using (read, forced to) OO.
Name:
Anonymous2012-03-26 12:58
>>2 lol(x, y) vs. x.lol(y)
More like mynamespace_lol(x, y) (or something along those lines) vs x.lol(y) if you're writing something that isn't a toy program.
The idea of OO is good, but it's not a one size fits all solution, unlike procedural programming which is, but it's not so pleasant sometimes.
Name:
Anonymous2012-03-26 13:42
>>25
>The main reason the thing has managed to scale to this size is largely thanks to a number of hacks put in place to fake static typing
Sounds interesting. Could you give an example of the notation? Say you had,
def add(a, b):
return a + b
in your work's codebase. How would you annotate static type information?
Name:
Anonymous2012-03-26 15:32
I stand neutral, but I find this funny:
"Microkernel" was the buzz-word of last year, so Minix is a microkernel. "Object-oriented" is this years, so Minix is object-oriented - right?
- joe, Feb 3 1992, 3:33 am, comp.os.minix, LINUX is obsolete
>>75
I guess I'm the 10%. #occupyworld4ch xDDDDDDD
Also, I'm guessing you didn't just choose 2008 arbitrarily or even based on any real meaningful information. Rather, you chose the exact year you came here, to make it seem like you're an ``oldfag''. Don't kid yourself.
Name:
Anonymous2012-03-27 9:52
>>76
Moot has openly stated that with 4chan pop falling, in a few years we could get back to pre 2009/2008 levels.
I came here somewhen around 2003-2005, /d/ was nice and cozy back then.
I know you're being a dumb nigger, I don't know what I can't help but respond to your retardation. If only Fox News never reported on 4chan pedophila
Name:
Anonymous2012-03-27 9:56
>>77 lol look at me I'm such an oldfag xDDDD no one else discovered this site before me xDDDDD
Name:
Anonymous2012-03-27 9:57
I came here in 2012 xd. My older brother (13) told me about it. Im planning on being a hacker for the isreali government xD so I can fight you guys XD