May 19, 2024, 09:39:10 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Wondering where all the forums have gone?

Join the community Discord server!

Pages: 1 ... 62 63 [64] 65 66 ... 77

Author Topic: Official PyGG2 Development thread  (Read 143004 times)

Dusty

  • 2012 Haxxy Award Winner
  • *
  • Karma: -78
  • Offline Offline
  • Posts: 10312
  • Dust in a box under a table
Re: Official PyGG2 Development thread
« Reply #945 on: September 20, 2012, 04:32:34 am »

I think you could call this the official Java style at least.
Nah... something done by the makers of Java?
That would never be official.

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6409
  • Developer
Re: Official PyGG2 Development thread
« Reply #946 on: September 20, 2012, 05:18:09 am »

I think you could call this the official Java style at least.
http://www.oracle.com/technetwork/java/javase/documentation/codeconventions-142311.html#449
7.4
Quote
7.4 if, if-else, if else-if else Statements

The if-else class of statements should have the following form:

if (condition) {
    statements;
}

if (condition) {
    statements;
} else {
    statements;
}

if (condition) {
    statements;
} else if (condition) {
    statements;
} else {
    statements;
}

^ I hate this. Go enforces it.


Code: [Select]
if (condition)
{
    statements;
}
else if (condition)
{
    statements;
}
else
{
    statements;
}

^ Better (imo).
Logged

ajf

  • Guest
Re: Official PyGG2 Development thread
« Reply #947 on: September 20, 2012, 11:18:14 am »

I lost all faith and love of go as soon as I noticed that C curly bracket style is illegal.
Actually... wait, what?

The K&R C-style, the one used by the creators of the language in the original authoritative book on it...

Is the same as Go.

And is the closest thing to Python-style you'll get while still having braces.
« Last Edit: September 20, 2012, 11:18:24 am by ajeef!~taze@ajf.me »
Logged

ajf

  • Guest
Re: Official PyGG2 Development thread
« Reply #948 on: September 20, 2012, 11:25:11 am »

Also, for that matter, as much as you might like your way of doing things, I generally like writing code that I don't need a portrait-orientation non-standard-aspect ratio monitor to read :hehe16:
Logged

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12532
  • Another one --
Re: Official PyGG2 Development thread
« Reply #949 on: September 20, 2012, 01:06:46 pm »

hah
wasn't orpheon the one who argued against setup specific code formatting to begin with?
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

ajf

  • Guest
Re: Official PyGG2 Development thread
« Reply #950 on: September 20, 2012, 01:27:06 pm »

hah
wasn't orpheon the one who argued against setup specific code formatting to begin with?
you're kidding me

right?
Logged

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12532
  • Another one --
Re: Official PyGG2 Development thread
« Reply #951 on: September 21, 2012, 12:46:42 am »

nagn, the thing is languages don't specifically "support vs no support" things

in cases like this they are literally just forcing people to use one style
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

MedO

  • Owns this place
  • *****
  • Karma: 151
  • Offline Offline
  • Posts: 1752
Re: Official PyGG2 Development thread
« Reply #952 on: September 21, 2012, 04:12:39 am »

nagn, the thing is languages don't specifically "support vs no support" things

in cases like this they are literally just forcing people to use one style
Which is perfectly fine by me because it makes style discussions unneccessary, and thus thousands of programmer-hours around the world were saved.
Logged
Quote from: Alfred North Whitehead
It is the business of the future to be dangerous; and it is among the merits of science that it equips the future for its duties.

Quote from: John Carmack
[...] if you have a large enough codebase, any class of error that is syntactically legal probably exists there.

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12532
  • Another one --
Re: Official PyGG2 Development thread
« Reply #953 on: September 21, 2012, 06:45:55 am »

I still want to see a language have a feature for enforcing custom formatting styles.
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

nightcracker

  • NC
  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 516
  • PyGG2 dev
    • NC Labs
Re: Official PyGG2 Development thread
« Reply #954 on: September 21, 2012, 07:18:52 am »

I still want to see a language have a feature for enforcing custom formatting styles.

?!

There are literally thousands of tools that do just that.
Logged

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12532
  • Another one --
Re: Official PyGG2 Development thread
« Reply #955 on: September 21, 2012, 07:45:55 am »

>tools

Also, the vast majority of said tools enforce their /own/ style (e.g. JSLint)
« Last Edit: September 21, 2012, 07:46:37 am by Chartreuse »
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

AcidLead

  • The Flash of the Action
  • Veteran Beta Tester
  • *****
  • Karma: 103
  • Offline Offline
  • Posts: 6370
  • Our hero returns triumphant. Execute him at once.
Re: Official PyGG2 Development thread
« Reply #956 on: September 21, 2012, 08:36:01 am »

guys less drama more progress demarked by screenies and servers that accidentally have 100 player slots
« Last Edit: February 18, 2024, 07:21:55 am by MedO »
Logged
fire at cyberdisc
eighty-five percent hit chance
doh, she missed the shot

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6409
  • Developer
Re: Official PyGG2 Development thread
« Reply #957 on: September 21, 2012, 12:59:34 pm »

guys less drama more progress demarked by screenies and servers that accidentally have 100 player slots
You are welcome to contribute.


hah
wasn't orpheon the one who argued against setup specific code formatting to begin with?
I don't want a specific code formatting, I want freedom.


nagn, the thing is languages don't specifically "support vs no support" things

in cases like this they are literally just forcing people to use one style
Which is perfectly fine by me because it makes style discussions unneccessary, and thus thousands of programmer-hours around the world were saved.
Doesn't give them the right to decide for all programmers. If I don't agree with their decision (I don't), then I just don't use Go anymore.
« Last Edit: February 18, 2024, 07:22:03 am by MedO »
Logged

Saniblues

  • Onion Knight
  • Administrator
  • *****
  • Karma: -1305
  • Offline Offline
  • Posts: 12206
Re: Official PyGG2 Development thread
« Reply #958 on: September 21, 2012, 01:51:35 pm »

guys less drama more progress demarked by screenies and servers that accidentally have 100 player slots
devs youre not allowed to have non dev conversations anymore instant ban
« Last Edit: February 18, 2024, 07:23:00 am by MedO »
Logged
Quote from: mop
Quote from: MR MAGN3TIC
I don't like it.  :nah:
Oh, well, you might as well pack up and stop now, because he doesn't like it
I'm bored out of my skull, Lets play a different game!
Lets take a visit down below And cast the world in flames!

ajf

  • Guest
Re: Official PyGG2 Development thread
« Reply #959 on: September 21, 2012, 02:09:11 pm »

I still want to see a language have a feature for enforcing custom formatting styles.
yes

this is built into unix
Logged
Pages: 1 ... 62 63 [64] 65 66 ... 77
 

Page created in 0.028 seconds with 32 queries.