makeshift_theory Posted December 21, 2006 Share Posted December 21, 2006 I am just curious, at work we have about 50 programmers and it seems everytime one of us develops a script, someone else tries to make the script even more efficient and it's a ongoing thing. Just wanted to see if anyone else runs into this.... It's basically survival of the ... geekiness. ??? Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/ Share on other sites More sharing options...
obsidian Posted December 21, 2006 Share Posted December 21, 2006 I voted "yes," but I suppose that [i]somewhat[/i] may be a better response. We do indeed challenge each other to come up with the most optimal and efficient code; however, we stay too busy to worry about [i]out-doing[/i] each other in projects. It's more of an "improve my own" code challenge than reviewing the code of others. We just have too many projects to spend the time running into that. On the other hand, when we have projects or modules up for a group effort, we definitely have a little rivalry to see who can come up with the most solid and efficient code. Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-145873 Share on other sites More sharing options...
redbullmarky Posted December 21, 2006 Share Posted December 21, 2006 not so much with web stuff. i dont know why, but when i was properly into Pascal (college) and later C++, I would say yeah - I was quite competitive in that respect. But I'm not so strict as far as web stuff goes, just as long as it's solid, reusable and does the job.I guess it's probably somewhat different for me in the fact that I actually work for myself from home. Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-145894 Share on other sites More sharing options...
makeshift_theory Posted December 21, 2006 Author Share Posted December 21, 2006 I thought about this topic due to a situation that happened at work. First me, I'm a 21 year old programmer that is starting college in March of next year and is a "taught himself" programmer. Next we have another fellow employee, leaving her name out for obvious reasons but she is 29 and has a bachelors in Computer Science. The objective with the code I'm about to show you is to format a url to a specific directory on the local mount. I have to say although mine works, hers just is faster and smaller.... (I couldn't find my code, must have deleted it lol...I did make the make path method though...[b]The Finished Code:[/b][code]class pathfinder { public $url; public function getFarmPublishPath($url) { $path = "/pub/web/sites/"; $url = $this->clean($url); $urlparts = explode(".", $url); for ($i = count($urlparts)-1; $i > 0; $i--) { $path .= $urlparts[$i] . "/"; } $path .= $urlparts[0][0] . "/" . $urlparts[0][1] . "/" . $urlparts[0] . "/htdocs/"; $this->url = $path; return $path; } public function getSitePath($url) { $path = "*****/*****"; $url = $this->clean($url); /* !!! update your rules here. not sure what it is but from your code seem like this: */ $urlparts = explode(".", $url); $path .= $urlparts[0]; $this->url = $path; return $path; } public function clean($url) { $url = trim(strtolower ($url)); $url = preg_replace("/^(http|https)+(:\/\/)/", "", $url ); $url = preg_replace("/^www\./", "", $url ); return $url; } public function make_path() { // Creates the path structure for adding files $this->url = eregi_replace("//","/", $this->url); $explode = explode("/", $this->url); $local = getcwd(); chdir('/'); // set directory to root for($i=0;$i<=count($explode);$i++) { if($i!=0) chdir($explode[$i]); // change to current directory if(!is_dir($explode[$i + 1])) // if directory does not exists, create it then chmod it if(!mkdir($explode[$i + 1])) chmod($explode[$i + 1], "0755"); } chdir($local); if(!empty($error)) return false; else return true; }}[/code]PS> This is a step to the next topic I am going to post but I will wait to post it. "Is school necessary to hold a good programming job?" Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-145939 Share on other sites More sharing options...
obsidian Posted December 21, 2006 Share Posted December 21, 2006 I'll be looking forward to your next topic, because I'm in the same boat as you as for being self-taught ;) Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-145951 Share on other sites More sharing options...
makeshift_theory Posted December 21, 2006 Author Share Posted December 21, 2006 [quote author=obsidian link=topic=119524.msg489710#msg489710 date=1166720808]I'll be looking forward to your next topic, because I'm in the same boat as you as for being self-taught ;)[/quote]Awesome, btw can I steal your bottom links, those seem to be very useful =).PS> Can you tell by my avatar I'm not a graphic designer =). Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-145956 Share on other sites More sharing options...
obsidian Posted December 21, 2006 Share Posted December 21, 2006 [quote author=makeshift_theory link=topic=119524.msg489715#msg489715 date=1166721094]Awesome, btw can I steal your bottom links, those seem to be very useful =).[/quote]Sure thing! That's what they're there for ;)[quote author=makeshift_theory link=topic=119524.msg489715#msg489715 date=1166721094]PS> Can you tell by my avatar I'm not a graphic designer =).[/quote]Haha! I'm not either, but I've picked up a few little tricks along the way. Photoshop will make a graphic designer out of me yet :P Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-145978 Share on other sites More sharing options...
makeshift_theory Posted December 21, 2006 Author Share Posted December 21, 2006 Well I might have to ask you to make me a new avatar obsidian ;D...just altered my sig too, will be adding links throughout the day. Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-145991 Share on other sites More sharing options...
obsidian Posted December 21, 2006 Share Posted December 21, 2006 [quote author=makeshift_theory link=topic=119524.msg489750#msg489750 date=1166724439]Well I might have to ask you to make me a new avatar obsidian ;D[/quote]lol... Be glad to, although I'm sure there are many others better suited to it... have an image or character in mind? Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-145995 Share on other sites More sharing options...
makeshift_theory Posted December 21, 2006 Author Share Posted December 21, 2006 How about Alucard from Hellsing, try that :P Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146000 Share on other sites More sharing options...
obsidian Posted December 21, 2006 Share Posted December 21, 2006 Here's a very simple, quick one, but it definitely has his personality in the pic ;)Check the attachments[attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146014 Share on other sites More sharing options...
makeshift_theory Posted December 21, 2006 Author Share Posted December 21, 2006 [quote author=obsidian link=topic=119524.msg489773#msg489773 date=1166726313]Here's a very simple, quick one, but it definitely has his personality in the pic ;)Check the attachments[/quote]Can I ask you to put makeshift where alucard is puhleeze =) Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146040 Share on other sites More sharing options...
obsidian Posted December 21, 2006 Share Posted December 21, 2006 Better?[attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146055 Share on other sites More sharing options...
makeshift_theory Posted December 21, 2006 Author Share Posted December 21, 2006 Your awesome, adding to my profile now ;D Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146060 Share on other sites More sharing options...
.josh Posted December 21, 2006 Share Posted December 21, 2006 aww how cute. you should start a siggy/avatar request thread, obsidian! Then you can be like all the kiddies on the game boards! Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146066 Share on other sites More sharing options...
obsidian Posted December 21, 2006 Share Posted December 21, 2006 [quote author=Crayon Violent link=topic=119524.msg489827#msg489827 date=1166730399]you should start a siggy/avatar request thread, obsidian! Then you can be like all the kiddies on the game boards![/quote]LMAO... Aw, C_V, you caught me... my one goal in life :P Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146070 Share on other sites More sharing options...
makeshift_theory Posted December 21, 2006 Author Share Posted December 21, 2006 Your just like me you have no life you sit at home making sigs and clicking the "Show new replies to your posts." link HAHA ;D Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146081 Share on other sites More sharing options...
obsidian Posted December 21, 2006 Share Posted December 21, 2006 [quote author=makeshift_theory link=topic=119524.msg489842#msg489842 date=1166731937]Your just like me you have no life you sit at home making sigs and clicking the "Show new replies to your posts." link HAHA ;D[/quote]Difference: I get paid to sit at work and do it instead ;) Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146082 Share on other sites More sharing options...
makeshift_theory Posted December 21, 2006 Author Share Posted December 21, 2006 [quote author=obsidian link=topic=119524.msg489843#msg489843 date=1166732141][quote author=makeshift_theory link=topic=119524.msg489842#msg489842 date=1166731937]Your just like me you have no life you sit at home making sigs and clicking the "Show new replies to your posts." link HAHA ;D[/quote]Difference: I get paid to sit at work and do it instead ;)[/quote].......amen Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146086 Share on other sites More sharing options...
.josh Posted December 21, 2006 Share Posted December 21, 2006 don't you mean...burned? Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146100 Share on other sites More sharing options...
makeshift_theory Posted December 21, 2006 Author Share Posted December 21, 2006 Not really because I'm sitting at work doing the same thing too haha...it's been a long boring day... Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-146102 Share on other sites More sharing options...
extrovertive Posted December 25, 2006 Share Posted December 25, 2006 Fighting each other over programming..how geeky! Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-147468 Share on other sites More sharing options...
neylitalo Posted December 25, 2006 Share Posted December 25, 2006 [quote author=extrovertive link=topic=119524.msg491252#msg491252 date=1167025974]Fighting each other over programming..how geeky![/quote]Hm. I take it you've never been in a situation where you would like to do something better than the other guy? Evidently these programmers like to see who's the best in their area. I see nothing geeky in trying to do the best work you can.And you do realize that you're on a forum that focuses specifically on software-related topics? Methinks you'd be better off insulting programmers somewhere else. Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-147471 Share on other sites More sharing options...
extrovertive Posted December 25, 2006 Share Posted December 25, 2006 neylitalo, I was joking man. :P Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-147477 Share on other sites More sharing options...
neylitalo Posted December 25, 2006 Share Posted December 25, 2006 I apologize - it's hard to tell sarcasm or joking on the internet. (I'm going to leave my post up, though, to serve as a warning to anybody who wants to genuinely insult us. ;D) Quote Link to comment https://forums.phpfreaks.com/topic/31490-competition-between-programmers/#findComment-147480 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.