![]() |
|
Programming Discussion Thread - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Offtopic (https://forums.dolphin-emu.org/Forum-offtopic) +--- Forum: Delfino Plaza (https://forums.dolphin-emu.org/Forum-delfino-plaza) +--- Thread: Programming Discussion Thread (/Thread-programming-discussion-thread) |
RE: Programming Discussion Thread - ExtremeDude2 - 03-26-2013 Yeah, I should be using objects :p, dunno why I did that stuff with playing, I spammed shorts because I never need any values over 10 XD, also there is a lot more IF statements coming :3 BTW the CPU will be fairly stupid as all it will do is look at what has been played and then choose some set location to move to. RE: Programming Discussion Thread - NaturalViolence - 03-26-2013 Garteal Wrote:Damn NaturalViolence. And here I thought you were analyzing and writing up a detailed analysis of yours of what he did wrong and how he could do it better. Me? Doing work to help people? How long have you known me again? I think you have me confused with some productive member of society. RE: Programming Discussion Thread - Garteal - 03-26-2013 If you're truly conservative about that, then a char would be your best bet A short is still too big. ![]() char signed: -128 to 127 unsigned: 0 to 255 short signed: -32768 to 32767 unsigned: 0 to 65535 Datatypes (03-26-2013, 04:05 AM)NaturalViolence Wrote: Me? Doing work to help people?Perhaps I have yes. I once knew a NaturalViolence who would do that. Looks like he's here no longer. RE: Programming Discussion Thread - ExtremeDude2 - 03-26-2013 I probably should also move things in to separate files so there isn't much code in one place
RE: Programming Discussion Thread - Garteal - 03-26-2013 You learn by making mistakes. It's ok to take small steps. Finish the game, optimize the code, check if you can write it more cleanly, then dive into OOP. RE: Programming Discussion Thread - neobrain - 03-26-2013 Getters and setters are a terrible practice. Just my 2c :p EDIT: I should press F5 before posting next time...
RE: Programming Discussion Thread - ExtremeDude2 - 03-26-2013 I'm suppose to have partners on this project, but due to the fact I doubt anyone will do anything I've pretty much resorted to throwing this together XD I'd really like to add a UI so it looks like I actually tried XD RE: Programming Discussion Thread - Garteal - 03-26-2013 (03-26-2013, 04:38 AM)neobrain Wrote: Getters and setters are a terrible practice. Just my 2c :pCare to elaborate? I personally prefer properties over them, but unfortunately C++ doesn't support that. (03-26-2013, 04:39 AM)ExtremeDude2 Wrote: I'm suppose to have partners on this project, but due to the fact I doubt anyone will do anything I've pretty much resorted to throwing this together XDPartners? They should contribute too. You're basically giving them a free pass doing all the work. As for a GUI I'd advice against it for now. You might've been able to try it out in C# or Java due to the easy GUI building. RE: Programming Discussion Thread - NaturalViolence - 03-26-2013 ExtremeDude2 Wrote:I'm suppose to have partners on this project, but due to the fact I doubt anyone will do anything I've pretty much resorted to throwing this together Garteal Wrote:Partners? They should contribute too. You're basically giving them a free pass doing all the work. I agree. Tell the fuckwits to get off their lazy asses and contribute for a change. Spoiler: (Show Spoiler)
RE: Programming Discussion Thread - AnyOldName3 - 03-26-2013 I have a friend who's trying to learn some basic code. Because he has no idea what he's doing, he's got at least one of his beta testers computer to bluescreen, and another (ie mine) to generally go mad for a while. This was with a supposed shutdown script (although we were told it was a calculator). |