This forum is in permanent archive mode. Our new active community can be found here.

Random Comments

1344345347349350521

Comments

  • I'm more of an ideas guy myself...
  • I'm more of an ideas guy myself...
    You should start a Kickstarter to allow people to pay you money so you can hire a trained attack coder to make your ideas into reality.
  • edited December 2012
    Hey guys, I have this great idea for a procedural generated MMO with persistent single shard world that dynamically adapts to changes of the players in real time. Every blade of grass will be modeled and characters will age and scar over the course of their life! I also have spent the past three months balancing and perfecting the damage values for all the weapons (which of course, are procedural generated content as well). Just need a coder.
    Post edited by Andrew on
  • edited December 2012
    Like I'm not disagreeing on the use of underscores, I'm just saying that you should first and foremost follow whats agreed upon and second refer to the standards for that language. If Microsoft says avoid underscores when writing C# code and you insist on using them then I'm going to be annoyed. 1) I don't find that underscores makes the code any more readable and 2) It's more difficult for people who expect those naming conventions from the language.
    No, first and foremost is local consistency.

    I do agree that if you have a choice to make you should stick with whatever is typically used for that same language (hopefully that's what's stated in an official style guide).

    However, if you ever get the opportunity to actually set a standard (you won't), I'd have to argue that the Pythonic standard is the best.
    Post edited by lackofcheese on
  • I'm more of an ideas guy myself...
    Because the coding is the only element of a game, right. Not like you need 3d artists, designers, texture mappers, level design, concept art...
  • I'm more of an ideas guy myself...
    Because the coding is the only element of a game, right. Not like you need 3d artists, designers, texture mappers, level design, concept art...
    All of that is coding. It's just a thing coders can do. Why are you making this more difficult than it needs to be? Stop that.
  • edited December 2012
    Consistency is the biggest thing of course. Code where people are using their own conventions when they touch the project is a fucking nightmare.

    I would largely disagree with Pythonic standard. If I write a program in Python I'm going to use it. Pythons functionality is largely based on it's naming conventions to begin with. Then again I think we're both being biased to what we've dealt with the most.
    Post edited by MATATAT on
  • I don't necessarily disagree with using underscores but when you are using them all over the place and using 4-5 in a method name then you might want to reconsider either the names you are using or your conventions for naming.
    Read dis book

    Code Complete: A Practical Handbook of Software Construction, Second Edition
    I'll actually check this out, seems kinda interesting.
  • Pythons functionality is largely based on it's naming conventions to begin with.
    You mean the other way round, right?

    Two quick reasons why underscores are generally better:
    1) It's more like written language - underscores separating words are as close as you reasonably get to spaces separating words.
    2) Underscore separators don't create any conflict with other uses of capitalization, such as for abbreviations.
  • edited December 2012
    Your first point I'm on the fence about. It does look a bit more like natural language but when your code is littered with underscores it makes it difficult to discern other special characters. It also reduces conflict in names, but that is easily averted with using an agreed upon naming convention. It doesn't reduce bug susceptibility to any degree but that is beside the point.

    EDIT: Actually I disagree with myself on conflict. I don't think that is an issue at all really. You're going to run into similar problems whether you have underscores or not. That's a supplementary convention.

    EDIT2: I'm not sure I know what you're talking about exactly. Give me an example.
    Post edited by MATATAT on
  • I don't see what the big deal is. I happen to prefer CamelCase myself, but I've got no problem with underscores. One thing I learned within my first couple months working professionally is to just go along with the existing conventions and it now becomes more or less instinctive that I follow along when working with a piece of code. My first two jobs were C shops that used underscores. My next two jobs were C and C++ shops that use CamelCase. It's all good.

    Interestingly enough, underscores seem to come mostly from a Unix background. Many or all of the multiword Unix and POSIX API calls (clock_gettime(), pthread_mutex_lock(), etc.) use underscores, and most of the developers at my first two jobs had Unix backgrounds. On the other hand, just about all the Windows kernel and user APIs (CreateProcess(), OpenFile(), etc.) use CamelCase, and most of the developers at my current job had Windows backgrounds. Of course, CamelCase also seems to be pretty common in a lot of object-oriented programming, such as C++, Java, C#, etc. Python seems to be a bit of the oddball due to preferring underscores, though.
  • CamelCase for class names. If functional language, then fucntions get CamelCase. UNIX people are right. Anything that comes from Windows programmers is wrong.
  • edited December 2012
    This is curious, I'm going to ask my friend who worked/works with a lot of unix people and do straight C all day. I'm interested to see what their conventions are. Unix people also LOVE to abbreviate everything, which grinds my gears.
    Post edited by MATATAT on
  • CamelCase for class names. If functional language, then fucntions get CamelCase. UNIX people are right. Anything that comes from Windows programmers is wrong.
    You've never had to program Motif or raw X11 code, have you? The Win32 GUI APIs beat the pants off of that swill, although, admittedly, GTK+, Qt, and the like made it much less painful.
  • CamelCase for class names. If functional language, then fucntions get CamelCase. UNIX people are right. Anything that comes from Windows programmers is wrong.
    You've never had to program Motif or raw X11 code, have you? The Win32 GUI APIs beat the pants off of that swill, although, admittedly, GTK+, Qt, and the like made it much less painful.
    Those aren't part of UNIX. There are shitty libraries for every language.
  • Actually, Motif was part of Unix back in the 90's. It was part of the official Unix standards as the official graphical user interface API for Unix.

    Wait, I forget, you don't pay attention to official Unix standards, and substitute your own standards for what constitutes a "Unix."
  • Finally realizing that 2x speed playback of podcasts is the best thing ever.

    Also, on the above topic, I program in Java everyday. The official Java libraries use CamelCase. Therefore, I use CamelCase. I've pretty much always used CamelCase from day 1 though since that's how I was taught in school, and I've mostly only programmed in C/C#/C++ and Java.
  • edited December 2012
    My friend's company has Windows and Unix customers and actually actively differentiates their code to mimic the standards in whichever environment they are working in. So all their Windows drivers are camel case and their kernel code and unix drivers use underscore separators.
    Post edited by MATATAT on
  • Hipsters who hunt is a thing now.

    I originally wrote "Hunting hipsters is a thing now" and made myself laugh.
  • I just found out that thisCase and ThisCase are both called CamelCase. I use the first one for variables and functions and the 2nd for classes.
  • I just found out that thisCase and ThisCase are both called CamelCase. I use the first one for variables and functions and the 2nd for classes.
    My previous employer referred to it as PascalCase vs camelCase, but nobody can seem to agree on what to call it.
  • edited December 2012
    lol BumpyCaps, I should start calling it that from now on.

    Holy shit alternating caps reminds me of my AOL days.
    Post edited by MATATAT on
  • Greetings from my Nexus 7.
  • I just found out that thisCase and ThisCase are both called CamelCase. I use the first one for variables and functions and the 2nd for classes.
    Same here, for the most part. I also use the first one for methods and functions. The general rule I follow is types start with a capital letter and everything else starts with lowercase. I also use ALL_CAPS for constants.

    Anyone who uses StUdLy CaPs needs to be flogged, though.
  • edited December 2012
    LaTeX
    PhD
    pH
    Post edited by lackofcheese on
  • I don't like the new Youtube layout. Its too white.
  • Apparently the Cantonese word for passion fruit literally translates as 'chicken poop fruit'.
  • Actually, Motif was part of Unix back in the 90's. It was part of the official Unix standards as the official graphical user interface API for Unix.

    Wait, I forget, you don't pay attention to official Unix standards, and substitute your own standards for what constitutes a "Unix."
    WTF. Motif is the worst. Maybe they made the GUI bad on purpose to keep nubs from trying to use it.
  • UNIX RULES!

    image
  • I don't like the new Youtube layout. Its too white.
    I like in that I didn't notice it until you pointed out that it was new.
Sign In or Register to comment.