Developers Blues
-
TheArchitectualizer wrote:
f 'Let the compiler sort it out'.
So you've discovered a compiler with working intention prediction? There is no excuse for writing ambiguous code. Maintainers should be permitted to poke the original author of crap like this with sharp sticks. In a month you wont remember what it was that you really meant. What happens when the vendor decides the compiler implementation was non-standard/wrong and changes how this compiles in a new version?
-
Awww! My eyes! My eyes! My brain! I'm meeeeltiiiiing... Too much geekyness? :-D When you write a poem about something (or even copy-paste it from somewhere else), you just gotta know you're a fanatic of the subject in the poem, which in this case is also called "a geek". Ever played Portal, BTW? At the end there's a really neat song about a geeky female computer that does science and experiments on people. Your poem sort of reminded me of that. C'mon! Don't tell me you don't know what I'm talking about. :laugh: Another thought: maybe you should stick to poetry. :doh:
(byte)a = b << 8;
sort of makes sense for me, in case you wanted a quick way to divide b by 2^8, and if b were not a char, OR if you wanted to get bits 7-15 of an x-bit variable, where x is a power of 2 greater than 16. Sorry to say this, but you're just a geek on this one. (i.e., as advertised on TV)modified on Monday, July 6, 2009 10:01 AM
-
Other than the ability to briefly explain an "incorrect" answer, I had no opportunity to discuss the problems with the test with the recruiter.
yeah, right, like that would have made a difference most i know would be like talking to a rock- i said most! not all - i do know a handful of decent ones
-
yeah, right, like that would have made a difference most i know would be like talking to a rock- i said most! not all - i do know a handful of decent ones
-
Hmm, what is 'a' and 'b'? My point, bit shifting is not an everyday OO operation in C#. If you need fast code, use C or ASM.
-
It must be nice to only work with highly abstracted data types. You clearly don't do any bit bashing, unlike many of us (it is not restricted to low-level programming). I do it fairly often in my code, so maybe I'm doing something wrong.
Donno! :confused: Mostly write bus apps. Can't do anything interesting there. In my free time, which I have lots of these days, I research what I consider low level stuff. Most primitave code I worked on was some geo spatial stuff, but I used Lab View Math Lab and other mathematical packages...
modified on Monday, July 6, 2009 3:50 PM
-
Just to prove the point I took the free C# BB test. Test: C# Date: 05-Jul-2009 Score: 2.56 Weights: 100% C# Elapsed time: 27 min 40 sec C# Score: 2.56 Percentile: Scored higher than 27% of previous examinees Demonstrates a solid understanding of core concepts within this topic. Appears capable of working on most projects in this area with moderate assistance. May require some initial assistance with advanced concepts, however. Strong Areas Value and Reference Types Weak Areas Grammar Developing Data Consumers and Services Methods Properties, Indexers, and Fields I failed! Min passing 2.76. Here are some of the tings I'm talking about:
if (a > b) c = 'a'; else { if (b == d) c = 'e'; else c = 'b'; }
a)c = (b = d) ? 'e' : ((a > b) ? 'a' : 'b');
b)c = (b == d) ? 'e' : (a > b) ? 'a' : 'b';
c)c = (a > b) ? 'a' : (b = d) ? 'e' : 'b';
d)c = (a > b) ? 'a' : (b == d) ? 'e' : 'b';
e)c = (a > b) ? 'a' : ((b = d) ? 'e' : 'b');
...and...public void A() { byte a, b, c; a = 255; b = 122; c = (byte)(a & b); }
...and... 'Which one of the following compilers' flag turns on run-time integer range checking? 'While I was hanging out at getafreelancer.com these gigs "Create a automatic test for subject such and such" frequently turned up... Lowest bider was _always_ selected -- which maybe could explain the (sub)quality of these tests... Cheers /Jonas
-
Hmm, what is 'a' and 'b'? My point, bit shifting is not an everyday OO operation in C#. If you need fast code, use C or ASM.
TheArchitectualizer wrote:
Hmm, what is 'a' and 'b'?
; I'll need more of the code to figure that out. However, I can tell you that if b is not declared as something larger than
char
, then all this code does is put 0 in a. :|TheArchitectualizer wrote:
If you need fast code, use C or ASM.
I do. :P
-
Just to prove the point I took the free C# BB test. Test: C# Date: 05-Jul-2009 Score: 2.56 Weights: 100% C# Elapsed time: 27 min 40 sec C# Score: 2.56 Percentile: Scored higher than 27% of previous examinees Demonstrates a solid understanding of core concepts within this topic. Appears capable of working on most projects in this area with moderate assistance. May require some initial assistance with advanced concepts, however. Strong Areas Value and Reference Types Weak Areas Grammar Developing Data Consumers and Services Methods Properties, Indexers, and Fields I failed! Min passing 2.76. Here are some of the tings I'm talking about:
if (a > b) c = 'a'; else { if (b == d) c = 'e'; else c = 'b'; }
a)c = (b = d) ? 'e' : ((a > b) ? 'a' : 'b');
b)c = (b == d) ? 'e' : (a > b) ? 'a' : 'b';
c)c = (a > b) ? 'a' : (b = d) ? 'e' : 'b';
d)c = (a > b) ? 'a' : (b == d) ? 'e' : 'b';
e)c = (a > b) ? 'a' : ((b = d) ? 'e' : 'b');
...and...public void A() { byte a, b, c; a = 255; b = 122; c = (byte)(a & b); }
...and... 'Which one of the following compilers' flag turns on run-time integer range checking? 'TheArchitectualizer wrote:
Just to prove the point I took the free C# BB test.
Y'all have me curious - what is the link to that site? Are you referring to the C# test available at Brainbench or some other site?
-
TheArchitectualizer wrote:
Just to prove the point I took the free C# BB test.
Y'all have me curious - what is the link to that site? Are you referring to the C# test available at Brainbench or some other site?