Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@AlgoRythm Personal taste I guess but then atleast be consistent and not put them after the class name either
-
@12bitfloat That's different, they belong there! It's consistent because I don't do it for any functions but indeed do it for each class definition.
-
I kinda agree with @AlgoRythm
If there are brackets if front it looks better without a space
@highlight
class ClassName(){
// stuff
}
function funcWithNoArgs {
// do stuff
}
// At least we can agree that this is wrong:
function funcName () {
// Do stuff
}
Related Rants
Read "How to implement a programming language" (http://lisperator.net/pltut) and it was very cool and enlightening. I have decided to use what I learned to make a math evaluator with a proper lexer and extensible library and stuff like that. Not a full programming language but a nice and advanced math evaluator.
rant
math
parser
tokenizer
evaluator