archived
stringclasses
2 values
author
stringlengths
3
20
author_fullname
stringlengths
4
12
body
stringlengths
0
22.5k
comment_type
stringclasses
1 value
controversiality
stringclasses
2 values
created_utc
stringlengths
10
10
edited
stringlengths
4
12
gilded
stringclasses
7 values
id
stringlengths
1
7
link_id
stringlengths
7
10
locked
stringclasses
2 values
name
stringlengths
4
10
parent_id
stringlengths
5
10
permalink
stringlengths
41
91
retrieved_on
stringlengths
10
10
score
stringlengths
1
4
subreddit_id
stringclasses
1 value
subreddit_name_prefixed
stringclasses
1 value
subreddit_type
stringclasses
1 value
total_awards_received
stringclasses
19 values
True
[deleted]
null
Very straight forward to use and not many dependencies makes it nice. It isn't strictly header-only however, as it depends on boost.thread which is itself not header-only but that's a minor issue. Some other minor points... In concurrent_queue you can use a lock_guard in almost all cases instead of a scoped_lock. For example: boost::mutex::scoped_lock lock(the_mutex); the_queue.push(data); lock.unlock(); the_condition_variable.notify_one(); You don't need the unlock. You may invoke (in fact you should invoke) notify_one while the lock is held. As soon as you release the lock, the thread waiting on the condition variable will unblock. boost::mutex::scoped_lock lock(the_mutex); return the_queue.empty(); Can switch that to a lock_guard. boost::mutex::scoped_lock lock(the_mutex); while(the_queue.empty()) { the_condition_variable.wait(lock); } popped_value=the_queue.front(); the_queue.pop(); Switch from scoped_lock to unique_lock.
null
0
1317005154
False
0
c2ml1ka
t3_krd8f
null
t1_c2ml1ka
t1_c2mkl8m
null
1427647037
5
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317005290
False
0
c2ml23j
t3_kp1b5
null
t1_c2ml23j
t1_c2mkdzy
null
1427647042
1
t5_2fwo
null
null
null
True
[deleted]
null
You'll likely want to make the destructor for your BaseLogger class virtual.
null
0
1317005355
False
0
c2ml2c4
t3_krd8f
null
t1_c2ml2c4
t1_c2mkl8m
null
1427647044
7
t5_2fwo
null
null
null
True
disidentadvisor
null
Must have been nice to enjoy 360 days of beautiful sunny weather throughout school. Meanwhile, others of us donned parkas and enjoyed blizzard related brownouts (class was still in session and not cancelled) ಠ\_ಠ
null
0
1317005490
False
0
c2ml2t7
t3_kqucu
null
t1_c2ml2t7
t1_c2mkrv5
null
1427647049
3
t5_2fwo
null
null
null
True
andrew-d
null
Firstly, thank you very much for the suggestions regarding locking - I'll make those changes and push later today. As for boost.thread, I will be adding another #ifdef to control whether it's included, so that it can indeed be used as a completely header-only library. I didn't realize that boost.thread was one of the few boost libraries that wasn't header-only :-(
null
0
1317005492
False
0
c2ml2tl
t3_krd8f
null
t1_c2ml2tl
t1_c2ml1ka
null
1427647049
2
t5_2fwo
null
null
null
True
andrew-d
null
Oh wow, can't believe I forgot that, thanks again. Argh :-P
null
0
1317005548
False
0
c2ml30d
t3_krd8f
null
t1_c2ml30d
t1_c2ml2c4
null
1427647049
3
t5_2fwo
null
null
null
True
0xABADC0DA
null
fyi many of these have 8k of ROM, 256 **bytes** of RAM, and run at 6 Mhz with parts of USB controller are dedicated circuits (like I said, baked in). The camera part is a dedicated DSP (not programmable) that outputs x,y deltas. Are there even any Firewire microcontrollers with less than 256 *kilobytes* of RAM?
null
0
1317005577
False
0
c2ml34f
t3_kp1b5
null
t1_c2ml34f
t1_c2mkdzy
null
1427647051
0
t5_2fwo
null
null
null
True
disidentadvisor
null
Seconded, I don't want to waste a slot if it is beyond by skillset/ability to understand. Would this be considered a 100 level? 400 level? Any feedback would be greatly appreciated.
null
0
1317005620
False
0
c2ml3an
t3_kqucu
null
t1_c2ml3an
t1_c2mk7h9
null
1427647061
3
t5_2fwo
null
null
null
True
igouy
null
As far as multi-paradigm languages go, I remember being a little overwhelmed by the ideas presented in Yves Caseau's LAURE language, without having any way to get hold of working code. But the implementation of his later language [CLAIRE](http://claire3.free.fr/index.htm) is available.
null
0
1317006079
False
0
c2ml54p
t3_kpwjl
null
t1_c2ml54p
t1_c2miwzo
null
1427647087
2
t5_2fwo
null
null
null
True
[deleted]
null
Seeing as this is /r/programming, you're probably just trolling, but I'm curious as to what you suggest as a replacement.
null
0
1317006360
False
0
c2ml6ec
t3_kravz
null
t1_c2ml6ec
t1_c2mkmww
null
1427647097
8
t5_2fwo
null
null
null
True
flargenhargen
null
>databases are the single thing related to programming that bores me the most LOL. I used to be in your shoes. Databases are BORING. I even told the instructor in my Java class that I wasn't going to do the database portion of the course, because I didn't see it would be in any way useful to me, so I would instead develop my own advanced applet portion that I would do along side of the database stuff. Because, of course, I had no intention of EVER working in boring databases. Which was all well and good. But then, of course, here comes the real world, and now everything I do touches on databases in one way or another. hehe. moral: Take the course, you'll need it at some point. I could probably teach the damn thing at this point, but I'm pondering taking it, just cause I'm sure there will be stuff in it that I don't know. Oh yea, ironically, once I got into databases, I found that they are actually kind of fun. There's seriously something to be said for having the ability to push data around like you are a god. ;)
null
0
1317006464
False
0
c2ml6wc
t3_kqucu
null
t1_c2ml6wc
t1_c2mhhbm
null
1427647102
5
t5_2fwo
null
null
null
True
Eugi
null
Wow, thank you for posting! This looks like a perfect refresher.
null
0
1317006973
False
0
c2ml99m
t3_kqucu
null
t1_c2ml99m
t3_kqucu
null
1427647120
1
t5_2fwo
null
null
null
True
smallfishbigpond
null
Looks like somebody around here needs to go read Let Over Lambda.
null
0
1317007248
False
0
c2mlaba
t3_kpqzv
null
t1_c2mlaba
t3_kpqzv
null
1427647131
-1
t5_2fwo
null
null
null
True
kryptobs2000
null
Have any resources you'd recommend?
null
0
1317007745
False
0
c2mlcg2
t3_kqucu
null
t1_c2mlcg2
t1_c2mjqsg
null
1427647158
8
t5_2fwo
null
null
null
True
lazyFer
null
Too bad a lot of developers just think of databases as a persistence layer. I worked with one of these published senior developers a while back building a system that would take in a specific type of data from many different possible source formats and convert it to our internal target system.....he ignored everything I was designing to allow decoupling between the conversion system and the target system and put his own design in place which made the conversion system a direct mapping to the target system.... fast forward 1 1/2 years and now we're talking about changing the target system and we're now stuck with redesigning the conversion system again and the dev is no longer with the company. It's shit like that that really bugs me about the application/database divide. Most data people I know understand that they lack expertise about application development....the same consideration doesn't flow much from the application development people I've worked with. Sorry for the rant.
null
0
1317008268
False
0
c2mlerl
t3_kqucu
null
t1_c2mlerl
t1_c2miwed
null
1427647190
5
t5_2fwo
null
null
null
True
lazyFer
null
Really poor data design also has a huge impact. Unfortunately there are way too many data modelers that have never written queries against their structures or loaded their structures to really understand design impact and way too many application developers that think they can design a proper database.
null
0
1317008381
False
0
c2mlfaf
t3_kqucu
null
t1_c2mlfaf
t1_c2miund
null
1427647196
5
t5_2fwo
null
null
null
True
SnowdensOfYesteryear
null
How effective is it? Do you need to use clang to compile your code or just need it installed on your system?
null
0
1317009064
False
0
c2mlidr
t3_kr2x5
null
t1_c2mlidr
t1_c2mkfl8
null
1428192771
3
t5_2fwo
null
null
null
True
placidified
null
I think AlyoshaV might suggest notepad.exe
null
0
1317009091
False
0
c2mliim
t3_kravz
null
t1_c2mliim
t1_c2ml6ec
null
1427647238
6
t5_2fwo
null
null
null
True
Svenstaro
null
Any reason for making it header-only and thereby increasing compile times as opposed to just a shared lib that doesn't have to be recompiled all the time?
null
0
1317009392
False
0
c2mljyg
t3_krd8f
null
t1_c2mljyg
t3_krd8f
null
1427647258
8
t5_2fwo
null
null
null
True
grauenwolf
null
Yea, I've seen the sort of "unit tests" that people crank out without doing any design work. Half of them could be produced by a code generator, the other half are worth the time it takes to read them, let alone write them.
null
0
1317009510
False
0
c2mlkgz
t3_kq001
null
t1_c2mlkgz
t1_c2mkzgf
null
1427647265
1
t5_2fwo
null
null
null
True
21echoes
null
from courserank (what we use to do what it sounds like it does :) ): "Take this class if you want to learn the basics of databases - just how to create, query, and maintain them. No implementation details, just the front-end stuff. A useful class for a web developer." but also, "As promised by Prof. Widom, this class definitely gives you some marketable skills. The lectures were pretty engaging and the assignments were a welcome variety of theory and application." cs145 has 103 (intro to automata + complexity theory) and 107 (ridiculously hard intro to c + assembly) as prereqs, so it's meant for people who really know how to code, but it's where you're basically supposed to learn SQL at Stanford, so it starts from the basics (thus, "intro to databases"). sorry i can't be more helpful, as i haven't taken the class.
null
0
1317009522
False
0
c2mlkj7
t3_kqucu
null
t1_c2mlkj7
t1_c2mk7h9
null
1428192770
6
t5_2fwo
null
null
null
True
AlyoshaV
null
of course not! ​ ​ notepad++.exe or maybe eclipse.exe
null
0
1317009586
False
0
c2mlkt4
t3_kravz
null
t1_c2mlkt4
t1_c2mliim
null
1427647273
-15
t5_2fwo
null
null
null
True
grauenwolf
null
Not necessarily, I've seen plenty of monolithic classes that were incredibly easy to test. They were utterly miserable to use, but writing low level tests against any given method was quite easy.
null
0
1317009596
False
0
c2mlkuj
t3_kq001
null
t1_c2mlkuj
t1_c2mkxsf
null
1427647273
0
t5_2fwo
null
null
null
True
grauenwolf
null
> TDD helps guide me to a good design And I'm all for that. My objection is directed at people who teach TDD as if it were all you need or that you shouldn't be writing any code without it. It is impossible to dicuss the real merits and flaws of TDD when it is seen in such stark terms.
null
0
1317009750
False
0
c2mlljq
t3_kq001
null
t1_c2mlljq
t1_c2mi66f
null
1427647281
1
t5_2fwo
null
null
null
True
andrew-d
null
Mostly personal preference. I dislike the complexity of dealing with shared libraries that have to work across different platforms - not to mention, the library itself is pretty simple. Simplicity is good for small stuff like this, IMHO. You are, of course, welcome to adapt it to a non-header library if you want.
null
0
1317009778
False
0
c2mllod
t3_krd8f
null
t1_c2mllod
t1_c2mljyg
null
1427647283
12
t5_2fwo
null
null
null
True
iLiekCaeks
null
I tried that once, and it got super bloaty. The reason is that you need to generate code that generates the runtime info. (Because only D's compile time reflection is really useful.) Just generating the runtime info would be much better.
null
0
1317009830
False
0
c2mllwl
t3_kqtat
null
t1_c2mllwl
t1_c2mheeu
null
1427647286
1
t5_2fwo
null
null
null
True
HotHands
null
I don't go to Stanford; I go to another university. But I took AI and I'm in Machine Learning and Intro to DB right now. Sorry for the confusion.
null
0
1317009951
False
0
c2mlmfw
t3_kqucu
null
t1_c2mlmfw
t1_c2mkrv5
null
1427647293
2
t5_2fwo
null
null
null
True
asdfman123
null
Hahah... I wish I could say that was my Stanford Experience™, I really do.
null
0
1317010168
True
0
c2mlnea
t3_kqucu
null
t1_c2mlnea
t1_c2ml2t7
null
1427647304
2
t5_2fwo
null
null
null
True
Svenstaro
null
Fair enough. Keep up the good work.
null
0
1317010454
False
0
c2mlopc
t3_krd8f
null
t1_c2mlopc
t1_c2mllod
null
1427647321
6
t5_2fwo
null
null
null
True
[deleted]
null
Go to http://ocw.mit.edu and look up class 6.001 (The class that uses SICP as a textbook and where the video lectures came from). In the extras for the class there are instructions for creating a free account on their homework and quiz server. Go create one. That server has a scheme interpreter on it and will automatically run your assignments through a suite of unit test cases and tell you what you did wrong. It is very slick.
null
0
1317011173
False
0
c2mlrxy
t3_kqixo
null
t1_c2mlrxy
t1_c2me2ni
null
1427647361
2
t5_2fwo
null
null
null
True
andrew-d
null
Just a note: pushed another couple commits that fix a nasty race condition and add some testing for the threaded background logger. Thanks to Kranar for some bugfixes! Will be changing the queue implementation tomorrow. EDIT: Actually, did it now - thanks again to Kranar.
null
0
1317011382
True
0
c2mlsuz
t3_krd8f
null
t1_c2mlsuz
t3_krd8f
null
1428192766
7
t5_2fwo
null
null
null
True
vocalbit
null
It's nice to see Rust make progress. Though it has turned me off by having too many kinds of types - interior, unique, boxed... That's a lot of line noise I didn't want. And the module system seems more complex than Python which is also a turn off. Now I'm hoping [Clay](http://claylabs.com/clay/) makes some progress too that *doesn't* end up turning me off.
null
0
1317011420
False
0
c2mlt15
t3_kos4z
null
t1_c2mlt15
t3_kos4z
null
1428192765
2
t5_2fwo
null
null
null
True
theantirobot
null
It will happen as soon as the people who take these courses are the same people who do the hiring.
null
0
1317011906
False
0
c2mlv4y
t3_kqucu
null
t1_c2mlv4y
t1_c2mjco1
null
1427647403
0
t5_2fwo
null
null
null
True
flukus
null
A unit test simply creates the initial state, asks the class under test to act on that state and verifies the result. If the test doesn't require any mocks etc that 3 lines of code, 2 if no initial state is needed. Why would you need to "design" 3 lines of code?
null
0
1317011946
False
0
c2mlvb5
t3_kq001
null
t1_c2mlvb5
t1_c2mlkgz
null
1427647405
0
t5_2fwo
null
null
null
True
andrew-d
null
Made your changes - thanks for the suggestions. Some benchmarks indicate that the queue is faster as a result, too.
null
0
1317012368
False
0
c2mlx24
t3_krd8f
null
t1_c2mlx24
t1_c2ml1ka
null
1427647429
2
t5_2fwo
null
null
null
True
The_Count_Of_Tuscany
null
If you're using gcc, the '-Wnon-virtual-dtor' option is quite useful (it warns if you have a class with virtual functions but without a virtual destructor)
null
0
1317012371
False
0
c2mlx2p
t3_krd8f
null
t1_c2mlx2p
t1_c2ml30d
null
1427647429
2
t5_2fwo
null
null
null
True
toastydoc
null
Thank you
null
0
1317012409
False
0
c2mlx7m
t3_kqucu
null
t1_c2mlx7m
t3_kqucu
null
1427647432
1
t5_2fwo
null
null
null
True
stesch
null
BTW: Writing `λ` instead of `lambda` doesn't look like a good idea.
null
0
1317012746
False
0
c2mlylh
t3_kri4f
null
t1_c2mlylh
t3_kri4f
null
1428192761
1
t5_2fwo
null
null
null
True
andrew-d
null
Good tip, thanks. I'm actually writing this on a Windows machine, and I don't think that Visual Studio has a similar option, sadly. Will keep that in mind when testing on Linux, though.
null
0
1317012795
False
0
c2mlytc
t3_krd8f
null
t1_c2mlytc
t1_c2mlx2p
null
1427647453
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317013026
False
0
c2mlzq1
t3_klrrx
null
t1_c2mlzq1
t1_c2lj1j6
null
1427647473
1
t5_2fwo
null
null
null
True
JustToUpvoteYou
null
Thanks! Will do.
null
0
1317013107
False
0
c2mm02d
t3_kqqd5
null
t1_c2mm02d
t1_c2mkvsf
null
1427647473
1
t5_2fwo
null
null
null
True
mrpappy
null
If you enrol your get assignments, so you can challenge what you learn.
null
0
1317013133
False
0
c2mm06s
t3_kqucu
null
t1_c2mm06s
t1_c2mkmv2
null
1427647473
2
t5_2fwo
null
null
null
True
deafbybeheading
null
Not really. Legit would be allowing you to register Bobby without dropping the `students` table.
null
0
1317013149
False
0
c2mm09c
t3_kqucu
null
t1_c2mm09c
t1_c2mkqwt
null
1427647476
17
t5_2fwo
null
null
null
True
genpfault
null
> Including Modern Warfare 2. [Huh?](http://en.wikipedia.org/wiki/Id_Tech_4#List)
null
0
1317013271
False
0
c2mm0r7
t3_klrrx
null
t1_c2mm0r7
t1_c2lsfac
null
1427647482
1
t5_2fwo
null
null
null
True
diademoran
null
The topic itself may be more popular. That doesn't mean the platform is.
null
0
1317014021
False
0
c2mm3rt
t3_kkp4z
null
t1_c2mm3rt
t1_c2l51n4
null
1427647518
1
t5_2fwo
null
null
null
True
fosskers
null
[Like this.](http://calibre-ebook.com/)
null
0
1317014715
False
0
c2mm6jq
t3_kqixo
null
t1_c2mm6jq
t1_c2meb2w
null
1427647552
2
t5_2fwo
null
null
null
True
fosskers
null
You get all the upvotes I can give. This went on my kindle faster than those neutrinos.
null
0
1317014783
False
0
c2mm6sw
t3_kqixo
null
t1_c2mm6sw
t3_kqixo
null
1427647555
2
t5_2fwo
null
null
null
True
pistacchio
null
let me clarify. i know enough about databases having used them for years and i'm well aware that in a serious environment data is probably the most important thing. i think part of the problem is sql. i find it ugly. when i first learnt about it, ten years ago, i had done a bunch of procedural programming, was exposed to functional programming via lisp and was into oop, but my first reaction was a plain "what is this?!". and today it is the same. i find it "loose". it seems composed by various parts (schema definition vs procedure writing, vs querying) that don't seem to work together harmonically. if i recall correctly, it was not created for programmers but for business people in order to make *them* access data. as a programmer maybe i suffer for expecting sql to be like any other programming language. on the other hand, when someone has laid out the database for me, today i find it extremely interesting to query and manipulate it via *linq* and i generally love to lay down the classes that are going to solve a problem, so i really think the problem is sql and the fact that i keep feeling the data layer "away" from the rest of the program. especially when working for small/experimental/pet projects, you start without knowing all the ins and outs of the program and the creative process is a big part of the fun. databases have their essential function in preserving data integrity, but when developing I want to change my mind once a minute without it complaining that no, I can't make this field not nullable because there are null values, no, I can't shrink that field to 20 chars because there is data that is 30 char long and no, I can't alter that because of a constrain that I myself defined. I'm well aware that it MUST work this way, but as a developer I just feel it as annoying. Sometimes it is just faster to drop it all and start from scratch, like if when I have to change the return type of a method from int to bool I would have to delete the class file and start coding it from the start! in serious projects, i tend to stay away as much as possible from the db layer, for personal toy projects i just throw in sqlalchemy or the like and hope that it does well its job managing the db for! :P
null
0
1317014814
True
0
c2mm6xd
t3_kqucu
null
t1_c2mm6xd
t1_c2mhhbm
null
1427647556
2
t5_2fwo
null
null
null
True
gfixler
null
I'm always nice to everyone just because.
null
0
1317015185
False
0
c2mm8c2
t3_kqucu
null
t1_c2mm8c2
t1_c2mkz22
null
1427647575
8
t5_2fwo
null
null
null
True
jmdavis
null
It's a very subjective thing. You will _easily_ find experienced programmers who favor putting braces on their own line. You will also quite easily find experienced programmers who favor putting brances on the same line as other code. You will easily find experienced programmers who favor having blank lines in their code, and you will easily find experienced programmers who much prefer to keep the number of blank lines to a minimum. It is _completely_ subjective. There is no right or wrong in the matter. It's a matter of style. One programmer may find that a particular style works well for them whereas another may hate that style and find that a very different style works quite well for them. IRQBreaker is quite right in thinking that putting the braces on a separate line works well for him, whereas you're quite right in thinking that it doesn't work for you. It's a matter preference. Now, I _will_ agree that putting a lot of redundant comments in code is the sign of a novice programmer, and you will probably have an easy time finding a programming book which lists that as a bad thing to do. But code formatting is a matter of preference and is quite subjective. It is _not_ the sign of a novice programmer when someone chooses to use a different formatting style than you do.
null
0
1317015219
False
0
c2mm8gq
t3_kooiy
null
t1_c2mm8gq
t1_c2mj8oh
null
1427647576
3
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317015367
False
0
c2mm91i
t3_kqqd5
null
t1_c2mm91i
t3_kqqd5
null
1427647584
1
t5_2fwo
null
null
null
True
grandzooby
null
If you do well in the course, you could probably use it as evidence that you have competency in the subject and may be able to skip prerequisites or test-out of some classes.
null
0
1317016027
False
0
c2mmbns
t3_kqucu
null
t1_c2mmbns
t1_c2mj9i3
null
1427647622
1
t5_2fwo
null
null
null
True
ex_ample
null
So what? You can make a dedicate USB chip if you want too
null
0
1317016121
False
0
c2mmc1d
t3_kp1b5
null
t1_c2mmc1d
t1_c2ml34f
null
1427647629
0
t5_2fwo
null
null
null
True
[deleted]
null
Ugh, probably a silly question, but what makes this header-only?
null
0
1317016312
False
0
c2mmcqi
t3_krd8f
null
t1_c2mmcqi
t3_krd8f
null
1427647638
1
t5_2fwo
null
null
null
True
antrn11
null
clang_complete is pretty awesome.
null
0
1317016448
False
0
c2mmd7n
t3_kr2x5
null
t1_c2mmd7n
t3_kr2x5
null
1427647642
5
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317016611
False
0
c2mmdt1
t3_kqucu
null
t1_c2mmdt1
t1_c2mjnwh
null
1427647648
3
t5_2fwo
null
null
null
True
zck
null
Most people who use Vim won't be happy with notepad++, as it doesn't have the same level of power that Vim does. It's like saying "oh, you want to repaint your Ferrari? Try this Prius." A Prius is a fine car, for what it is, but if someone is driving a Ferrari, a Prius won't cut it.
null
0
1317016916
False
0
c2mmeuz
t3_kravz
null
t1_c2mmeuz
t1_c2mlkt4
null
1427647661
9
t5_2fwo
null
null
null
True
SoCalDan
null
When you say waste a slot, what do you mean? Are there more courses and therefore a limit to how many we can take at a time?
null
0
1317017057
False
0
c2mmfdw
t3_kqucu
null
t1_c2mmfdw
t1_c2ml3an
null
1427647671
1
t5_2fwo
null
null
null
True
dnew
null
That's why people strive for modularity. Code you don't have to write doesn't cause bugs.
null
0
1317017273
False
0
c2mmg5e
t3_krklz
null
t1_c2mmg5e
t3_krklz
null
1427647678
5
t5_2fwo
null
null
null
True
[deleted]
null
Can anyone recommend a free online db intro book in lieu of using one of the recommended books? The recommended books are ~$100.
null
0
1317017337
False
0
c2mmgd6
t3_kqucu
null
t1_c2mmgd6
t3_kqucu
null
1427647691
2
t5_2fwo
null
null
null
True
dnew
null
Or you can look at Qt, which has its own compiler to support run-time reflection type stuff.
null
0
1317017480
False
0
c2mmgva
t3_kqtat
null
t1_c2mmgva
t1_c2mhc2c
null
1427647690
1
t5_2fwo
null
null
null
True
mhd420
null
I like to think the title of this submission is a deliberate troll for grammar nazis.
null
0
1317017521
False
0
c2mmh0d
t3_krkg3
null
t1_c2mmh0d
t3_krkg3
null
1427647692
3
t5_2fwo
null
null
null
True
guymean
null
http://msdn.microsoft.com/en-us/library/wzxffy8c(v=vs.80).aspx
null
0
1317017602
False
0
c2mmhao
t3_krd8f
null
t1_c2mmhao
t1_c2mlytc
null
1427647695
5
t5_2fwo
null
null
null
True
KayRice
null
HHHHOOORRRIIBBBLLLLLEEEEEEEE
null
0
1317017602
False
0
c2mmhap
t3_kr0ir
null
t1_c2mmhap
t3_kr0ir
null
1427647695
3
t5_2fwo
null
null
null
True
Iggyhopper
null
What's with the hard-to-read gray text? Is black on white too mainstream?
null
0
1317018407
False
0
c2mmjzv
t3_krklz
null
t1_c2mmjzv
t3_krklz
null
1428192754
11
t5_2fwo
null
null
null
True
brbATF
null
larger programs have more bugs... this is news?
null
0
1317018459
False
0
c2mmk64
t3_krklz
null
t1_c2mmk64
t3_krklz
null
1427647731
16
t5_2fwo
null
null
null
True
tripex
null
"sorry, this has been archived and can no longer be voted on" :(
null
0
1317018670
False
0
c2mmkve
t3_krl8m
null
t1_c2mmkve
t3_krl8m
null
1427647747
0
t5_2fwo
null
null
null
True
stesch
null
They changed the test so that all current browsers pass.
null
0
1317018736
False
0
c2mml3l
t3_krl8m
null
t1_c2mml3l
t3_krl8m
null
1427647743
1
t5_2fwo
null
null
null
True
krzyk
null
IntelliJ IDEA had that since february (10.5 release)
null
0
1317019217
False
0
c2mmmjv
t3_kq0ms
null
t1_c2mmmjv
t1_c2mbcp2
null
1427647764
1
t5_2fwo
null
null
null
True
Xarnon
null
Sounds like an anti-Clojure book.
null
0
1317019246
False
0
c2mmmnb
t3_kpk8d
null
t1_c2mmmnb
t1_c2m61bc
null
1427647766
0
t5_2fwo
null
null
null
True
stealth210
null
He means he doesn't want to take the opportunity away from someone else if there are a finite amount of spots available.
null
0
1317019575
False
0
c2mmnla
t3_kqucu
null
t1_c2mmnla
t1_c2mmfdw
null
1427647777
3
t5_2fwo
null
null
null
True
AlyoshaV
null
I like some pretty obscure colors.
null
0
1317019608
False
0
c2mmnoo
t3_krklz
null
t1_c2mmnoo
t1_c2mmjzv
null
1427647779
4
t5_2fwo
null
null
null
True
shifty3
null
**hurr IMA BROWSARRRR** Sorry.
null
0
1317019817
False
0
c2mmo9g
t3_krl8m
null
t1_c2mmo9g
t3_krl8m
null
1427647797
1
t5_2fwo
null
null
null
True
username010101
null
I think the author is conveying that passion = work ethic. If a person loves what they do, then they will care about the quality of their work. I have worked with developers who work the minimum amount of time that they can get away with and then go home. The author seems to be looking for the developers who hate to leave a problem unsolved, who have that desire to create and engineer solutions. A company who puts passion in their job description leads me to believe that they have a happy work environment made up of a team that has each other's back and loves what they do.
null
0
1317020110
False
0
c2mmp4e
t3_korcu
null
t1_c2mmp4e
t1_c2m0j28
null
1427647808
3
t5_2fwo
null
null
null
True
Gr8tractsoland
null
Thank you for this!
null
0
1317020303
False
0
c2mmpob
t3_kqucu
null
t1_c2mmpob
t3_kqucu
null
1427647814
1
t5_2fwo
null
null
null
True
pingish
null
I don't get why Apple would have a Eat() method. Why wouldn't it be Sam.Eat(Apple) ? Just me. I don't get it.
null
0
1317020504
False
0
c2mmq9q
t3_kr0ir
null
t1_c2mmq9q
t3_kr0ir
null
1427647821
3
t5_2fwo
null
null
null
True
Not_Edward_Bernays
null
Its not completely resolved. They left the default below a gig or something. It might be ok for node, but I have a browser application that would be happy to use 2 gigs. Plenty of people have 8 gigs of RAM, and Sears is selling a PC with 16GB of RAM starting at $800. I want to use the browser as my platform, and I almost can for almost everything, except cases such as where there are numbers like this hardcoded in that were fine two years ago but now are restrictive and I can't change.
null
0
1317020882
False
0
c2mmrba
t3_kq27q
null
t1_c2mmrba
t3_kq27q
null
1427647832
3
t5_2fwo
null
null
null
True
tiftik
null
You just need to have it installed and the plugin (clang_complete) will do the analysis/compilation. Use it with supertab and it will be perfect. It's actually better than any IDE I've used so far.
null
0
1317021002
False
0
c2mmrnf
t3_kr2x5
null
t1_c2mmrnf
t1_c2mlidr
null
1427647834
2
t5_2fwo
null
null
null
True
tiftik
null
Apparently you've never used Vim.
null
0
1317021109
False
0
c2mmrx8
t3_kr2x5
null
t1_c2mmrx8
t1_c2mirr6
null
1427647836
8
t5_2fwo
null
null
null
True
pezezin
null
I'm spanish, and I have always read "clojure" with a French accent. It just sounds so much better...
null
0
1317021135
False
0
c2mmrzq
t3_kpk8d
null
t1_c2mmrzq
t1_c2m5ri6
null
1427647836
2
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317021601
False
0
c2mmt7v
t3_krklz
null
t1_c2mmt7v
t1_c2mmnoo
null
1427647849
9
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317021652
False
0
c2mmtch
t3_krklz
null
t1_c2mmtch
t1_c2mmnoo
null
1427647851
0
t5_2fwo
null
null
null
True
SquashMonster
null
Obviousness aside, a metric is only useful if you can use it to determine policy. I can see several problems with the low-size metric, but it sounds like it would be enjoyable to work at a company with this policy, so I would rather it work. Since many of you probably agree, let's figure out how to fix those problems so this metric can be used intelligently. **Some changes in code affect size without affecting actual complexity** You do not want to reward people for using short variable names, or for declaring multiple variables in a line, or for using the ++ operator inline with other functions, or for putting the ternary operator places it doesn't belong. There are lots of ways to make a program shorter without helping anything. I think you could do a lot to decrease fluctuations like this by measuring compressed, compiled code size. **Code size is meaningless without comparables** If I write a 1000-line long Hello World program that's awful (impressively awful). If I write a 1000-line long C++ compiler, that's fantastic. How do you determine whether a given size is particularly small for a given program? It's unlikely that your program does exactly the same thing as another program (if it does, why did you make it?), so what do you measure that against? You can measure a program against past versions of itself, but if people writing the first version know about this it can be gamed. **Offloading functions to external libraries can hide complexity** If I find five huge overkill middleware libraries and can piece together my code through portions of those, the plumbing code I need to pipe everything around could be extremely small. Is the bug-count proportionate to my code, or to the total size of the libraries, or the size of the portions of the libraries I'm using? If it's that last one, how do we measure that?
null
0
1317021871
False
0
c2mmtvy
t3_krklz
null
t1_c2mmtvy
t3_krklz
null
1427647860
96
t5_2fwo
null
null
null
True
adrianmonk
null
The real news is that previous studies failed to account for class size, and when you do, those studies' data apparently no longer supports their conclusions. Also, we really need to carefully distinguish between larger *programs* and larger *classes*. The paper that the blogger quotes makes assertions about *class* size, not size of the total program. The implication is that a 100,000-line codebase with 100 classes probably has more bugs than a 100,000-line codebase with 1000 classes.
null
0
1317022083
False
0
c2mmuef
t3_krklz
null
t1_c2mmuef
t1_c2mmk64
null
1427647869
40
t5_2fwo
null
null
null
True
AlyoshaV
null
The vast majority of vim users are just switching to insert mode, typing for a while, then ZZ.
null
0
1317022152
False
0
c2mmukm
t3_kravz
null
t1_c2mmukm
t1_c2mmeuz
null
1427647869
-7
t5_2fwo
null
null
null
True
MagicBobert
null
Looks neat! Thanks for sharing! I wish it didn't use Boost, though. :)
null
0
1317022709
False
0
c2mmvvw
t3_krd8f
null
t1_c2mmvvw
t3_krd8f
null
1427647884
1
t5_2fwo
null
null
null
True
coriolis1987
null
We agree here, that's what I said. You are a good-natured, tolerant and sane person!
null
0
1317022918
False
0
c2mmwdi
t3_kq001
null
t1_c2mmwdi
t1_c2mg3cf
null
1427647901
1
t5_2fwo
null
null
null
True
JL235
null
Instead other people's code causes bugs, which is harder to debug and more effort to get fixed.
null
0
1317023223
False
0
c2mmx1l
t3_krklz
null
t1_c2mmx1l
t1_c2mmg5e
null
1427647905
17
t5_2fwo
null
null
null
True
Magnesus
null
Because a large amount of the 100,000 code with 1000 classes would be made of declarations in which there are rarely any bugs (and are also autocorrected by IDEs). The actual code would be shorter.
null
0
1317023291
False
0
c2mmx6n
t3_krklz
null
t1_c2mmx6n
t1_c2mmuef
null
1427647907
8
t5_2fwo
null
null
null
True
exclipy
null
It's even more awesome when you realize it's not for code completion, but for compile-testing a single file. I no longer have to go through the slow "make" cycle when I'm just working getting a file compiled, nor do I have to hunt through the big wall of junk that g++ spits out. I now just press F9 (the key I've bound it to) and it quickly gives me a clickable quickfix list, complete with red squiggly underlines in the source file.
null
0
1317023389
False
0
c2mmxej
t3_kr2x5
null
t1_c2mmxej
t1_c2mmd7n
null
1428192745
4
t5_2fwo
null
null
null
True
Magnesus
null
Probably the number of bugs per line is almost constant - so the shorter your code, the less bugs it has.
null
0
1317023414
False
0
c2mmxgo
t3_krklz
null
t1_c2mmxgo
t1_c2mmtvy
null
1428192746
3
t5_2fwo
null
null
null
True
Magnesus
null
I like #ffffff08 - i love transparency.
null
0
1317023451
False
0
c2mmxjl
t3_krklz
null
t1_c2mmxjl
t1_c2mmt7v
null
1427647913
10
t5_2fwo
null
null
null
True
sporkexec
null
And nothing has changed in the world of Microsoft.
null
0
1317023459
False
0
c2mmxk7
t3_krl8m
null
t1_c2mmxk7
t3_krl8m
null
1427647915
0
t5_2fwo
null
null
null
True
sod1864
null
> a metric is only useful if you can use it to determine policy. Any metric that is part of your work policy, engineers will work towards hitting the metric and not for the reason the metric was put there in the first place.
null
0
1317023802
False
0
c2mmyac
t3_krklz
null
t1_c2mmyac
t1_c2mmtvy
null
1427647922
60
t5_2fwo
null
null
null
True
adrianmonk
null
Yes, that's a good point, and it probably accounts for part of the effect, or maybe all of it. Interestingly, if it accounts for all the effect, then it seems to mean we don't know of *any* code-quality metrics that correlate with likelihood of bugs, because length of class was the only one. I haven't read the paper, but presumably you could do some kind of metric that involves only counting lines of code in method bodies and a few other special places. That way, simple setters, getters, constructors, `#include`/`import` statements, etc. wouldn't be throwing off the numbers.
null
0
1317024206
False
0
c2mmz6b
t3_krklz
null
t1_c2mmz6b
t1_c2mmx6n
null
1427647932
5
t5_2fwo
null
null
null
True
Chubacca
null
Honestly, in my opinion this class is one of the more useless classes that I ever took in the CS department. It's one of those classes you learn the material much better with hands-on experience than from a lecture and book, and having a professor there doesn't really help you out (and she doesn't really help you out in office hours anyways). I guess it's free, but I definitely think there are much better ways to use your time.
null
0
1317024359
False
0
c2mmzhy
t3_kqucu
null
t1_c2mmzhy
t3_kqucu
null
1427647936
0
t5_2fwo
null
null
null
True
le_kommie
null
So lets have classes with one method each, that will get us round the "large classes" problem right? But hey! Isn't it what closures and lambdas do? And isn't it then all about "lets do less OO and more functional"?
null
0
1317024458
False
0
c2mmzp2
t3_krklz
null
t1_c2mmzp2
t1_c2mmuef
null
1427647938
1
t5_2fwo
null
null
null
True
xcbsmith
null
I think you are focusing on low level optimizations for size, rather than high level ones. Like, instead of writing 1000-lines of code, maybe you can write something in 50 that covers the same ground, but uses a different paradigm/abstraction/whatever. *That* will likely have fewer bugs.
null
0
1317024697
False
0
c2mn06z
t3_krklz
null
t1_c2mn06z
t1_c2mmtvy
null
1427647943
10
t5_2fwo
null
null
null
True
elmuerte
null
That's my view on code metrics is: use with extreme caution. I think the worst code metric available is (effective) lines of code, when with fixed to use number of statements its a terrible metric. You can reduce lines of code easily by removing "useless" code like input validation/sanitation. Because why would you pass a null value as argument, right? Code metrics should only be used to improve readability of code. And then I'm thinking about metrics like: method size, scope depth, number or arguments, cyclomatic complexity, ...
null
0
1317024866
False
0
c2mn0ji
t3_krklz
null
t1_c2mn0ji
t1_c2mmyac
null
1427647958
12
t5_2fwo
null
null
null
True
qvae_train
null
lol @ the downvotes you are receiving. itt: vim fanboys. vim is a great tool, but I think IDEs are so powerful these days that using vim to code is probably not the best decision (personal preferences obviously).
null
0
1317024915
False
0
c2mn0me
t3_kravz
null
t1_c2mn0me
t1_c2mkmww
null
1427647948
-3
t5_2fwo
null
null
null