Re: code habbits

2020-03-06 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: code habbits

@13, you may not have those problems but anyone else who reads your code will go "WTF is this guy trying to do?" Naming your variables, constants, functions, defines, enumerations, structures, and so on well will mean the difference of 10-30 seconds (if maybe a minute or two) to 5 minutes to an hour for that programmer who has to sit and read the last 600 lines of code you've written to try and help you track down an unknown bug. If you use good names for everything from the get-go, a programmer can literally skim your code and get a brief idea of what your program is attempting to do; whereas if you don't do this and just call things setup2, setup3, bla, etc., a programmer might take hours, days or, god forbid, weeks to understand what your attempting to do. This also goes into good code quality, style and structure. For instance, if your compiler lets you do:for (int i = 0; i < 10; ++i) // codeThen you shouldn't do that and should probably do:for (int i = 0; i < 10; ++i) {
// code
}This has two advantages: (1) its not going to push the boundaries of line lengths, and (2) its immediately written with advancement in mind. You can just keep adding statements to this loop without having to add an extra set of braces just to satisfy a compiler, which is a nice way of saving a bit of time. Plus, using good names and a good code style will make you thank yourself if you dessert this project for whatever reason and decide to come back to it 5-10 years later because you happened to throw it up on GitHub and never deleted it.

URL: https://forum.audiogames.net/post/506768/#p506768




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-06 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: code habbits

@13, you may not have those problems but anyone else who reads your code will go "WTF is this guy trying to do?" Naming your variables, constants, functions, defines, enumerations, structures, and so on well will mean the difference of 10-30 seconds (if maybe a minute or two) to 5 minutes to an hour for that programmer who has to sit and read the last 600 lines of code you've written to try and help you track down an unknown bug. If you use good names for everything from the get-go, a programmer can literally skim your code and get a brief idea of what your program is attempting to do; whereas if you don't do this and just call things setup2, setup3, bla, etc., a programmer might take hours, days or, god forbid, weeks to understand what your attempting to do. This also goes into good code quality, style and structure. For instance, if your compiler lets you do:for (int i = 0; i < 10; ++i) // codeThen you shouldn't do that and should probably do:for (int i = 0; i < 10; ++i) {
// code
}This has two advantages: (1) its not going to push the boundaries of line lengths, and (2) its immediately written with advancement in mind. You can just keep adding statements to this loop without having to add an extra set of braces just to satisfy a compiler, which is a nice way of saving a bit of time.

URL: https://forum.audiogames.net/post/506768/#p506768




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-06 Thread AudioGames . net Forum — Developers room : rory-games via Audiogames-reflector


  


Re: code habbits

ok, I'll try to break out of those habbits. I just have never ever had issues with forgetting variables names, even after coming back to projects after, 5 6 months.

URL: https://forum.audiogames.net/post/506764/#p506764




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-06 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: code habbits

You are doing a major disservice to yourself if you don't put thought into things like variable and function naming.  The stuff coming up here with regard to naming isn't just a little bit bad; it's the kind of thing that makes your code unreadable even to yourself if you walk away for even a couple weeks.Good code doesn't need comments and documentation of the variable names because you named them right, which also means that you don't have to go chase your own comments either.  In the best case, just by having familiarity with the project, someone who isn't you can guess what the variable/property/etc should be without having to even check.  The best case doesn't happen often, but it's something really worth aspiring to.

URL: https://forum.audiogames.net/post/506731/#p506731




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-06 Thread AudioGames . net Forum — Developers room : Patrick via Audiogames-reflector


  


Re: code habbits

I do not have many bad things, accept for, say, little arrays and whatever in BGT. The name of the array I simply put as "a" or, say, "this_shit", because it's easy to interact with later. Not sure if that is considered a problem or not, because I usually put comments explaining that array.

URL: https://forum.audiogames.net/post/506655/#p506655




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-06 Thread AudioGames . net Forum — Developers room : ivan_soto via Audiogames-reflector


  


Re: code habbits

If you're doing things opensourced, you should probably not do this.If you're writing code for yourself, go ahead, but if you ever decide to opensource your programs, please clean it up.But Oriol has something good though, and if you name your variables something random like "stup" you will probably forget in like 3 years.Also, not mine but something funny you all should read.https://www.reddit.com/r/tifu/comments/ … tely_as_a/

URL: https://forum.audiogames.net/post/506629/#p506629




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-06 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector


  


Re: code habbits

Hi @1, let me tel you some things, and please don't take it as if I'm criticizing your code:Whenever I want to make a random variable, it is always, always, called "setup"Why? Random variables should not be made for no reason. If you name your variable setup, setup1, in 5 years you will never know what your variables do.if setup is taken,  then "setup1" and so on.Yeah, look above.there always has to be a variable called "bla" even if it doesn't do anything. most of the time it's for my until loops because I never use it, if I want it to never end or don't want it to end via an until loop.bad idea, for the same reason I said before. Blah means nothing to a programmer.I used to make variables like this to, like beatstar has all these crazy variable names, but luckily I have been renaming most of these so I can look at the code again and even someone else can probably look at it too.hth.

URL: https://forum.audiogames.net/post/506626/#p506626




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-06 Thread AudioGames . net Forum — Developers room : Jaidon Of the Caribbean via Audiogames-reflector


  


Re: code habbits

IDK if this counts, I have to make classes, I start every letter ith a capital letter. For example, "car_horn" for me ill be "Car_Horn"So i just realised my key that's to the left of the "E" Key, and right of the Q key has stopped orking. It just happened. Any pointers? And Ivan, I'll be the first to laugh loudly in your face. I mean, I'll fly to Illinois, and  laugh in yuour face for an hour. Also, have you noticed hough stupid Illinois is spelt?

URL: https://forum.audiogames.net/post/506620/#p506620




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-06 Thread AudioGames . net Forum — Developers room : rory-games via Audiogames-reflector


  


Re: code habbits

there is a youtube channel called pure programming which has tutorials, also, I might think of some. But yeah, Ivan, if you learn pb, then quiet about my console apps.

URL: https://forum.audiogames.net/post/506598/#p506598




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-05 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector


  


Re: code habbits

Are you ready?Whenever I make test data, I always use Fred, Joe, sally, Sam, and Jan (Have to have the same number of men as women names LOL).Then in dict data, I will do:{name: "Fred", age: 42, food: "oranges"}I always start with oranges on the food, then I digress to pizza, cheese, and pasta.Whenever I have to write filler text, I always just do a stream out of my head that looks something like:"maha fo coamba ca da mila foly fuishama magama blug mug ug"In _javascript_, for some reason I like using alerts more than console.log, because I feel like it is more responsive.

URL: https://forum.audiogames.net/post/506574/#p506574




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-04 Thread AudioGames . net Forum — Developers room : ivan_soto via Audiogames-reflector


  


Re: code habbits

Yes, those console apps, I tell ya... can't wait to make one!

URL: https://forum.audiogames.net/post/506187/#p506187




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: code habbits

And this is why I had issues when messing around with PB. For me, the manual is just a bunch of references, which is great for somebody knowing the language, but not at all helpful to a newbie. There are literally 0 examples of the concepts being described, and no suggested order in which you are supposed to read the documentation.I think I'll give this a hard pass, and I suggest everyone else do the same until the OP makes a guide on game creation in PB.

URL: https://forum.audiogames.net/post/506181/#p506181




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: code habbits

And this is why I had issues when messing around with PB. For me, the manual is just a bunch of references, which is great for somebody knowing the language, but not at all helpful to a newbie. There are literally 0 examples of the concepts being described, and no suggested order in which you are supposed to read the documentation.I think I'll give this a hard pass.

URL: https://forum.audiogames.net/post/506181/#p506181




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-04 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector


  


Re: code habbits

Download the free trial version and read the manual. It's, at least in my oppinion, better than bgt. Don't be surprised when we mock your console apps though. 

URL: https://forum.audiogames.net/post/506165/#p506165




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: code habbits

2020-03-03 Thread AudioGames . net Forum — Developers room : ivan_soto via Audiogames-reflector


  


Re: code habbits

This is a bit off topic, but I wanna give PB a try. Where do I start learning? The tutorials are shit. The ones I found online anyway

URL: https://forum.audiogames.net/post/506017/#p506017




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


code habbits

2020-03-02 Thread AudioGames . net Forum — Developers room : rory-games via Audiogames-reflector


  


code habbits

Here are some of my quirky, unique, and completely pointless code habbits.Whenever I want to make a random variable, it is always, always, called "setup"if setup is taken,  then "setup1" and so on.there always has to be a variable called "bla" even if it doesn't do anything. most of the time it's for my until loops because I never use it, if I want it to never end or don't want it to end via an until loop.Do you have some code habbits similar to these? share them here!

URL: https://forum.audiogames.net/post/505816/#p505816




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector