Register for your free account! | Forgot your password?

You last visited: Today at 13:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Change your class NPC

Discussion on Change your class NPC within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 07/08/2014, 18:07   #16
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by Best Coder 2014 View Post
From

Do I need to provide more sources, or will you just keep talking ****?
You are again referencing tutorials for absolute beginners. Reference an actual computer science article on efficiency and I might be more interested. There is no arguing my position though, because it isn't wrong. Here comes my opinion now, it's just as easy to read but slightly more efficient. Again, if you actually find an article proving me wrong, feel free to share it; otherwise, showing me tutorials for beginners won't do much.
Spirited is offline  
Old 07/08/2014, 18:12   #17
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Quote:
Originally Posted by Spirited View Post
You are again referencing tutorials for absolute beginners. Reference an actual computer science article on efficiency and I might be more interested. There is no arguing my position though, because it isn't wrong. Here comes my opinion now, it's just as easy to read but slightly more efficient. Again, if you actually find an article proving me wrong, feel free to share it; otherwise, showing me tutorials for beginners won't do much.
Quote:
Originally Posted by Best Coder 2014 View Post
But let's be honest, only a moron would actually worry about insignificant stuff like this.

Really, you should never ever ever ever ever ever ever think about performance when choosing whether to use switch or if/else ... really, NEVER. That is the stupidest **** I have ever heard.
^

How dare you put "Software Engineer" in your user title? LOL.
Best Coder 2014 is offline  
Old 07/08/2014, 22:38   #18
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
Quote:
Originally Posted by Spirited View Post
You are again referencing tutorials for absolute beginners. Reference an actual computer science article on efficiency and I might be more interested. There is no arguing my position though, because it isn't wrong. Here comes my opinion now, it's just as easy to read but slightly more efficient. Again, if you actually find an article proving me wrong, feel free to share it; otherwise, showing me tutorials for beginners won't do much.


i removed my reply, ill let u just read it
InfamousNoone is offline  
Old 07/09/2014, 01:49   #19
 
elite*gold: 0
Join Date: Jun 2014
Posts: 69
Received Thanks: 13
well instead of useless fighting you guys could just
program short and long if/elseif/else and switch, RE it and count the cpu cycles and/or time taken
OverKillasdwqe is offline  
Old 07/09/2014, 02:07   #20
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
Quote:
Originally Posted by OverKillasdwqe View Post
well instead of useless fighting you guys could just
program short and long if/elseif/else and switch, RE it and count the cpu cycles and/or time taken
not worth my time
InfamousNoone is offline  
Old 07/09/2014, 02:36   #21
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Quote:
Originally Posted by OverKillasdwqe View Post
well instead of useless fighting you guys could just
program short and long if/elseif/else and switch, RE it and count the cpu cycles and/or time taken
- for anyone who's actually interested in comparing performance between switch and if/else.

If/else might be a tiny, unnoticeable, insignificant bit faster than a switch if there's only a few branches, but around 3-4 branches or more a switch will probably be faster.
But no one should ever care or think about this; ALWAYS go for what's easier to read and reason about in your code.
Best Coder 2014 is offline  
Old 07/09/2014, 05:04   #22
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by Best Coder 2014 View Post
^

How dare you put "Software Engineer" in your user title? LOL.
I work for a multi-billion dollar company as a software engineer working on complicated software systems: systems that control utilities, factories, even large cities. I have full rights to call myself a software engineer (and a QA engineer).

Quote:
Originally Posted by Best Coder 2014 View Post
- for anyone who's actually interested in comparing performance between switch and if/else.

If/else might be a tiny, unnoticeable, insignificant bit faster than a switch if there's only a few branches, but around 3-4 branches or more a switch will probably be faster.
But no one should ever care or think about this; ALWAYS go for what's easier to read and reason about in your code.
As I've said a few times now: Do whatever you want. I'm just putting my opinion out there (the correct one regarding efficiency). That is all.
Spirited is offline  
Old 07/09/2014, 12:20   #23
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Quote:
Originally Posted by Spirited View Post
I work for a multi-billion dollar company as a software engineer working on complicated software systems: systems that control utilities, factories, even large cities. I have full rights to call myself a software engineer (and a QA engineer).



As I've said a few times now: Do whatever you want. I'm just putting my opinion out there (the correct one regarding efficiency). That is all.
Define efficiency, please.
Did you even look at the articles InfamousNoone and I posted?

Also, just because you work as a software engineer doesn't automatically mean that you have the education, you know that, right? Do you actually, though? Have the education, I mean.
Best Coder 2014 is offline  
Thanks
1 User
Old 07/09/2014, 17:40   #24
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by Best Coder 2014 View Post
Define efficiency, please.
Did you even look at the articles InfamousNoone and I posted?

Also, just because you work as a software engineer doesn't automatically mean that you have the education, you know that, right? Do you actually, though? Have the education, I mean.
I go to one of the top universities in the nation for Computer Science, and I was the top student in my class last semester at my previous college. How on earth do you think I got such a high up software engineering job if I didn't have the education to back it? Now stop trying to insult me. I know what efficiency is, and I obviously know how to create highly efficient code by the work I've done. Kindly stop insulting me or I'll start moderating this thread. This is so ****** off-topic.
Spirited is offline  
Old 07/09/2014, 18:29   #25
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Quote:
Originally Posted by Spirited View Post
I know what efficiency is, and I obviously know how to create highly efficient code by the work I've done.
If you think that if/else is faster than switch, then obviously you don't
Best Coder 2014 is offline  
Old 07/09/2014, 23:31   #26


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
Quote:
Originally Posted by Best Coder 2014 View Post
If you think that if/else is faster than switch, then obviously you don't
To be honest, has anyone here done a switch or and if/else series with 10 or more cases? If yes, then there is some serious problem with the architecture design. Now, for 10 cases, the speed difference is negligible (maybe not on a very very very ... very low-end processor), so in the end, it all comes down to readability and style (which, especially in a large team, are incredibly important as far as my experience goes, which, in a professional field is only 2 years, but still). This implies that this is a really insignificant optimization, thus, readability is the main concern, correct me if I`m wrong here.
KraHen is offline  
Thanks
1 User
Old 07/09/2014, 23:52   #27
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Quote:
Originally Posted by KraHen View Post
so in the end, it all comes down to readability and style (which, especially in a large team, are incredibly important as far as my experience goes, which, in a professional field is only 2 years, but still). This implies that this is a really insignificant optimization, thus, readability is the main concern, correct me if I`m wrong here.
This is exactly what I've been saying the whole time .
I'm not the one who started this whole "performance" nonsense.
Best Coder 2014 is offline  
Old 07/10/2014, 04:45   #28
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Again, for the last time, you can do what-ever you want. I'm not saying you're wrong as far as style goes. I'm just pointing out that (since we were talking about efficiency), three cases in a switch statement would be just a tiny bit less efficient than an if-else statement. There's no need to insult me constantly for proven statistics. In fact, here's where I start being a moderator - the next argumentative post on this thread will result in an infraction. I'm so done with the off-topic, senseless arguments you guys keep starting with members.
Spirited is offline  
Reply


Similar Threads Similar Threads
Class Change
06/19/2014 - Trading - 1 Replies
I have a hunter level 20 n it doesn't give me the option to upgrade my class. What can i do?
[funny-release] change CLASS npc by addition to pirate class xDDD
01/12/2012 - CO2 PServer Guides & Releases - 30 Replies
all of us wating for pirate decided to code some sort of npc which change ur job in additon to pirate that some sort of fun no more in ur npc.cs or what ever its name add that #region (CharChanger By Eslam) case 17494: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Would u like to change your job?"); dialog.Option("Yes Please", 1); dialog.Option("No.", 255); dialog.Send(); break; }
ANybody Knows how to change class to another class
08/20/2009 - Cabal Online - 5 Replies
I ve been wondering if a WA could wear a martial set or a wizard could wear battleset..Any one knows how to change class? ;)
Any way to re-change class?
11/16/2008 - Aion - 1 Replies
Hey, im playing aion, and i want to know if it's there any way to re-change class after first class transfer at lvl 10. I transfered to a assassin, but i want to know if it's there any way to change to a ranger. Sry for my bad english.
Class change to TBC Class (bloodelf & Danei)
11/03/2006 - World of Warcraft - 127 Replies
habe das hier vor kurzem mal im icq gesendet bekommen, hoffe das steht hier noch net ^^ es ist zwar buggy z.b. wenn ihr ein troll mit tatoos in der fratze habt usw aber man kann es durch aus usen. am besten neuen char machen und richtig einstellen :). Anleitung: ladet die datei runter in euer World of Warcraft\Data ordner und benennt sie in speech2.mpq um, dan einfach in wow einloggen wenn es ein stick wert ist bitte sticken :)



All times are GMT +1. The time now is 13:26.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.