d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > An Indian Dude Coded This...
12Next
Add Reply New Topic New Poll
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Jun 11 2013 05:15am
the indian dude never used a while, never a switch, never structs... only global variables... beside that i found a lot of logical mistakes.
but my boss claims that his code works somehow (at least the "main" part, lol). I am now going to improve his shit, but here i got stuck...

i got the variable "ass" and the constants L0,L1,L2,L3.

Code
ass = (ass == L3)? L0 :
(
(ass == L0)? L1 :
(
(ass == L1)? L2 : L3
)
);

i removed any indention, because there were about 70-80 spaces before the brackets.

i assume this means:
Code

when ass was L3, then ass now is L0
when ass was L0, then ass now is L1
when ass was L1, then ass now is L2
when ass was L2, then ass now is L3
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Jun 11 2013 06:27am
can be closed
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Jun 11 2013 11:09am
Fuck Indians, I mean the ones who code like they're from India.
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Jun 12 2013 04:03am
Quote (0n35 @ 11 Jun 2013 18:09)
Fuck Indians, I mean the ones who code like they're from India.

yep.
(beside that, this one really came from india lol :)
thousands of lines.... i think i have to rewrite all ~~
Member
Posts: 2,478
Joined: Jan 4 2007
Gold: 7,545.00
Jun 12 2013 12:41pm
That's the problem with out sourcing. I never understood why my company does it. They spend millions on outsourcing work to contractors and over seas developers just so we can do a rewrite because the contractor has no idea wtf he's doing. </rant>
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Jun 12 2013 01:21pm
Quote (DirtyRasa @ Jun 12 2013 01:41pm)
That's the problem with out sourcing.  I never understood why my company does it.  They spend millions on outsourcing work to contractors and over seas developers just so we can do a rewrite because the contractor has no idea wtf he's doing. </rant>


I sometimes do work for a web design freelancer, she can't code very well. Anyway there was this website she was redoing for a client that had been done from someone in India, it literally did have 5k lines of useless PHP code that I spent 3 days interpreting just to shorten it down to 200 lines PHP, like 50 in JS. I hate people from India, if you go with outsourcing you better be paying them in dirt because that's what you'll get in return.
Member
Posts: 2,757
Joined: Nov 26 2007
Gold: 1,214.81
Jun 12 2013 01:44pm
Quote (0n35 @ Jun 12 2013 03:21pm)
I sometimes do work for a web design freelancer, she can't code very well.  Anyway there was this website she was redoing for a client that had been done from someone in India, it literally did have 5k lines of useless PHP code that I spent 3 days interpreting just to shorten it down to 200 lines PHP, like 50 in JS.  I hate people from India, if you go with outsourcing you better be paying them in dirt because that's what you'll get in return.


I had that happen once. The customer paid like twice as much as we charged and it took twice as long for the Indians to do it. We just threw out all the shitty code they did and started from scratch.
Member
Posts: 7,324
Joined: Dec 22 2002
Gold: 1,261.00
Jun 12 2013 02:16pm
That's the most confusing ass-backwards (ha!) way I've ever seen of just incrementing and wrapping-around.
Member
Posts: 4,605
Joined: Sep 15 2011
Gold: 9,464.00
Jun 12 2013 02:20pm
Did you guys hear about the guy who outsourced his job to India? He was getting paid like $250k a year, and in turn he paid like 2 Indian guys to do his job.
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Jun 12 2013 05:03pm
Quote (irimi @ 12 Jun 2013 21:20)
Did you guys hear about the guy who outsourced his job to India?  He was getting paid like $250k a year, and in turn he paid like 2 Indian guys to do his job.

we heard yes. i think he gave his job to a chinese company.

its just because he was a pro in outsourcing...
i think managers can't outsource as well as technical dudes can, because the technical dude sees the bad stuff and can change the programmer to another one doing less stupid code.

i'm now going to rewrite everything ~~
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll