User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » im really tired of working with foreign programmer Page [1]  
Lionheart
I'm Eggscellent
12772 Posts
user info
edit post

s

I shouldn't have to stop and explain how

if x != option4

is equivalent to

if x = option1
or x = option2
or x = option3

and then having you complain about to me that you don't like seeing negative logic

2/6/2009 11:49:48 PM

moron
All American
34021 Posts
user info
edit post

The latter way is actually "safer," depending on the situation.

2/7/2009 12:01:21 AM

HaLo
All American
14222 Posts
user info
edit post

agreed, it also could be more maintainable in case an option 5 or 6 comes around

2/7/2009 12:11:03 AM

scud
All American
10804 Posts
user info
edit post

at least you're not dealing with a cocky subordinate report who submitted a massive checkin and even though you threatened him if he didn't profile the changes well managed to slip in a O(n^2) sorting algorithm that took down the system for 6 hours.

Yeah I'm really looking forward to monday

2/7/2009 12:11:19 AM

Lionheart
I'm Eggscellent
12772 Posts
user info
edit post

^^ and ^^^
acknowledged, this was not the exact situation more just an example to display the fact that I have to explain logic using NOT and the fact that for some reason most of the programmers I work with from other countries complain whenever they see something that isn't an AND or an OR or when you match to a FALSE as opposed to true.

2/7/2009 1:18:34 AM

philihp
All American
8349 Posts
user info
edit post

I know how you feel, I've been there many times. I mean, I'm an arrogant know-it-all on the inside, but I'd rather have people like me and be willing to work with me, so I try to be understanding. You don't always get to choose who you work with (okay actually you never really do), and an employee whom everyone likes and wants to be around and cooperate with is orders of magnitude more valuable than some cocky kid.

2/7/2009 1:33:36 AM

zorthage
1+1=5
17148 Posts
user info
edit post

safety and personal preferences aside, if you're coding you should know the difference between

if (x != option4)

and

if (x == option1 || x == option2 || x == option3)


if x will have a value between option1 and option4

2/7/2009 1:47:16 PM

dakota_man
All American
26584 Posts
user info
edit post

I guess the first one is faster, since the second might do 3 compares when x == option3

2/7/2009 2:19:15 PM

Aficionado
Suspended
22518 Posts
user info
edit post

but the second one is safer



[Edited on February 7, 2009 at 2:28 PM. Reason :

2/7/2009 2:20:04 PM

qntmfred
retired
40552 Posts
user info
edit post

not necessarily

2/7/2009 2:38:27 PM

Noen
All American
31346 Posts
user info
edit post

shouldn't really be doing either of those, depending on what is setting x in the first place.

2/7/2009 4:32:07 PM

Aficionado
Suspended
22518 Posts
user info
edit post

youre right

case
options
esac

is totally better

2/7/2009 4:48:11 PM

Quinn
All American
16417 Posts
user info
edit post

this reminds me of csc100. post some cool code

2/7/2009 8:07:46 PM

kiljadn
All American
44689 Posts
user info
edit post

10 PRINT "BALLSACK"
20 GOTO 10
RUN

2/7/2009 8:19:17 PM

volex
All American
1758 Posts
user info
edit post

the only reason i could understand doing the second option is if options added later would be treated the same as option4, but it seems to be an edge case in this situation

2/7/2009 8:36:19 PM

occamsrezr
All American
6985 Posts
user info
edit post

Quote :
"I know how you feel, I've been there many times. I mean, I'm an arrogant know-it-all on the inside, but I'd rather have people like me and be willing to work with me, so I try to be understanding. You don't always get to choose who you work with (okay actually you never really do), and an employee whom everyone likes and wants to be around and cooperate with is orders of magnitude more valuable than some cocky kid."


I remember when Phil was cocky though. Computer Science 1 was it? At SRHS. The infamous PhilBot.

He wrote a pretty neat program that totally made everyone else's programs look like shit. But the sub at the time didn't get it an almost failed him. The drama was wonderful.

2/7/2009 9:18:06 PM

wheelmanca19
All American
3735 Posts
user info
edit post

Please, do the needful and advise.

2/7/2009 10:02:11 PM

scud
All American
10804 Posts
user info
edit post

OMG!

All of the indians say that exact phrase!

2/7/2009 10:15:28 PM

Chop
All American
6271 Posts
user info
edit post

^^
i had no idea that is a common indian phrase. i'm working on a project in india now, and every email they send is closed with "please do the needful and advise"

is it wrong that read their emails using Apu's voice from the simpsons in my head?

2/7/2009 10:30:43 PM

moron
All American
34021 Posts
user info
edit post

Quote :
"is it wrong that read their emails using Apu's voice from the simpsons in my head?

"


lol

2/7/2009 11:22:40 PM

Gonzo18
All American
2240 Posts
user info
edit post

I get this all the time


Let me know for the same.

2/7/2009 11:34:55 PM

kiljadn
All American
44689 Posts
user info
edit post

Ahh, you guys.

I'm sure you get "gentle reminders" as well


http://en.wikipedia.org/wiki/Indian_English

2/8/2009 7:51:25 AM

BobbyDigital
Thots and Prayers
41777 Posts
user info
edit post

My favorite hinglish phrase is

"please revert back to me"

2/8/2009 9:22:29 AM

Tiberius
Suspended
7607 Posts
user info
edit post

Please do the needful, it is very urgent.

2/8/2009 11:49:48 AM

seedless
All American
27142 Posts
user info
edit post

A as in apple. C as in Charlie. E as in echo.

2/8/2009 12:02:07 PM

Stimwalt
All American
15292 Posts
user info
edit post

Quote :
"an employee whom everyone likes and wants to be around and cooperate with is orders of magnitude more valuable than some cocky kid."


This is usually true. It's definitely a safer approach to take within any organization, especially if you want to advance quickly. The assholes generally stay right where they are in the corporate ladder, even if they really are the best at their jobs. You simply cannot teach social intelligence and timing. If you have a grasp of both, flaunt them, people will be forced to notice.

[Edited on February 8, 2009 at 3:36 PM. Reason : -]

2/8/2009 3:33:33 PM

0EPII1
All American
42533 Posts
user info
edit post

this is why i love wikipedia: http://en.wikipedia.org/wiki/Do_the_needful

oh, and click here and read till end... guarantee you will be lolling: http://en.wikipedia.org/wiki/Indian_English#Grammar.2C_idioms_and_usage_in_Indian_English

2/8/2009 4:55:11 PM

kiljadn
All American
44689 Posts
user info
edit post

Arey, that is a long string, yaar?

2/8/2009 9:03:50 PM

 Message Boards » Tech Talk » im really tired of working with foreign programmer Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.