alsooo, i just hit 300+ karma in SO
8D
| Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
|
Blisse
Canada3710 Posts
alsooo, i just hit 300+ karma in SO 8D | ||
|
bangsholt
Denmark138 Posts
On February 08 2014 11:30 darkness wrote: Quick question on C++, is this link a good place to learn C++ basics from? Also, how transferable are my skills from Java and Objective-C for C++? I've used a little bit of basic C, too - stdlib.h (realloc, memset, malloc, free, exit), stdio.h, string.h and math.h. You seem to be very obsessed with different languages all the time - learn how to program well in one language, once you think that you are capable of that (and if you think you are capable in less than a year - you probably aren't...) then you can move on to the point where you know, what and how to do it. Then it's a question of learning the syntax, because you know the principles of how to do what you want to accomplish. What language you pick is utterly irrelevant - pick something and stick with it. | ||
|
meatpudding
Australia520 Posts
On February 09 2014 05:04 one-one-one wrote: Show nested quote + On February 09 2014 00:55 BisuDagger wrote: On February 08 2014 14:16 Rollin wrote: On February 08 2014 03:45 BisuDagger wrote: On February 08 2014 02:47 RoyGBiv_13 wrote: On February 08 2014 02:39 BisuDagger wrote: Every time I see this thread title I think we should put a project on SVN and give everyone access. Then we can all just jump in and add to the game whenever we have free time. C++ of course (my preference) and built from the ground up. I'd totally put together a frame for a game to jump start this. Yeah, I'm down. We can collaborate on #tl.code. I haven't done game dev for some time, but I can help with the lower level modules. I think I'm going to follow through with this over the next week or two I'll put something together. The simplest style for an open source game is to make it open world. So i'll create a basic open world with directX graphics and setup a camera. From there anyone can literally add whatever the want to it. Physics, graphics, sound, a roaming dragon, anything lol. I'll give updates once I can open this to TL. Just curious, why no opengl for linux/mac? Do you intend to use OS specific functionality (or keep that option open), hence directx over opengl? DirectX is way more friendly for newer people imo. I don't want to spend time developing ogl tools. ![]() For a collaborate project like this I would highly recommend that you use open standards and not proprietary stuff like DirectX. If you don't you make the project X86, Windows-only excluding people using Mac or Linux. Also, if you want to run it on any non-windows platform you will not be able to unless you go for OpenGL. Projects and products based on open standards are inherently superior to single platform proprietary crap from Microsoft. The only place where Microsoft is still relevant is the Desktop, but tablets, chromebooks and similar devices will start eating into their 90% market share pretty soon. I believe that learning OpenGL is a superior choice for young people interested in making games. You should check out the SteamOS project from valve and try to do something cool with that. Just to throw in my 2c. DirectX is fine and all, but it still takes a little while to learn, especially for newcomers to c++. MSDN is a great resource and there are heaps of tutorials online. But, mac and linux users will be left out. When I was developing the updated SC2 map analyser, I started with DirectX graphics, but ended up having to rewrite in opengl due to popular demand. Eventually I switched to using the SDL library, and it's really sweet. I would definitely reccomend SDL due to it's power, simplicity, licensing and platform support. | ||
|
Manit0u
Poland17493 Posts
From what I gather, it's a "step back" when it comes to GPU API, that gets you closer to the hardware and all that jazz. P. S. Also, meatpudding might be on the right track here. Some of the games using SDL do look and work amazing (0 a.d., Battle for Wesnoth, Trine). | ||
|
Zocat
Germany2229 Posts
"When does AMD intend to release a public SDK? We have not set a final date for releasing a public SDK, but we will provide more information later in 2014." | ||
|
one-one-one
Sweden551 Posts
On February 09 2014 09:53 meatpudding wrote: Show nested quote + On February 09 2014 05:04 one-one-one wrote: On February 09 2014 00:55 BisuDagger wrote: On February 08 2014 14:16 Rollin wrote: On February 08 2014 03:45 BisuDagger wrote: On February 08 2014 02:47 RoyGBiv_13 wrote: On February 08 2014 02:39 BisuDagger wrote: Every time I see this thread title I think we should put a project on SVN and give everyone access. Then we can all just jump in and add to the game whenever we have free time. C++ of course (my preference) and built from the ground up. I'd totally put together a frame for a game to jump start this. Yeah, I'm down. We can collaborate on #tl.code. I haven't done game dev for some time, but I can help with the lower level modules. I think I'm going to follow through with this over the next week or two I'll put something together. The simplest style for an open source game is to make it open world. So i'll create a basic open world with directX graphics and setup a camera. From there anyone can literally add whatever the want to it. Physics, graphics, sound, a roaming dragon, anything lol. I'll give updates once I can open this to TL. Just curious, why no opengl for linux/mac? Do you intend to use OS specific functionality (or keep that option open), hence directx over opengl? DirectX is way more friendly for newer people imo. I don't want to spend time developing ogl tools. ![]() For a collaborate project like this I would highly recommend that you use open standards and not proprietary stuff like DirectX. If you don't you make the project X86, Windows-only excluding people using Mac or Linux. Also, if you want to run it on any non-windows platform you will not be able to unless you go for OpenGL. Projects and products based on open standards are inherently superior to single platform proprietary crap from Microsoft. The only place where Microsoft is still relevant is the Desktop, but tablets, chromebooks and similar devices will start eating into their 90% market share pretty soon. I believe that learning OpenGL is a superior choice for young people interested in making games. You should check out the SteamOS project from valve and try to do something cool with that. Just to throw in my 2c. DirectX is fine and all, but it still takes a little while to learn, especially for newcomers to c++. MSDN is a great resource and there are heaps of tutorials online. But, mac and linux users will be left out. When I was developing the updated SC2 map analyser, I started with DirectX graphics, but ended up having to rewrite in opengl due to popular demand. Eventually I switched to using the SDL library, and it's really sweet. I would definitely reccomend SDL due to it's power, simplicity, licensing and platform support. That is a very good idea. You also mention the other point, that if you want your software to run on a mac, tablet or smartphone, you need to use OpenGL anyways. I think that it is more likely that this will become a problem than the fact that you are excluding non-windows users in the development process. | ||
|
Rollin
Australia1552 Posts
| ||
|
one-one-one
Sweden551 Posts
On February 09 2014 20:44 Rollin wrote: Well the issue with going multiplatform and building "from the ground up" is that each platform you want to target is going to need OS specific code, for input handling, audio, etc. In that regard, directx mightn't be a bad idea, or a low level library like allegro/sdl/sfml could be used to avoid the OS specific boilerplate code. Well. The guy above specifically mentioned that he had to transition from DirectX to SDL due to popular demand of his program to run on Mac (and Linux?). So there is a success story for you. SDL is cross platform and will take care of graphics (GL) , input and audio. So no OS specific code is needed for that. You would need different build options for each platform depending on which compiler you use etc. So what is the point of your post? | ||
|
Rollin
Australia1552 Posts
On February 09 2014 20:56 one-one-one wrote: Show nested quote + On February 09 2014 20:44 Rollin wrote: Well the issue with going multiplatform and building "from the ground up" is that each platform you want to target is going to need OS specific code, for input handling, audio, etc. In that regard, directx mightn't be a bad idea, or a low level library like allegro/sdl/sfml could be used to avoid the OS specific boilerplate code. Well. The guy above specifically mentioned that he had to transition from DirectX to SDL due to popular demand of his program to run on Mac (and Linux?). So there is a success story for you. SDL is cross platform and will take care of graphics (GL) , input and audio. So no OS specific code is needed for that. You would need different build options for each platform depending on which compiler you use etc. So what is the point of your post? Let's see what BisuDagger said: + Show Spoiler + On February 08 2014 03:45 BisuDagger wrote: Show nested quote + On February 08 2014 02:47 RoyGBiv_13 wrote: On February 08 2014 02:39 BisuDagger wrote: Every time I see this thread title I think we should put a project on SVN and give everyone access. Then we can all just jump in and add to the game whenever we have free time. C++ of course (my preference) and built from the ground up. I'd totally put together a frame for a game to jump start this. Yeah, I'm down. We can collaborate on #tl.code. I haven't done game dev for some time, but I can help with the lower level modules. I think I'm going to follow through with this over the next week or two I'll put something together. The simplest style for an open source game is to make it open world. So i'll create a basic open world with directX graphics and setup a camera. From there anyone can literally add whatever the want to it. Physics, graphics, sound, a roaming dragon, anything lol. I'll give updates once I can open this to TL. On February 09 2014 00:55 BisuDagger wrote: Show nested quote + On February 08 2014 14:16 Rollin wrote: On February 08 2014 03:45 BisuDagger wrote: On February 08 2014 02:47 RoyGBiv_13 wrote: On February 08 2014 02:39 BisuDagger wrote: Every time I see this thread title I think we should put a project on SVN and give everyone access. Then we can all just jump in and add to the game whenever we have free time. C++ of course (my preference) and built from the ground up. I'd totally put together a frame for a game to jump start this. Yeah, I'm down. We can collaborate on #tl.code. I haven't done game dev for some time, but I can help with the lower level modules. I think I'm going to follow through with this over the next week or two I'll put something together. The simplest style for an open source game is to make it open world. So i'll create a basic open world with directX graphics and setup a camera. From there anyone can literally add whatever the want to it. Physics, graphics, sound, a roaming dragon, anything lol. I'll give updates once I can open this to TL. Just curious, why no opengl for linux/mac? Do you intend to use OS specific functionality (or keep that option open), hence directx over opengl? DirectX is way more friendly for newer people imo. I don't want to spend time developing ogl tools. ![]() On February 09 2014 05:27 BisuDagger wrote: I hear your points. As a games developer Windows has always been first choice as a the platform for development. I understand Linux has become far more popular over the past few years and if the belief is I'll be isolating a lot of interested developers on teamliquid then I will have no choice but to use OGL. So I will go ahead and setup ogl instead of being stubborn. ![]() There is no mention of any library used other than raw opengl, bisudagger says he wants to do it "from the ground up", and roygbiv says he's willing to help out with "low level stuff". None of this hints at wanting to use a slightly more abstracted library like sdl, even with raw opengl underneath. So what is the point of your post? | ||
|
one-one-one
Sweden551 Posts
On February 10 2014 00:15 Rollin wrote: Show nested quote + On February 09 2014 20:56 one-one-one wrote: On February 09 2014 20:44 Rollin wrote: Well the issue with going multiplatform and building "from the ground up" is that each platform you want to target is going to need OS specific code, for input handling, audio, etc. In that regard, directx mightn't be a bad idea, or a low level library like allegro/sdl/sfml could be used to avoid the OS specific boilerplate code. Well. The guy above specifically mentioned that he had to transition from DirectX to SDL due to popular demand of his program to run on Mac (and Linux?). So there is a success story for you. SDL is cross platform and will take care of graphics (GL) , input and audio. So no OS specific code is needed for that. You would need different build options for each platform depending on which compiler you use etc. So what is the point of your post? Let's see what BisuDagger said: + Show Spoiler + On February 08 2014 03:45 BisuDagger wrote: Show nested quote + On February 08 2014 02:47 RoyGBiv_13 wrote: On February 08 2014 02:39 BisuDagger wrote: Every time I see this thread title I think we should put a project on SVN and give everyone access. Then we can all just jump in and add to the game whenever we have free time. C++ of course (my preference) and built from the ground up. I'd totally put together a frame for a game to jump start this. Yeah, I'm down. We can collaborate on #tl.code. I haven't done game dev for some time, but I can help with the lower level modules. I think I'm going to follow through with this over the next week or two I'll put something together. The simplest style for an open source game is to make it open world. So i'll create a basic open world with directX graphics and setup a camera. From there anyone can literally add whatever the want to it. Physics, graphics, sound, a roaming dragon, anything lol. I'll give updates once I can open this to TL. On February 09 2014 00:55 BisuDagger wrote: Show nested quote + On February 08 2014 14:16 Rollin wrote: On February 08 2014 03:45 BisuDagger wrote: On February 08 2014 02:47 RoyGBiv_13 wrote: On February 08 2014 02:39 BisuDagger wrote: Every time I see this thread title I think we should put a project on SVN and give everyone access. Then we can all just jump in and add to the game whenever we have free time. C++ of course (my preference) and built from the ground up. I'd totally put together a frame for a game to jump start this. Yeah, I'm down. We can collaborate on #tl.code. I haven't done game dev for some time, but I can help with the lower level modules. I think I'm going to follow through with this over the next week or two I'll put something together. The simplest style for an open source game is to make it open world. So i'll create a basic open world with directX graphics and setup a camera. From there anyone can literally add whatever the want to it. Physics, graphics, sound, a roaming dragon, anything lol. I'll give updates once I can open this to TL. Just curious, why no opengl for linux/mac? Do you intend to use OS specific functionality (or keep that option open), hence directx over opengl? DirectX is way more friendly for newer people imo. I don't want to spend time developing ogl tools. ![]() On February 09 2014 05:27 BisuDagger wrote: I hear your points. As a games developer Windows has always been first choice as a the platform for development. I understand Linux has become far more popular over the past few years and if the belief is I'll be isolating a lot of interested developers on teamliquid then I will have no choice but to use OGL. So I will go ahead and setup ogl instead of being stubborn. ![]() There is no mention of any library used other than raw opengl, bisudagger says he wants to do it "from the ground up", and roygbiv says he's willing to help out with "low level stuff". None of this hints at wanting to use a slightly more abstracted library like sdl, even with raw opengl underneath. So what is the point of your post? Are you drunk? You asked them yourself about the whole DirectX vs OpenGL thing. It is even included in the nested quotes above. Ok, I get that it is probably in the middle of the night in Australia, but programming should not be discussed under the influence of alcohol. | ||
|
Uberrated
Norway9 Posts
| ||
|
Rollin
Australia1552 Posts
On February 10 2014 00:29 one-one-one wrote: Show nested quote + On February 10 2014 00:15 Rollin wrote: On February 09 2014 20:56 one-one-one wrote: On February 09 2014 20:44 Rollin wrote: Well the issue with going multiplatform and building "from the ground up" is that each platform you want to target is going to need OS specific code, for input handling, audio, etc. In that regard, directx mightn't be a bad idea, or a low level library like allegro/sdl/sfml could be used to avoid the OS specific boilerplate code. Well. The guy above specifically mentioned that he had to transition from DirectX to SDL due to popular demand of his program to run on Mac (and Linux?). So there is a success story for you. SDL is cross platform and will take care of graphics (GL) , input and audio. So no OS specific code is needed for that. You would need different build options for each platform depending on which compiler you use etc. So what is the point of your post? Let's see what BisuDagger said: + Show Spoiler + On February 08 2014 03:45 BisuDagger wrote: Show nested quote + On February 08 2014 02:47 RoyGBiv_13 wrote: On February 08 2014 02:39 BisuDagger wrote: Every time I see this thread title I think we should put a project on SVN and give everyone access. Then we can all just jump in and add to the game whenever we have free time. C++ of course (my preference) and built from the ground up. I'd totally put together a frame for a game to jump start this. Yeah, I'm down. We can collaborate on #tl.code. I haven't done game dev for some time, but I can help with the lower level modules. I think I'm going to follow through with this over the next week or two I'll put something together. The simplest style for an open source game is to make it open world. So i'll create a basic open world with directX graphics and setup a camera. From there anyone can literally add whatever the want to it. Physics, graphics, sound, a roaming dragon, anything lol. I'll give updates once I can open this to TL. On February 09 2014 00:55 BisuDagger wrote: Show nested quote + On February 08 2014 14:16 Rollin wrote: On February 08 2014 03:45 BisuDagger wrote: On February 08 2014 02:47 RoyGBiv_13 wrote: On February 08 2014 02:39 BisuDagger wrote: Every time I see this thread title I think we should put a project on SVN and give everyone access. Then we can all just jump in and add to the game whenever we have free time. C++ of course (my preference) and built from the ground up. I'd totally put together a frame for a game to jump start this. Yeah, I'm down. We can collaborate on #tl.code. I haven't done game dev for some time, but I can help with the lower level modules. I think I'm going to follow through with this over the next week or two I'll put something together. The simplest style for an open source game is to make it open world. So i'll create a basic open world with directX graphics and setup a camera. From there anyone can literally add whatever the want to it. Physics, graphics, sound, a roaming dragon, anything lol. I'll give updates once I can open this to TL. Just curious, why no opengl for linux/mac? Do you intend to use OS specific functionality (or keep that option open), hence directx over opengl? DirectX is way more friendly for newer people imo. I don't want to spend time developing ogl tools. ![]() On February 09 2014 05:27 BisuDagger wrote: I hear your points. As a games developer Windows has always been first choice as a the platform for development. I understand Linux has become far more popular over the past few years and if the belief is I'll be isolating a lot of interested developers on teamliquid then I will have no choice but to use OGL. So I will go ahead and setup ogl instead of being stubborn. ![]() There is no mention of any library used other than raw opengl, bisudagger says he wants to do it "from the ground up", and roygbiv says he's willing to help out with "low level stuff". None of this hints at wanting to use a slightly more abstracted library like sdl, even with raw opengl underneath. So what is the point of your post? Are you drunk? You asked them yourself about the whole DirectX vs OpenGL thing. It is even included in the nested quotes above. Ok, I get that it is probably in the middle of the night in Australia, but programming should not be discussed under the influence of alcohol. Thanks for the pointless insults. You still haven't shown me any evidence that an opengl wrapping library was to be used at all. Or maybe you have and I just lack the basic intelligence required to decipher your seemingly nonsensical replies? ![]() | ||
|
tofucake
Hyrule19167 Posts
| ||
|
Shield
Bulgaria4824 Posts
| ||
|
sluggaslamoo
Australia4494 Posts
On February 10 2014 04:41 Rollin wrote: Show nested quote + On February 10 2014 00:29 one-one-one wrote: On February 10 2014 00:15 Rollin wrote: On February 09 2014 20:56 one-one-one wrote: On February 09 2014 20:44 Rollin wrote: Well the issue with going multiplatform and building "from the ground up" is that each platform you want to target is going to need OS specific code, for input handling, audio, etc. In that regard, directx mightn't be a bad idea, or a low level library like allegro/sdl/sfml could be used to avoid the OS specific boilerplate code. Well. The guy above specifically mentioned that he had to transition from DirectX to SDL due to popular demand of his program to run on Mac (and Linux?). So there is a success story for you. SDL is cross platform and will take care of graphics (GL) , input and audio. So no OS specific code is needed for that. You would need different build options for each platform depending on which compiler you use etc. So what is the point of your post? Let's see what BisuDagger said: + Show Spoiler + On February 08 2014 03:45 BisuDagger wrote: Show nested quote + On February 08 2014 02:47 RoyGBiv_13 wrote: On February 08 2014 02:39 BisuDagger wrote: Every time I see this thread title I think we should put a project on SVN and give everyone access. Then we can all just jump in and add to the game whenever we have free time. C++ of course (my preference) and built from the ground up. I'd totally put together a frame for a game to jump start this. Yeah, I'm down. We can collaborate on #tl.code. I haven't done game dev for some time, but I can help with the lower level modules. I think I'm going to follow through with this over the next week or two I'll put something together. The simplest style for an open source game is to make it open world. So i'll create a basic open world with directX graphics and setup a camera. From there anyone can literally add whatever the want to it. Physics, graphics, sound, a roaming dragon, anything lol. I'll give updates once I can open this to TL. On February 09 2014 00:55 BisuDagger wrote: Show nested quote + On February 08 2014 14:16 Rollin wrote: On February 08 2014 03:45 BisuDagger wrote: On February 08 2014 02:47 RoyGBiv_13 wrote: On February 08 2014 02:39 BisuDagger wrote: Every time I see this thread title I think we should put a project on SVN and give everyone access. Then we can all just jump in and add to the game whenever we have free time. C++ of course (my preference) and built from the ground up. I'd totally put together a frame for a game to jump start this. Yeah, I'm down. We can collaborate on #tl.code. I haven't done game dev for some time, but I can help with the lower level modules. I think I'm going to follow through with this over the next week or two I'll put something together. The simplest style for an open source game is to make it open world. So i'll create a basic open world with directX graphics and setup a camera. From there anyone can literally add whatever the want to it. Physics, graphics, sound, a roaming dragon, anything lol. I'll give updates once I can open this to TL. Just curious, why no opengl for linux/mac? Do you intend to use OS specific functionality (or keep that option open), hence directx over opengl? DirectX is way more friendly for newer people imo. I don't want to spend time developing ogl tools. ![]() On February 09 2014 05:27 BisuDagger wrote: I hear your points. As a games developer Windows has always been first choice as a the platform for development. I understand Linux has become far more popular over the past few years and if the belief is I'll be isolating a lot of interested developers on teamliquid then I will have no choice but to use OGL. So I will go ahead and setup ogl instead of being stubborn. ![]() There is no mention of any library used other than raw opengl, bisudagger says he wants to do it "from the ground up", and roygbiv says he's willing to help out with "low level stuff". None of this hints at wanting to use a slightly more abstracted library like sdl, even with raw opengl underneath. So what is the point of your post? Are you drunk? You asked them yourself about the whole DirectX vs OpenGL thing. It is even included in the nested quotes above. Ok, I get that it is probably in the middle of the night in Australia, but programming should not be discussed under the influence of alcohol. Thanks for the pointless insults. You still haven't shown me any evidence that an opengl wrapping library was to be used at all. Or maybe you have and I just lack the basic intelligence required to decipher your seemingly nonsensical replies? ![]() I think this is assumed. Regardless its not that hard to do everything from scratch when it concerns OpenGL or DirectX, I prefer to do "raw" OpenGL for 2.5D projects but even 3D is not that big of a deal. The main reason I don't do raw OpenGL for 3d projects is not so much the code but the authoring tools, like scene editors, which allow me to view 3d models and know exactly how they will appear in game. There's no point reinventing the wheel for tools such as these. If boilerplate is an issue then DirectX is a bad idea, DirectX has a TON of boilerplate and setup. OpenGL is much much simpler to get started on. OS specific boilerplate really isn't a major concern, and many simple 3D libraries do not really help with this, such as SDL or SFML. Also are you saying that DirectX is better because we do not have to address OS specific boilerplate (because it only supports Windows)? If so it seems like a really strange solution, you could do the same thing with OpenGL by only supporting Windows. Regardless you will always have significantly less boilerplate in OpenGL except for very large projects (and I'm talking AAA title projects here). This is because you don't have to do anything to get cross-platformability with OpenGL except for very advanced features. Graphics cards are a much greater problem when it comes to this, not OS's. Although I'm going to go out on a limb here and say that this project will barely get off the ground. Focusing on such issues is very immature when you don't even know what it is you are actually making, MVP is the most important thing right now. | ||
|
PaiNt)
United States38 Posts
. I recently released my first game for Android and it would be cool if tried it out. It's one of the many geometry wars clones out there, but I figured it was a simple game that would be a good starting point for me. I'm still making some improvements, but the core game play is all there. If you have any feedback I'm definitely open to it.https://play.google.com/store/apps/details?id=com.hsoft.spaceshapes | ||
|
dapierow
Serbia1316 Posts
The output works in the setUpDeck class, but in the main, it always returns ACE of CLUBS... | ||
|
Creepseep
Germany9 Posts
On February 10 2014 15:18 dapierow wrote: Hey guys, been trying to pop a card(class) off my stack(deck) in a java class for the past hour but it will always return the top card, even after Ive popped it off, can anyone help out? ... The output works in the setUpDeck class, but in the main, it always returns ACE of CLUBS... Just looked over it for a sec, maybe I'm wrong, but your class variables value and suit should'nt be static in this case. | ||
|
dapierow
Serbia1316 Posts
On February 10 2014 15:46 Creepseep wrote: Show nested quote + On February 10 2014 15:18 dapierow wrote: Hey guys, been trying to pop a card(class) off my stack(deck) in a java class for the past hour but it will always return the top card, even after Ive popped it off, can anyone help out? ... The output works in the setUpDeck class, but in the main, it always returns ACE of CLUBS... Just looked over it for a sec, maybe I'm wrong, but your class variables value and suit should'nt be static in this case. 2 hours of headache... because of that shit... are you fucking kidding me... that'll teach me to write more than one class without testing it... Thanks a bunch, ima go cry now for all that wasted time. | ||
|
Tobberoth
Sweden6375 Posts
On February 10 2014 09:55 darkness wrote: How do you guys make a deep copy of an object in Java? I've done a bit of Google, and I've learnt that object.clone() is bad unless you just clone a primitive data type (Effective Java book as an argument). I've read about 2 other solutions - copy constructor and serialisation. Which one do you prefer and why? I feel like the copy constructor approach has so much code duplication (well, attributes are redefined) if I've understood the knack of it. This is mostly an assumption on my end, but I would assume that serialization is slower and uses more resources, but requires far less code to do and is more generic. It's quite a lot of work to write a copy constructor for each object you need to deep copy, but then again, it's just basic object initialization where as serialization requires a bit more intermediate steps. Then again, I could be wrong and serialization might be very optimized in Java. I would go with the serialization approach unless it's really simple objects. | ||
| ||
StarCraft 2 StarCraft: Brood War Calm Dota 2Shuttle Horang2 Jaedong actioN Mini EffOrt ZerO Light Snow [ Show more ] Counter-Strike Other Games Organizations StarCraft: Brood War StarCraft 2 StarCraft: Brood War
StarCraft 2 • StrangeGG StarCraft: Brood War• AfreecaTV YouTube • intothetv • Kozan • IndyKCrew • LaughNgamezSOOP • Migwel • sooper7s Dota 2 League of Legends |
|
StarCraft2.fi
Replay Cast
The PondCast
OSC
Demi vs Mixu
Nicoract vs TBD
Babymarine vs MindelVK
ForJumy vs TBD
Shameless vs Percival
Replay Cast
Korean StarCraft League
CranKy Ducklings
WardiTV 2025
SC Evo League
BSL 21
Sziky vs OyAji
Gypsy vs eOnzErG
[ Show More ] OSC
Solar vs Creator
ByuN vs Gerald
Percival vs Babymarine
Moja vs Krystianer
EnDerr vs ForJumy
sebesdes vs Nicoract
Sparkling Tuna Cup
WardiTV 2025
OSC
BSL 21
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
Wardi Open
StarCraft2.fi
Monday Night Weeklies
Replay Cast
WardiTV 2025
StarCraft2.fi
PiGosaur Monday
|
|
|