Open Side Menu Go to the Top

07-11-2012 , 03:45 PM
Quote:
Originally Posted by clowntable
-1*foo seems more readable to me
Absolutely. I'm surprised gull thinks otherwise.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
07-11-2012 , 03:55 PM
Isn't something like:

t = -t;

legal in just about all languages? It prob. compiles the same as -1*t; I don't see the advantage of adding the extra character.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-11-2012 , 07:14 PM
Quote:
Originally Posted by NoahSD
Absolutely. I'm surprised gull thinks otherwise.
Perhaps it's a difference in how maths is taught in USA vs UK? (Or I'm weird lol )
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-11-2012 , 07:19 PM
I remember a lot of emphasis from primary school teachers saying "1 times X is always going to be X". -1*x is really clear to me because of that.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-11-2012 , 07:29 PM
lol... this thread is like listening to people argue whether its better to be kicked in the face or to be kicked in the groin...

could one of the advocates for "x = -1*x" and/or "x = 0-x" please explain why you wouldnt just write "x = -x"?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-11-2012 , 08:13 PM
anyone know the rules of thumb or w/e for mixing and matching laptop chargers to a laptop? the tip of my charger is worn out and i have to position it just right to get a connection and i want to try some of the other chargers i have laying around.

edit: just burnt my finger on the tip of my charger... probably not good for it to be that hot?

Last edited by Ryanb9; 07-11-2012 at 08:23 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-11-2012 , 08:18 PM
IANAEE but just try to find one with the same amperage on the transformers.

edit: I'm with jason...I'm a bit mystified why anyone would use anything other than -x
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-11-2012 , 08:35 PM
Quote:
Originally Posted by kerowo
Haven't put Linux on it but it is the first computer I've had in a long time noticeably faster than my previous computer.
Same here. I assume its the SSD but I've never before experienced such a huge improvement in usability when upgrading computers.

Eclipse actually works like a non-bloated standard piece of software.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-11-2012 , 11:45 PM
Quote:
Originally Posted by _dave_
lol I did this TODAY infront of someone else over teamviewer, felt like a right ******

edit: even worse it was in excel where you can just do =-A12 instead of =A12 - (A12 * 2)
I don't blame this error. Excel is such a cluster* that you automatically assume everything is the hard way, except copy/paste cell functions.

Last edited by daveT; 07-11-2012 at 11:50 PM. Reason: Yeah.... x = -x also
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-11-2012 , 11:48 PM
On the company website note:



I'm just too embarrassed for my company to even talk about it.

But, I am actually...



Because I am not involved anymore. So, marketing doesn't get the egg in his face for this one. Unfortunately, I'll get the whole blame because everyone will assume marketing created the whole disaster.

Last edited by daveT; 07-11-2012 at 11:49 PM. Reason: it's time to create the marketing bs resume...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 05:52 AM
I want to add facebook integration to an app with ios5/arc (share recipes). I understand that neither the facebook api nor sharekit are immediately compatible with arc. Which would be easier to implement this for?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 07:49 AM
Quote:
Originally Posted by sng_jason
lol... this thread is like listening to people argue whether its better to be kicked in the face or to be kicked in the groin...

could one of the advocates for "x = -1*x" and/or "x = 0-x" please explain why you wouldnt just write "x = -x"?
Yeah thats my question too.. I thought maybe Id just gon mad for thinking that, glad to see its no just me
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 07:54 AM
Quote:
Originally Posted by daveT
I don't blame this error. Excel is such a cluster* that you automatically assume everything is the hard way, except copy/paste cell functions.
Excel is a great software IMO. people abuse the hell out of it by trying to use it as a hammer but it's an invaluable tool. It's macro system is also a great gateway drug to learning a more general purpose programming language.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 09:49 AM
quick question guys...dont really know where else should I ask

1)is XML useful for a nonprogrammer? It would be the only coding language I somewhat knew (thinking about signing up for a class).
2)is proficiency in Reuters app for finance useful for finance only? Or would it be useful or around?

Im gonna be looking for a job/internship next Spring and Im looking to boost up technology part of my cv. Ideal position is smth like (Junior) Research analyst in Mckinsey, but I will be looking all around, I know that getting that job is hard. Major: econ

thanks
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 11:20 AM
Quote:
Originally Posted by clowntable
-1*foo seems more readable to me
yeah me too. 0-foo is less clear. but w/e seems like nitpicking
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 11:34 AM
I'm shocked that anything but unary negation would be used to negate a variable.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 11:42 AM
eh.. I often multiply by -1 because I think it's more explicit. It's fairly easy for me to see a = -b and read a = b--especially when I'm debugging and therefore confused and tearing my hair out.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 11:48 AM
Quote:
Originally Posted by NoahSD
eh.. I often multiply by -1 because I think it's more explicit. It's fairly easy for me to see a = -b and read a = b--especially when I'm debugging and therefore confused and tearing my hair out.
I hope you're not using a proportional font!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 12:03 PM
I probably would be dumb enough to do that, but luckily I tend to program in IDEs that were made by people smarter than I am.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 12:46 PM
Quote:
Originally Posted by Krax
1)is XML useful for a nonprogrammer? It would be the only coding language I somewhat knew (thinking about signing up for a class).
xml is not a "coding language". prove me wrong by writing a program in xml that does something. what do you think you "somewhat know" about it?

what do you mean by "useful"? i don't think xml is going to help you get a job in any field, but especially not finance/econ.

Quote:
2)is proficiency in Reuters app for finance useful for finance only? Or would it be useful or around?
i've never heard of this so i'll say no.

Quote:
Im gonna be looking for a job/internship next Spring and Im looking to boost up technology part of my cv. Ideal position is smth like (Junior) Research analyst in Mckinsey, but I will be looking all around, I know that getting that job is hard. Major: econ
good luck!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 12:56 PM
gull,

i was making a joke. wasn't trying to be harsh.

my interview comment was because your answer demonstrated a weak understanding of how compilers/processors/assembler work. i do think -1*x is clearer than 0-x (and it appears i am in the majority on this) but i agree that an interview that relies on this distinction is poorly conceived.

much better to ask how many ping-pong balls fit in a 747 .

Last edited by tyler_cracker; 07-12-2012 at 12:57 PM. Reason: in before inga asks "but why would you want to know how many ping-pong balls fit in a 747?!"
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 01:03 PM
Quote:
Originally Posted by tyler_cracker
much better to ask how many ping-pong balls fit in a 747 .
Lol, I know youre supposed to stay calm and show analytical skills for this, but Im always just like "sighhhh"

Last edited by PJo336; 07-12-2012 at 01:03 PM. Reason: in my head, but its prob the same thing
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 01:11 PM
Oh ok sorry for misinterpreting

Perhaps I phrased wrong, and granted I'm just a hobbyist when it comes to processors and all that stuff, all I'm trying to say is that processors are so complex now that measuring performance between single lines is a vacuum is largely pointless, in a real world example there's a lot of influencing variables and it would be nearly impossible to determine which method is faster than another for such small instructions.

I guess I'm the odd one out thinking that 0-x is clearest lol, I seem to do a lot of things differently to other people, and the biggest team I've ever worked in is 2 so I can accept that it's probably not the way everyone else does it
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 01:16 PM
Gull, eg, saying differently to instead of differently from? :P
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-12-2012 , 03:09 PM
Quote:
Originally Posted by Gullanian
Perhaps it's a difference in how maths is taught in USA vs UK? (Or I'm weird lol )
A math person will probably look rather concerned when he sees either version

x=0-x
or
x=-1*x
or
x=-x

DUCY :P
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m