Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 418 419 [420] 421 422 ... 796

Author Topic: if self.isCoder(): post() #Programming Thread  (Read 902755 times)

miauw62

  • Bay Watcher
  • Every time you get ahead / it's just another hit
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6285 on: September 12, 2014, 09:43:44 am »

I'd recommend you to learn C# over Java, but it's your choice :V
Logged

Quote from: NW_Kohaku
they wouldn't be able to tell the difference between the raving confessions of a mass murdering cannibal from a recipe to bake a pie.
Knowing Belgium, everyone will vote for themselves out of mistrust for anyone else, and some kind of weird direct democracy coalition will need to be formed from 11 million or so individuals.

Sergius

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6286 on: September 12, 2014, 11:00:05 am »

Why is lisp even a thing?

Lisp's syntax isn't even the reason it exists, it's because it's self modifying or something.
Logged

Teneb

  • Bay Watcher
  • (they/them) Penguin rebellion
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6287 on: September 12, 2014, 01:25:34 pm »

I'd recommend you to learn C# over Java, but it's your choice :V
HERESY!

Jokes aside, I learned to program with Java, and now am having trouble with languages that aren't OO. Like C.

Don't regret Java for a single moment though, OO allows for wonderful things.
Logged
Monstrous Manual: D&D in DF
Quote from: Tack
What if “slammed in the ass by dead philosophers” is actually the thing which will progress our culture to the next step?

miauw62

  • Bay Watcher
  • Every time you get ahead / it's just another hit
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6288 on: September 12, 2014, 01:37:09 pm »

I'd recommend you to learn C# over Java, but it's your choice :V
HERESY!

Jokes aside, I learned to program with Java, and now am having trouble with languages that aren't OO. Like C.

Don't regret Java for a single moment though, OO allows for wonderful things.
C# is completely OO. :V
Logged

Quote from: NW_Kohaku
they wouldn't be able to tell the difference between the raving confessions of a mass murdering cannibal from a recipe to bake a pie.
Knowing Belgium, everyone will vote for themselves out of mistrust for anyone else, and some kind of weird direct democracy coalition will need to be formed from 11 million or so individuals.

Teneb

  • Bay Watcher
  • (they/them) Penguin rebellion
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6289 on: September 12, 2014, 01:39:42 pm »

I'd recommend you to learn C# over Java, but it's your choice :V
HERESY!

Jokes aside, I learned to program with Java, and now am having trouble with languages that aren't OO. Like C.

Don't regret Java for a single moment though, OO allows for wonderful things.
C# is completely OO. :V
C, not C#. Plain old C. University course on data structures demands it be so.
Logged
Monstrous Manual: D&D in DF
Quote from: Tack
What if “slammed in the ass by dead philosophers” is actually the thing which will progress our culture to the next step?

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6290 on: September 12, 2014, 01:44:44 pm »

Yes, but they're random and therefore unpredictable. Frankly, **kwargs is pretty useless unless you know what you're passing to it ahead of time, and then you need to determine which set of arguments you're using... just having multiple functions is much more elegant. **args is arguably more useful but still hardly ever used; even the Python docs say that it's rarely implemented.

**args is the same as **kwargs ;)

seriously, though, i know that you meant *args

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6291 on: September 12, 2014, 07:43:04 pm »

I'm pretty sure you can get around the inflexible method arguments if you nest a few dozen "if" statements.

Which is why it's inelegant!

**args is the same as **kwargs ;)

seriously, though, i know that you meant *args
ARGHS!

Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

Telgin

  • Bay Watcher
  • Professional Programmer
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6292 on: September 12, 2014, 09:08:01 pm »

Regarding C, to be fair, there's a lot of other reasons someone might have trouble with it other than it being purely procedural.  :)  No built in string type and using pointers will make anyone accustomed to more modern languages uneasy.

On the other hand, there are times that I kind of miss the clear distinction between values and value references / pointers.  In JavaScript for example, I've come to realize that I rarely know for sure whether passing an object around and modifying it is going to affect the original or a copy.  At least in C or C++ you know whether it's a value or pointer.  Or in languages like PHP you can explicitly mark an argument as a reference.

Procedural code definitely still has its place too.  It would drive me nuts if every random PHP script I wrote had to be encapsulated in a class just because.
Logged
Through pain, I find wisdom.

alexandertnt

  • Bay Watcher
  • (map 'list (lambda (post) (+ post awesome)) posts)
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6293 on: September 12, 2014, 09:16:31 pm »

What program would people reccomend to teach kids game development with over a few days?

I was going to use Game Maker, because:

 A) Visual programming is easy to pick up quickly
 B) You can make serious games in it (e.g. Hotline Miami)
 C) It has a non-patronizing interface.

But unfortunetely I can't use it due to licencing.
Logged
This is when I imagine the hilarity which may happen if certain things are glichy. Such as targeting your own body parts to eat.

You eat your own head
YOU HAVE BEEN STRUCK DOWN!

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6294 on: September 12, 2014, 09:57:54 pm »

RPG Maker is the next standby.
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6295 on: September 12, 2014, 10:47:07 pm »

I think that making a game mod for certain more flexible systems may be a reasonable alternative.

Though the more flexible systems I can think of are awfully obtuse, so nevermind about reasonable, just keep that alternative.

EDIT: why do I still post when I realize it's useless beforeI'm done

alexandertnt

  • Bay Watcher
  • (map 'list (lambda (post) (+ post awesome)) posts)
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6296 on: September 13, 2014, 12:04:22 am »

RPG Maker is the next standby.

RPG maker is only really useful for making JRPG's though, and the thing is supposed to be about game development in general, not just creative writing :P

Making a mod for a game brings up potential licencing issues for the target game, and game modding generally isn't the most accessable method of building games.
Logged
This is when I imagine the hilarity which may happen if certain things are glichy. Such as targeting your own body parts to eat.

You eat your own head
YOU HAVE BEEN STRUCK DOWN!

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: if self.isCoder(): post() #Programming Thread
« Reply #6297 on: September 13, 2014, 03:50:17 am »

Scratch is free and easy to use.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.

MorleyDev

  • Bay Watcher
  • "It is not enough for it to just work."
    • View Profile
    • MorleyDev
Re: if self.isCoder(): post() #Programming Thread
« Reply #6298 on: September 13, 2014, 04:21:27 am »

Scratch is a very common one for teaching kids to program. The Code Club in the UK use it as a starting point, before moving onto HTML/CSS and Python. Teaches kids the basics pretty well from what I've heard.
Logged

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: if self.isCoder(): post() #Programming Thread
« Reply #6299 on: September 13, 2014, 04:24:43 am »

I actually am not a huge fan of it for teaching programming skills (I spend sixty percent of my time debugging when working on simple projects, and ninety percent when on new stuff; it's impossible to get anything other than semantic errors in Scratch), but for game design the fact that everything is obvious and errorless is a big plus. Just bear in mind that the functionality can be quite limited, and larger projects become a nightmare to navigate.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.
Pages: 1 ... 418 419 [420] 421 422 ... 796