|
http://social.msdn.microsoft.com/forums/en-US/transactsql/thread/13daeb85-da43-4166-b188-595a4a5d5282/
|
# ? Jan 25, 2013 19:10 |
|
|
# ? May 27, 2024 01:58 |
|
Shaggar posted:no and thats one of those things thats annoying, but its not critical by any means. Databasing without window functions is like coding with hand behind your back.
|
# ? Jan 25, 2013 19:10 |
|
Shaggar posted:no and thats one of those things thats annoying, but its not critical by any means. you're granny querying
|
# ? Jan 25, 2013 19:10 |
|
here's a c++ question for yalls: which of these, if any, makes you angry? do any of them make you want to kill yourself? A code:
code:
code:
|
# ? Jan 25, 2013 19:10 |
|
All of them; using hungarian notation to denote visibility.
|
# ? Jan 25, 2013 19:12 |
|
i'd like to find the smallest snippet of c++ that makes people go completely apeshit
|
# ? Jan 25, 2013 19:19 |
|
Dr. Honked posted:here's a c++ question for yalls: A is the least bad imo C is the worst
|
# ? Jan 25, 2013 19:19 |
|
Shaggar posted:idk what this means. are you talking about auto-increment ? not for identity columns but for example row_number() over (partition by server order by emails desc) will allow you to easily select the top X users per server based on emails
|
# ? Jan 25, 2013 19:22 |
|
also page compression owns
|
# ? Jan 25, 2013 19:28 |
|
comma before just screams "i debug by commenting single lines"
|
# ? Jan 25, 2013 19:29 |
|
Dr. Honked posted:here's a c++ question for yalls: A for normals B for douchery and code confusion C is same as B but indicates a person who modifies initializers a lot
|
# ? Jan 25, 2013 19:30 |
|
all microsoft software is terrible, especially their "database" products java is bad too, overly verbose garbage to keep dumb people from hurting themselves
|
# ? Jan 25, 2013 19:32 |
|
Cocoa Crispies posted:java is bad too, overly verbose garbage to keep dumb people from hurting themselves it doesn't seem to stop dumb people from hurting themselves
|
# ? Jan 25, 2013 19:35 |
|
tef posted:it doesn't seem to stop dumb people from hurting themselves well it's not particularly good at anything, no surprise it fails at that
|
# ? Jan 25, 2013 19:38 |
|
http://stackoverflow.com/questions/262427/javascript-array-map-and-parseint why does ['1','2','3'].map(parseInt) yield this: [1, NaN, NaN]
|
# ? Jan 25, 2013 19:38 |
|
JawnV6 posted:comma before just screams "i debug by commenting single lines" this is fine as long as you leave any still-commented lines in when u commit *ducks*
|
# ? Jan 25, 2013 19:42 |
|
MeruFM posted:A for normals Initialization lists are a good thing. B is the best one.
|
# ? Jan 25, 2013 19:44 |
|
prefer B here, though I'd probably just write it like thiscode:
|
# ? Jan 25, 2013 19:47 |
|
you're wasting precious screen real estate with that frivolous newline
|
# ? Jan 25, 2013 19:53 |
|
Dr. Honked posted:you're wasting precious screen real estate with that frivolous newline I like my opening brace at the end of the function-definition line, instead of at the beginning of the next line.
|
# ? Jan 25, 2013 20:00 |
|
Is there really anyone who would suggest A is better? It wouldn't make me rage though, I would just think "heh scrub"
|
# ? Jan 25, 2013 20:04 |
|
Fib posted:Is there really anyone who would suggest A is better? It wouldn't make me rage though, I would just think "heh scrub" the worst is when people mix them up
|
# ? Jan 25, 2013 20:05 |
|
code:
|
# ? Jan 25, 2013 20:07 |
|
Dr. Honked posted:
Shouldn't there be m_something attached to the front of "pish"? (Why no, I am not a C++ guy, why do you ask?)
|
# ? Jan 25, 2013 20:09 |
|
that's it that's the one that makes me mad
|
# ? Jan 25, 2013 20:09 |
|
prefect posted:Shouldn't there be m_something attached to the front of "pish"? (Why no, I am not a C++ guy, why do you ask?) ah you see that was added by the guy who doesn't follow the coding conventions that the other guys do. it's not incorrect per se, in fact some might say it's more correct
|
# ? Jan 25, 2013 20:12 |
|
A is straight up bitch code written by people who wrote a C, but i guess its ok if you're in cs101 or something B is best because it's what you should do C is weird lookin' and looks like something you'd do in javascript because of semicolon insertion Progressive JPEG posted:prefer B here, though I'd probably just write it like this real talk C++ should let you drop the braces and just write C++ code:
|
# ? Jan 25, 2013 20:18 |
|
c++ makes my brain hurt
|
# ? Jan 25, 2013 20:23 |
|
right now i am looking at real code which is worse than my above example, it's over 100 lines long and makes me want to hand out beatings. it has function calls interleaved amongst the initialisations in the function body.FamDav posted:real talk C++ should let you drop the braces and just write i agree. c++ has so much wankery in it
|
# ? Jan 25, 2013 20:25 |
|
let's make c++-- i do like the way rust is progressing though but gamedev is going to be writing terrible c++ for years
|
# ? Jan 25, 2013 20:27 |
|
FamDav posted:C is weird lookin' and looks like something you'd do in javascript because of semicolon insertion i guess its more common in verilog?
|
# ? Jan 25, 2013 20:28 |
|
JawnV6 posted:it's so you can use // to comment a line and not worry about fixing up commas since each line ends without one otherwise known as foresight it's common in javascript because ~json~ But putting them for initializers is weird unless you're actively adding and removing optionals? I don't do no ceepeepee
|
# ? Jan 25, 2013 20:33 |
|
JawnV6 posted:it's so you can use // to comment a line and not worry about fixing up commas since each line ends without one i see the same amount of edge cases but if there is a semicolon involved i can see how comma-first would be more convenient. im talking more about poo poo like code:
|
# ? Jan 25, 2013 20:38 |
|
since we're talking initializer lists let's talk initializer lists. Let's say I wrote a class C++ code:
now imagine a class that is 100 lines long and has variable declarations interspersed with method declarations and tef posted:c++ makes my brain hurt
|
# ? Jan 25, 2013 20:53 |
|
tef posted:c++ makes my brain hurt that means you need to write more until it beats you into numbness I hope rust works out as well, but I will always a soft spot in my heart for the craziness of c++
|
# ? Jan 25, 2013 20:58 |
|
Jerry SanDisky posted:that means you need to write more until it beats you into numbness the soft spot is a malignant tumor
|
# ? Jan 25, 2013 20:59 |
|
i still think clay is super cool. how's rust come along in the last year or so?
|
# ? Jan 25, 2013 21:00 |
|
tef posted:let's make c++-- Clay http://claylabs.com/clay/ lol snap
|
# ? Jan 25, 2013 21:01 |
|
Otto Skorzeny posted:i still think clay is super cool. how's rust come along in the last year or so? clay looks younger than rust and just as unstable rust is coming along in the sense that they are writing lots of code in it and then slowly breaking it, trying to make the parts fit together. give it time, see how it comes out. they seem to be in the process of smoothing out the major features
|
# ? Jan 25, 2013 21:25 |
|
|
# ? May 27, 2024 01:58 |
|
see also http://chapel.cray.com
|
# ? Jan 25, 2013 21:25 |