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
king_of_the_universe
null
> First off, let me make a statement: I probably understand evolution much more than you would like to admit. As far as I know by now, you have no fucking idea what you're talking about. You say that someone has to program the evolution trainer so that evolution can take place in a meaningful way, and this proves that your mind has about the size of a pea, but you scream out as if you had 3 PhDs. This situation here, kid, is a classical Dunning-Kruger. > Fact I: You don't know there is a Creator or not. I know whether or not there is a Creator: I am the Creator. You are talking to God here, kid. Evolution was not a guided process. Science does not know all rules about the flow of the cause&effect ocean yet, but the beings were created by the process of evolution as properly explained by the rules that science *does* know. The logical sum of the universe is what "guided" evolution, meaning that it's in principle entirely decipherable by science, it is *logical*.
null
0
1317387946
False
0
c2nrluz
t3_kucjn
null
t1_c2nrluz
t1_c2nkqd4
null
1427667535
2
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317388086
False
0
c2nrmag
t3_kvpld
null
t1_c2nrmag
t1_c2no1n7
null
1427667546
2
t5_2fwo
null
null
null
True
jinglebells
null
Dude, I've got an i5 quad core 3.33GHz with 10GB ram (fairly average desktop) and it grinds my IDE. I've no idea how my colleagues cope. Oh, they don't they had to uninstall it cos it made their machines unusable.
null
0
1317388147
False
0
c2nrmgv
t3_kvo92
null
t1_c2nrmgv
t1_c2npztt
null
1427667543
2
t5_2fwo
null
null
null
True
jinglebells
null
Sounds like some developer needs to learn about separating functionality into separate projects and referencing them.
null
0
1317388248
False
0
c2nrmsa
t3_kvo92
null
t1_c2nrmsa
t1_c2nqup7
null
1427667547
1
t5_2fwo
null
null
null
True
fjonk
null
No. The arrow keys scroll the page, I've tried it in fullscreen but that doesn't help. Guess I won't be reading it.
null
0
1317388264
False
0
c2nrmui
t3_kvtrp
null
t1_c2nrmui
t1_c2nrlmh
null
1427667549
0
t5_2fwo
null
null
null
True
aznblur
null
Vimperator is dead (apparently), use the fork pentadactyl. That being said, there should be passthrough mode? :help pass-through (at least it is in pentadactyl) which is <C-v> (enables pass through for the next sequence), and <C-z> enables pass through until you hit <Esc>.
null
0
1317388275
False
0
c2nrmvs
t3_kvtrp
null
t1_c2nrmvs
t1_c2nrl8y
null
1427667549
6
t5_2fwo
null
null
null
True
dakboy
null
I had a project manager who acted like that. He wanted and up-front estimate on the lines of code that would make up the app I was writing for him, and gauged progress not on the # of features implemented & # of requirements completed, but how many lines of code I'd written vs. my projection. He got really pissed when, for the first 2 weeks of the project, I hadn't written any more than a UI prototype. Because instead of throwing code together, I was actually planning what kind of structure I needed to get it done. Funny thing - once I was done with that, the code gelled very quickly. He couldn't comprehend planning before doing. Putting his MBA to good use, that one was.
null
0
1317388322
False
0
c2nrn1f
t3_kvo92
null
t1_c2nrn1f
t1_c2nnw6g
null
1427667550
7
t5_2fwo
null
null
null
True
DarkSyzygy
null
I personally dislike the block of using statements and prefer fully qualified names in the code. For a shorter program like this it isn't really a big deal, but as the project gets larger it can be a pain to remember which namespaces you are using for specific functions. However, that's just my personal opinion, there is nothing techncially incorrect with a "using" statement
null
0
1317388384
False
0
c2nrn8v
t3_kwe09
null
t1_c2nrn8v
t3_kwe09
null
1427667553
4
t5_2fwo
null
null
null
True
dakboy
null
I presently have an application with about 1500 lines *in one method*. Unfortunately, we don't have to touch that chunk of code very frequently, so justifying a rewrite or refactoring is very hard. If I find myself in a position where I have to add to it, I do the bare minimum in that method & factor the actual work out into one or more other methods.
null
0
1317388494
False
0
c2nrnl7
t3_kvo92
null
t1_c2nrnl7
t1_c2nquf0
null
1427667557
4
t5_2fwo
null
null
null
True
seifermaster
null
It's pretty good, but I still like [RenownedNotepad](http://www.renownedmedia.com/examples/RenownedNotepad.xml) better.
null
0
1317388498
False
0
c2nrnlq
t3_kvpld
null
t1_c2nrnlq
t3_kvpld
null
1427667558
0
t5_2fwo
null
null
null
True
acmecorps
null
Hmm, unless I'm mistaken, formats rarely changes for each editors. Or am I wrong?
null
0
1317388504
False
0
c2nrnmo
t3_kvpld
null
t1_c2nrnmo
t1_c2nrfax
null
1427667558
2
t5_2fwo
null
null
null
True
NruJaC
null
Linear algebra is arcane now? Graphics isn't mathematically hard, in the way language design or computer vision are. You have so matrix stacks and you need to keep them straight. Pretty sure if you understand the concept of multiplying two matrices, that's about all the math you need. But that's not to say graphics is easy. It's damn hard, but that's a visualization problem. You have to keep track of where things draw and how they draw in your head as you stack the appropriate matrices. And for those of us who aren't so hot at drawing things to begin with, that comes off as plain tedious (because when you can't visualize the process, you just try things until they work). For the particular case of the maze, it's not incredibly difficult to draw. Once you work out how to draw it, looking straight at it, its just a matter of transforming it to whatever orientation is necessary (a matrix operation). TL;DR: Matrices aren't hard.
null
0
1317388629
False
0
c2nro11
t3_kvtrp
null
t1_c2nro11
t1_c2nr9w4
null
1427667562
1
t5_2fwo
null
null
null
True
DarkSyzygy
null
Also it is generally considered good c++ style to put your declaration of class FileIO { }; inside a separate header file such as FileIO.h Again this isn't a big deal for small projects and programs but it is a good habit for when you move on to something larger.
null
0
1317388648
False
0
c2nro3a
t3_kwe09
null
t1_c2nro3a
t1_c2nrn8v
null
1427667563
0
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317388691
False
0
c2nro8c
t3_kwe09
null
t1_c2nro8c
t3_kwe09
null
1427667565
2
t5_2fwo
null
null
null
True
sanity
null
Does it still have that horribly convoluted data model? If so, I'll stick with MongoDB.
null
0
1317388732
False
0
c2nrod0
t3_kw8gv
null
t1_c2nrod0
t3_kw8gv
null
1427667566
-1
t5_2fwo
null
null
null
True
skulgnome
null
Last time I tried, Pentadactyl was terrible. Recent Vimperator seems quite up to date.
null
0
1317388808
False
0
c2nrolz
t3_kvtrp
null
t1_c2nrolz
t1_c2nrmvs
null
1427667570
0
t5_2fwo
null
null
null
True
Duncans_pumpkin
null
You might want to implement something like this in there to prevent cin cocking up. http://latedev.wordpress.com/2011/09/13/simple-input-bullet-proofing-in-c/ Also what is with this part class FileIO{//blah blah }; map<string,string> FileIO::file; string FileIO::nameOfTheFile; That doesnt need to be there. Personally I would also not make one class do the full thing. Why is a FileIO class displaying to the user anything surely it should just do File Input and Output. I havent tested it but what happens if the string in splitstring on character does not contain the splitting character. There should definatily be a bit more error checking.
null
0
1317388813
True
0
c2nrom9
t3_kwe09
null
t1_c2nrom9
t3_kwe09
null
1427667570
6
t5_2fwo
null
null
null
True
Ireon85
null
There is no such thing as a clear-cut distinction between "Play" and "Exercise". If you take sports, for example, one of the best ways to get fit (exercise) is to find something you love doing, be it soccer, hockey of rock-climbing. As a personal example, I learned English almost entirely through "Play": reading books in English. I could possibly have learned faster with a specific routine and "hard work", but at the same time, I may have lost all motivation to go forward. The people that become *really* good at something do both: they work really hard at something they love.
null
0
1317388860
False
0
c2nrorl
t3_kvtrp
null
t1_c2nrorl
t3_kvtrp
null
1427667573
23
t5_2fwo
null
null
null
True
Philluminati
null
Guilted me into watching a slide show that wasn't that interesting. I could have been teaching myself x86 Assembly and really flexing my muscles.
null
0
1317389019
False
0
c2nrpbb
t3_kvtrp
null
t1_c2nrpbb
t3_kvtrp
null
1427667580
-1
t5_2fwo
null
null
null
True
scallion
null
I think you mean the Camomile project. http://camomile.sourceforge.net/
null
0
1317389030
False
0
c2nrpcc
t3_kuhn3
null
t1_c2nrpcc
t1_c2nhhwi
null
1427667580
3
t5_2fwo
null
null
null
True
kristovaher
null
I have added a direct link to XML file to those who have trouble extracting from *.rar archives.
null
0
1317389144
False
0
c2nrpqk
t3_kvpld
null
t1_c2nrpqk
t3_kvpld
null
1427667586
1
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317389156
False
0
c2nrps3
t3_kvo92
null
t1_c2nrps3
t1_c2nqu5g
null
1427667596
-1
t5_2fwo
null
null
null
True
sgoguen
null
> Sorry couldn't help but nitpick :D No problem. If I may nitpick in return, it's only a group operation if we're talking about integers, it's a monoid if we're talking about natural numbers.
null
0
1317389157
False
0
c2nrps9
t3_kv4xx
null
t1_c2nrps9
t1_c2nq44b
null
1427667596
2
t5_2fwo
null
null
null
True
kristovaher
null
I have added a direct link to XML file to those who have trouble extracting from *.rar archives.
null
0
1317389159
False
0
c2nrpsn
t3_kvpld
null
t1_c2nrpsn
t1_c2no1dp
null
1427667596
1
t5_2fwo
null
null
null
True
ErroneousBee
null
The quick answer is no. Using QTP doesn't give any benefits either.
null
0
1317389184
False
0
c2nrpw2
t3_kwdlw
null
t1_c2nrpw2
t3_kwdlw
null
1427667594
3
t5_2fwo
null
null
null
True
adad95
null
Studio Styles - Visual Studio color schemes - http://studiostyl.es/
null
0
1317389200
False
0
c2nrpxv
t3_kvpld
null
t1_c2nrpxv
t3_kvpld
null
1427667588
2
t5_2fwo
null
null
null
True
NruJaC
null
Then click back and move on with your life.
null
0
1317389260
False
0
c2nrq5j
t3_kv4xx
null
t1_c2nrq5j
t1_c2nlqql
null
1427667592
0
t5_2fwo
null
null
null
True
djork
null
Sometimes programmers can be real jerks. Especially the best ones.
null
0
1317389285
False
0
c2nrq8i
t3_kvo92
null
t1_c2nrq8i
t1_c2nodi3
null
1427667594
3
t5_2fwo
null
null
null
True
tboneplayer
null
Is this even in the right subreddit?
null
0
1317389446
False
0
c2nrqu2
t3_kwdlw
null
t1_c2nrqu2
t3_kwdlw
null
1427667599
2
t5_2fwo
null
null
null
True
AeroNotix
null
If they do you'll still need to perform maintainance. Also, say you support 10 different programs. How many 'conversion' functions are you going to need? 10 back and forth scripts are going to need 90 separate scripts. Do you want to write that? O(n) vs O(1)
null
0
1317389456
True
0
c2nrqv9
t3_kvpld
null
t1_c2nrqv9
t1_c2nrnmo
null
1427667600
2
t5_2fwo
null
null
null
True
snarkhunter
null
I notice a number of things i would change. The one that really jumps out at me - why are there static variables in FileIO? Is there a good reason for them to be static?
null
0
1317389473
False
0
c2nrqy1
t3_kwe09
null
t1_c2nrqy1
t3_kwe09
null
1427667601
1
t5_2fwo
null
null
null
True
fabzter
null
There should be punctuation marks for these kind of things.
null
0
1317389612
False
0
c2nrrgp
t3_ku81g
null
t1_c2nrrgp
t1_c2nl7gq
null
1427667608
1
t5_2fwo
null
null
null
True
nick_carraway
null
Thanks for definitive answer and links!
null
0
1317389680
False
0
c2nrrnn
t3_kuxxa
null
t1_c2nrrnn
t1_c2nqbi0
null
1427667610
1
t5_2fwo
null
null
null
True
joequin
null
only a programmer would make a web site that requires arrow keys to function. I can't even read it on my phone.
null
0
1317389696
False
0
c2nrrql
t3_kvtrp
null
t1_c2nrrql
t3_kvtrp
null
1427667611
5
t5_2fwo
null
null
null
True
The-Librarian
null
Just skimmed quickly and I see several issues/questions: - Why do you use a static variable for the name of the file? - FileIO is not actually FileIO since it's doing several things. For instance "searchFile" is a lie, it actually searches a map (and there are easier ways to do it, for instance file[search]). The variable "file" is actually a std::map which is confusing. You see the pattern: you need to improve your naming of things. Names are important. There are other design issues which do not matter much for such a small program but are not generally good practice. - You also need to improve your control flow skill. Too much unneeded "continues" and use of uncommon looping patterns. Try to avoid unconventional control flow. While sometimes it's the best option, many times it's just confusing. - Depending on the compiler, it's possible to actually blow your stack since (if I have analyzed the control flow correctly), for instance, appMenu and searchFile are mutually recursive. On positives: - The code is "clean", consistently written and documented which is very important. - You generally avoid falling into thousands of nested if's or huge functions. tl;dr.: You need to improve on some issues but you seem on good track.
null
0
1317389733
False
0
c2nrruq
t3_kwe09
null
t1_c2nrruq
t3_kwe09
null
1427667613
3
t5_2fwo
null
null
null
True
fjonk
null
> Vimperator is dead (apparently), use the fork pentadactyl. Yeah, this is an old installation, can't be bothered to switch since vimperator works fine. > there should be passthrough mode Nope. I don't think the issue here is that vimperator might be a problem. A page with fancy stuff like this needs a fail-safe alternative in case it fails. Apparently I'm not the only one who had trouble with this slideshow.
null
0
1317389987
False
0
c2nrsry
t3_kvtrp
null
t1_c2nrsry
t1_c2nrmvs
null
1427667625
3
t5_2fwo
null
null
null
True
djork
null
HAH! That's weak. We have a *single* class, which is split across *two* files: `FooHandler.cs` and `FooHandler2.cs`. There's no logical distinction between the two; it's just that they decided the first file was getting a little big, at **8800 lines**. So, they put the **next 2700 lines** in the second file. That's **11500 lines**. In one class. Between two files. Seriously, whoever did that needs to be choked with a printout of their own code. The interface it implements is also split across two files.
null
0
1317389990
False
0
c2nrssa
t3_kvo92
null
t1_c2nrssa
t1_c2nquf0
null
1427667625
4
t5_2fwo
null
null
null
True
sgoguen
null
So does writing Java or Scala make one an Oracle guy? FYI, the F# compiler is open under the Apache license and you can always target Mono. http://tirania.org/blog/archive/2010/Nov-11.html
null
0
1317390062
False
0
c2nrt19
t3_kuhn3
null
t1_c2nrt19
t1_c2nl9t7
null
1427667628
4
t5_2fwo
null
null
null
True
benstiglitz
null
Apple does say you need to release the string passed back from the -…errorDescription: methods in NSPropertyListSerialization, but that is an exception to the regular rules. The methods returning an NSError by reference do not require the caller to release the NSError. See the [Error Handling Programming Guide](https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/ErrorHandlingCocoa/CreateCustomizeNSError/CreateCustomizeNSError.html#//apple_ref/doc/uid/TP40001806-CH204-BAJIIGCC): > If you create an NSError object with initWithDomain:code:userInfo:, you should send autorelease to it before you return it to the caller.
null
0
1317390132
False
0
c2nrta7
t3_krakt
null
t1_c2nrta7
t1_c2nmsrq
null
1427667631
10
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317390134
False
0
c2nrtac
t3_kw47b
null
t1_c2nrtac
t1_c2nrha0
null
1427667631
-4
t5_2fwo
null
null
null
True
DeathBySamson
null
Ha! Trying to get programmers to agree on one style of syntax formatting would be like convincing all programmers to use Emacs and only program in Java.
null
0
1317390249
False
0
c2nrtp2
t3_kvpld
null
t1_c2nrtp2
t1_c2nriv2
null
1427667637
2
t5_2fwo
null
null
null
True
rm999
null
Yeah, fair enough. I am the same way at work - the ambient light is really high, my monitor is bright, so I use a light, off-white on dark theme. I just wanted to point out that it's a huge fallacy that light on dark is somehow superior or better for your eyes, e.g. [Maddox's FAQ](http://www.thebestpageintheuniverse.net/c.cgi?u=faq) on the question sounds really convincing but is questionable.
null
0
1317390275
False
0
c2nrts0
t3_kvpld
null
t1_c2nrts0
t1_c2nq0ll
null
1427667639
2
t5_2fwo
null
null
null
True
eabrek
null
Yea, I actually appreciated the guide more for the humor. I've forgotten most of the Ruby I learned :) I'm a Tcl guy, which should probably make me older and grumpier than you ;)
null
0
1317390300
False
0
c2nrtv0
t3_ku2z1
null
t1_c2nrtv0
t1_c2nl1gn
null
1427667640
1
t5_2fwo
null
null
null
True
dbilenkin
null
It's not that bad. I'm probably making it sound worse than it is. But, this response is already more than I expected! Thank you for blogging about it! What's your site, so I can check it out?
null
0
1317390357
False
0
c2nru2b
t3_kucjn
null
t1_c2nru2b
t1_c2npbiq
null
1427667642
1
t5_2fwo
null
null
null
True
leoel
null
Actually, I was not talking about matrices only, you also need anti-aliazing methods and other algorithms that are taken for granted today. Also, even a matrix multiplication can lend to specific algorithms in order to be space and time efficient. Plus, the very idea of using similarities in graphical engines is not something that is trivial to come with, as it needed some real mathematical research first. So saying matrices are easy is being oblivious to what is the real difficulty here: off course once you know a solution it is easy, that's why it is called a solution; but to come with a new approach and new analogies over these problems is pretty damn hard.
null
0
1317390394
False
0
c2nru78
t3_kvtrp
null
t1_c2nru78
t1_c2nro11
null
1427667644
1
t5_2fwo
null
null
null
True
benstiglitz
null
Here’s the general implementation of a method that returns an error by reference: - (BOOL) someMethodMightSucceedOrCauseError:(NSError**)error { BOOL success = tryToDoSomething(); if (!success) { if (error) { *error = [NSError errorWithDomain:NSCocoaErrorDomain code:1234 userInfo:nil]; } } return success; } If you write this: NSError *error; BOOL success = [someObject someMethodMightSucceedOrCauseError:&error]; and then check the value of error without checking success, you may find that error has a random value from the stack, one that most likely doesn’t point to an NSError, when success is `YES`.
null
0
1317390403
False
0
c2nru8i
t3_krakt
null
t1_c2nru8i
t1_c2nmsrq
null
1427667645
8
t5_2fwo
null
null
null
True
aznblur
null
I never really used Vimperator much. What's so bad about Pentadactyl?
null
0
1317390421
False
0
c2nruar
t3_kvtrp
null
t1_c2nruar
t1_c2nrolz
null
1427667645
2
t5_2fwo
null
null
null
True
dbilenkin
null
Unfortunately, as of now, this is completely client side and thus hosted cheaply on amazon's s3. I do agree though, that this would be an awesome addition. Trying to think of the easiest way to do this without making an overly complicated back-end I have to pay too much to host.
null
0
1317390465
False
0
c2nrugy
t3_kucjn
null
t1_c2nrugy
t1_c2npg8a
null
1427667648
1
t5_2fwo
null
null
null
True
ethraax
null
This is really a must-read if you haven't read it already. I wish they taught this kind of stuff in my classes at university, but they don't.
null
0
1317390569
False
0
c2nruvb
t3_kwf95
null
t1_c2nruvb
t3_kwf95
null
1427667653
14
t5_2fwo
null
null
null
True
jamis
null
Try swiping.
null
0
1317390685
False
0
c2nrvag
t3_kvtrp
null
t1_c2nrvag
t1_c2nrrql
null
1427667658
4
t5_2fwo
null
null
null
True
nagaru
null
Can you give any info about the company itself, specifically how long have you been in business, how many users you have, the daily volume of transactions you handle. I am asking because I've seen plenty of companies come and go. Some of those disappear because lack of customers, and others because they have too many customers are not able to keep up with growth.
null
0
1317390760
False
0
c2nrvkt
t3_kvu8y
null
t1_c2nrvkt
t1_c2nnee1
null
1427667662
2
t5_2fwo
null
null
null
True
Ttl
null
I'm using the newest pentadactyl and arrow keys work if I enable pass through with <C-z>.
null
0
1317390779
False
0
c2nrvnf
t3_kvtrp
null
t1_c2nrvnf
t1_c2nrsry
null
1427667663
1
t5_2fwo
null
null
null
True
alexbarrett
null
I tried it and it seems to exit insert mode after pressing the arrow key, so to get to the next slide you have to press `i, right` each time. Alternatively you could make a bookmarklet [like this](http://i.imgur.com/cswZ9.png) and put it in your bookmark bar or something (make one for `prev` as well if you want to go backwards).
null
0
1317390792
False
0
c2nrvp1
t3_kvtrp
null
t1_c2nrvp1
t1_c2nrmui
null
1427667663
4
t5_2fwo
null
null
null
True
jamis
null
Thanks! The presentation was recorded by Confreaks, I believe it will be posted in the next few weeks.
null
0
1317390806
False
0
c2nrvr4
t3_kvtrp
null
t1_c2nrvr4
t1_c2npeaz
null
1427667665
3
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317390850
True
0
c2nrvx0
t3_kvo92
null
t1_c2nrvx0
t1_c2nlwdz
null
1427667670
-3
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317390853
False
0
c2nrvxe
t3_kvtrp
null
t1_c2nrvxe
t1_c2nrpbb
null
1427667670
2
t5_2fwo
null
null
null
True
joequin
null
It doesn't work.
null
0
1317390888
False
0
c2nrw2d
t3_kvtrp
null
t1_c2nrw2d
t1_c2nrvag
null
1427667668
1
t5_2fwo
null
null
null
True
jamis
null
The presentation was built on top of the deck.js framework. Aside from that, the maze animations are written in CoffeeScript (http://github.com/jamis/csmazes) and rendered to a canvas element. The illustrations themselves are hand-drawn on paper, inked, scanned, cropped, etc. (That was the most time-consuming part of the entire endeavor!)
null
0
1317390933
False
0
c2nrw95
t3_kvtrp
null
t1_c2nrw95
t1_c2no1py
null
1427667671
11
t5_2fwo
null
null
null
True
[deleted]
null
This looks pretty sweet. The last time I looked into JS testing tools, there weren't many great options.
null
0
1317391043
False
0
c2nrwol
t3_kvjcp
null
t1_c2nrwol
t3_kvjcp
null
1427667675
1
t5_2fwo
null
null
null
True
cheng81
null
Well, we have these kind of architectures already, haven't we? REST, SOA, client/server, pipes and filters, pub/sub and so on. At this level of abstraction, one doesn't really need to decide about a particular database, delivery mechanism, or a framework. But then, when you really want to make this architecture a little more concrete (and thus supporting your use cases), you will need to start to deal with these tedious "implementation details". And by the way, a framework is really that: they do impose a structure on your project. They are opinionated about how a certain class of problems should be solved. To be consistent with the architecture analogy, it would be like an architect having a predefined set of blueprints for building houses (or hospitals, or libraries..), that he can tunes based on certain parameters. Otherwise, the other kind of building-blocks at your disposal are libraries, which solves (or at least, they should) exactly one problem, leaving to you the freedom of choosing whatever other tools you can use. I suppose that in the architecture realm these would be equivalent to, well, lines representing walls, doors and all the other stuff --I'm not architect, and my knowledge about this domain falls pretty short :p
null
0
1317391057
False
0
c2nrwqu
t3_kwdsp
null
t1_c2nrwqu
t3_kwdsp
null
1427667676
3
t5_2fwo
null
null
null
True
[deleted]
null
Yeah, that would make it not so great for UI or integration tests, but it should be most useful for testing isolated subsets of your JS code.
null
0
1317391084
False
0
c2nrwv4
t3_kvjcp
null
t1_c2nrwv4
t1_c2nr3yz
null
1427667679
2
t5_2fwo
null
null
null
True
zelf0gale
null
Because internationalization of a product is not a small problem. Plenty of online services are only interested in the U.S. market.
null
0
1317391107
False
0
c2nrwye
t3_kvu8y
null
t1_c2nrwye
t1_c2nrekg
null
1427667680
5
t5_2fwo
null
null
null
True
roguesLovesMX518
null
I read that somewhere else too, I will implement that in my next project. Maybe bind a combination of key's to put std:: on my editor. But I guess it's not that much of a problem to type it whole anyways.
null
0
1317391132
False
0
c2nrx26
t3_kwe09
null
t1_c2nrx26
t1_c2nrn8v
null
1427667680
1
t5_2fwo
null
null
null
True
dbilenkin
null
Interesting ideas with controlling the relationships with the joints, by looking at the combined energy. I've had other versions of this with different settings where the worms did end up moving in a more "worm-like" manner, without one overpowering joint that flings them along. I think maybe when I upped the gravity? But, I like the idea of having as few constraints as possible and keeping it simple and only adjusting the environment and being surprised by how the GA figures out how to solve the problem. The GA plateau is of course inevitable. The idea is the best way to avoid local maxima, but I feel sometimes we want it to behave in a certain way, and force it to move how we expect. I think you eluded to that in another post. I don't know if I completely understand what you mean by "sweep controls". Maybe you can explain it more? I do like the idea of further analysis tables showing other data, such as max jump height. I'm trying to think of other environmental factors that can be adjusted other than gravity which is not even realistic. I am thinking about controlling terrain, friction, perhaps favoring lower profile creature, or higher profile ones. What do you think about the idea of starting with a converged "species" and then separating them into two windows, mimicking geographic speciation? The idea being you can change the environments in the two windows and see how the creatures diverge and form two new "species" to adapt to their respective environments? I'm so happy you are looking at this and taking the time to comment on it and explore. I'm looking forward to improving on this project!
null
0
1317391178
False
0
c2nrx8v
t3_kucjn
null
t1_c2nrx8v
t1_c2npk5g
null
1427667683
2
t5_2fwo
null
null
null
True
notfancy
null
> Classical functional programming -- solve the easy 20% of the problem, wrap it in a monad. [Compare and contrast](http://plasma.camlcity.org/plasma/index.html).
null
0
1317391206
False
0
c2nrxci
t3_kv4xx
null
t1_c2nrxci
t1_c2njp97
null
1427667684
2
t5_2fwo
null
null
null
True
dbilenkin
null
Definitely up there on my list of improvements!
null
0
1317391234
False
0
c2nrxgk
t3_kucjn
null
t1_c2nrxgk
t1_c2npdyz
null
1427667685
2
t5_2fwo
null
null
null
True
roguesLovesMX518
null
Yes, thank you that link will help!
null
0
1317391250
True
0
c2nrxik
t3_kwe09
null
t1_c2nrxik
t1_c2nrom9
null
1427667686
1
t5_2fwo
null
null
null
True
roguesLovesMX518
null
You could run it you know =P, it should compile without errors and run independent of your OS.
null
0
1317391293
False
0
c2nrxor
t3_kwe09
null
t1_c2nrxor
t1_c2nrk7j
null
1427667689
1
t5_2fwo
null
null
null
True
notfancy
null
> what parts of the program are values and what parts involve computation FTFY
null
0
1317391342
False
0
c2nrxvc
t3_kv4xx
null
t1_c2nrxvc
t1_c2njfoj
null
1427667692
3
t5_2fwo
null
null
null
True
The-Librarian
null
It really depends on your project. Having std:: sprawled all over the place hurts readability because of an excess of verbosity. Judicious use of using is ok.
null
0
1317391479
False
0
c2nrydv
t3_kwe09
null
t1_c2nrydv
t1_c2nrx26
null
1427667698
2
t5_2fwo
null
null
null
True
peawee
null
Rendering too wide to see everything on Opera is a four-letter word.
null
0
1317391495
False
0
c2nryfp
t3_kvtrp
null
t1_c2nryfp
t3_kvtrp
null
1427667699
3
t5_2fwo
null
null
null
True
jamis
null
Thanks for the kind words, everyone! I'm sorry for the issues in some browsers; I wrote it just so I could present it at RubyConf, and I have not tested it in anything aside from Chrome 14 on Mac OS X Lion. I posted them simply so the attendees could have them to refer to; I honestly didn't expect the outpouring of interest or I would have spent some more time polishing them. The presentation was built on top of the excellent deck.js framework (http://imakewebthings.github.com/deck.js/), and the animations were written by me in CoffeeScript (the code is on GitHub: http://github.com/jamis/csmazes), and render to a canvas element. The illustrations are hand-drawn on paper, inked, scanned, cropped, etc. Aside from that, it's just a bunch of custom CSS and Javascript to tie the bits all together.
null
0
1317391542
False
0
c2nrym6
t3_kvtrp
null
t1_c2nrym6
t3_kvtrp
null
1427667701
37
t5_2fwo
null
null
null
True
djork
null
I use Vim and Emacs on Windows. They are both free, and blow Notepad++ out of the water in nearly every single area. If you name something Notepad++ does, then I'll tell you how Emacs or Vim do it better or *can be easily made to do it better*, and they can be made to do it easier than implementing the same feature in Notepad++. The *only reason* to use Notepad++ is to avoid learning something new.
null
0
1317391635
False
0
c2nrz00
t3_kvpld
null
t1_c2nrz00
t1_c2nnjnw
null
1427667706
2
t5_2fwo
null
null
null
True
roguesLovesMX518
null
The user never puts the splitting character, I do. I ask the user to input the name of the entry and the value that he/she wishes to give it and then while writing the map to the file I put it there myself. Then when I am reading the file into the map, I split it at the ':' and put the left part as the key and the right part as the value. And yes my class designs could improve a lot, it's one thing that I really need to work at. Though with this project there wasn't a lot of planning beforehand which is the reason for the poor class design. Of course I'm the one to blame for that as well.
null
0
1317391750
False
0
c2nrzgx
t3_kwe09
null
t1_c2nrzgx
t1_c2nrom9
null
1427667713
1
t5_2fwo
null
null
null
True
GuyOnTheInterweb
null
it's pretty cool, it even animates font resizing!
null
0
1317391775
False
0
c2nrzkc
t3_kvtrp
null
t1_c2nrzkc
t1_c2nrw95
null
1427667715
1
t5_2fwo
null
null
null
True
jayrox
null
nice theme :)
null
0
1317391802
False
0
c2nrzok
t3_kvpld
null
t1_c2nrzok
t3_kvpld
null
1427667716
2
t5_2fwo
null
null
null
True
trimalchio-worktime
null
You'll get your funding when you start selling a quick kit to put together your own dream recording setup. I want to play with my dream consciousness too!
null
0
1317391843
False
0
c2nrzuc
t3_ku203
null
t1_c2nrzuc
t1_c2nr5sb
null
1427667718
0
t5_2fwo
null
null
null
True
swiharta
null
No, you'd convert back and forth between some "universal" format. That reduces 10 supported formats to at most 20 conversion scripts (back and forth), there will probably be a lot of shared code though. As mentioned, formats rarely change if ever in these different editors. Write it once and be done.
null
0
1317391846
False
0
c2nrzut
t3_kvpld
null
t1_c2nrzut
t1_c2nrqv9
null
1427667718
4
t5_2fwo
null
null
null
True
roguesLovesMX518
null
Well I made the map static because I wanted it to exist for the entire period I was editing the file. It's easier to edit/modify the map and then write it's contents into the file.
null
0
1317391894
False
0
c2ns02d
t3_kwe09
null
t1_c2ns02d
t1_c2nrqy1
null
1427667721
1
t5_2fwo
null
null
null
True
Netcob
null
Right now the goal is "move forward as far as you can". Why not add "don't damage specific parts of your body"?
null
0
1317391901
False
0
c2ns03q
t3_kucjn
null
t1_c2ns03q
t1_c2nlgqu
null
1427667722
1
t5_2fwo
null
null
null
True
tecknoize
null
I think its blueprint/architect analogy is really weak or could have been elaborated. Yes, an architect job is to design a place for its use cases, but he also works with the engineer so the building doesn't collapse on itself. A building architect is much more similar to a UX designer. The user doesn't know what kind of concrete was used, if it was armed, if the sewer is connected correctly, etc. That's engineering stuff. Users generally don't interact with engineering stuff. They don't know or care what framework you used. However, they know that the user interface designer did a poor job because they cannot do what they want easily. Also, its only possible do the kind of tests he's suggesting with user interfaces. Strangely, the "architecture" of a software is irrelevant to the user. They will never see your clever use of the chain of responsibility pattern or that you used a variant of MVC. The architecture of a software is much more for the programmer than anything else. Change the architecture of a software and keep the same interface and the user won't notice. Change the interface and everybody *screams*.
null
0
1317391941
False
0
c2ns09p
t3_kwdsp
null
t1_c2ns09p
t3_kwdsp
null
1427667724
4
t5_2fwo
null
null
null
True
[deleted]
null
[deleted]
null
0
1317392009
False
0
c2ns0ks
t3_kvtrp
null
t1_c2ns0ks
t3_kvtrp
null
1427667728
1
t5_2fwo
null
null
null
True
ep_
null
The way these creatures move is creeping me out :(
null
0
1317392044
False
0
c2ns0qd
t3_kucjn
null
t1_c2ns0qd
t3_kucjn
null
1427667730
1
t5_2fwo
null
null
null
True
dudeman209
null
Bingo!
null
0
1317392125
False
0
c2ns13l
t3_kvo92
null
t1_c2ns13l
t1_c2no0jo
null
1427667734
2
t5_2fwo
null
null
null
True
ThaDon
null
Just some CYA tips I've picked up from working with some pretty bad code monkeys. Reddit: have any other tips?
null
0
1317392129
False
0
c2ns145
t3_kwgsi
null
t1_c2ns145
t3_kwgsi
null
1427667735
1
t5_2fwo
null
null
null
True
ethraax
null
Eh, I think it's a Vimperator issue for not supporting passthrough. Using arrow keys for navigation is more or less possible in every major web browser, and almost ever minor web browser. I think Vimperator is the only one where it doesn't work.
null
0
1317392155
False
0
c2ns189
t3_kvtrp
null
t1_c2ns189
t1_c2nrsry
null
1427667735
3
t5_2fwo
null
null
null
True
AeroNotix
null
Having a universal format is a smaller amount of work, but still, a standard format is a better option going forward.
null
0
1317392180
False
0
c2ns1cs
t3_kvpld
null
t1_c2ns1cs
t1_c2nrzut
null
1427667737
2
t5_2fwo
null
null
null
True
EntroperZero
null
Exactly. I wish someone made a plugin that doesn't destroy your machine, even if it only did 1/3 of what Resharper does.
null
0
1317392279
False
0
c2ns1sh
t3_kvo92
null
t1_c2ns1sh
t1_c2nrmgv
null
1427667742
1
t5_2fwo
null
null
null
True
roguesLovesMX518
null
1.static for the file name is basically a sort of hack, I'll change that when I get back to the code sometime. 2.Yes, my class designs are horrible. Need to do some more planning and just work at it. 3.Noted. =) 4. I don't understand the phrase "blow my stack" lol. It would be lovely if you could actually show it to me by doing it with my application.. Also would you recommend getting this book? http://www.amazon.com/Effective-Specific-Improve-Programs-Designs/dp/0321334876 Would it help with my class designs and such? Thank you for the feedback ;)
null
0
1317392321
False
0
c2ns1yd
t3_kwe09
null
t1_c2ns1yd
t1_c2nrruq
null
1427667745
1
t5_2fwo
null
null
null
True
swiharta
null
No argument there, just saying.
null
0
1317392353
False
0
c2ns23l
t3_kvpld
null
t1_c2ns23l
t1_c2ns1cs
null
1427667746
2
t5_2fwo
null
null
null
True
archiminos
null
If you're on a project that uses unity builds, 'using' statements can be hard to keep track of so you'll generally find them to be against a company's internal coding standards (in games at least - I have zero experience in other fields). One trick is to use scope on you're using statements: void foo() { using std::cout; cout<<"bar"; } ...although that can become tedious. Personally I prefer explicitly typing the namespace every time, but that comes down to style rather than providing any technical benefit.
null
0
1317392398
False
0
c2ns2am
t3_kwe09
null
t1_c2ns2am
t1_c2nrn8v
null
1427667749
3
t5_2fwo
null
null
null
True
hopeless_case
null
I had the exact same thought.
null
0
1317392455
False
0
c2ns2j0
t3_kuhn3
null
t1_c2ns2j0
t1_c2ni4q2
null
1427667752
1
t5_2fwo
null
null
null
True
forcedtoregister
null
You overstate how hard it is to maintain C++ and how fast OCaml is. I know from personal experience that you have to fight with Haskell to make it go fast in situations where it would be easy in C++ (perhaps OCaml is better in this respect due to lack of laziness, but I'd "heard somewhere" the compiler was not as optimising as Haskell) . I'm not ignorant of functional languages, the first chance I get to use one in the real world I will - I fucking love me some Haskell. By the time half your code is in C/C++ and the other half in <preferred high level language> and you have to maintain that layer things can get tricky. There are cases for using a fast language and C++ subroutines, the Lua approach, and sometimes pure C++. Denying this would be accusing a hell of a lot of people of being "fucking stupid", since I'm pretty sure I'm not the only guy who sometimes writes entire applications in C++. As for your example, have a look at this [thread](http://stackoverflow.com/questions/5584984/computing-the-norm-of-a-vector-expression-awbxcy) (I'm not saying it proves either of us right). If I get some spare time I'm certainly going to look into OCaml.
null
0
1317392665
True
0
c2ns3fv
t3_kteac
null
t1_c2ns3fv
t1_c2np2tz
null
1427667766
1
t5_2fwo
null
null
null
True
bluefinity
null
No, you just convert to one intermediate theme format (not necessarily an existing one, an invented one would probably be better). Then you just need converters to and from that format for the other formats.
null
0
1317392687
False
0
c2ns3jv
t3_kvpld
null
t1_c2ns3jv
t1_c2nrqv9
null
1427667767
2
t5_2fwo
null
null
null
True
AeroNotix
null
swiharta pointed that out to me as well. It's a good idea, but even then I'd say pushing for a unified format would be better, then the implementation of the format is just up to the IDE developer.
null
0
1317392796
False
0
c2ns41a
t3_kvpld
null
t1_c2ns41a
t1_c2ns3jv
null
1427667773
2
t5_2fwo
null
null
null
True
fjonk
null
It most definitely isn't. What I do with my arrow-keys is my business. If the site can't be bothered to present a working version without forcing me to reconfigure my browser I can't be bothered using the site.
null
0
1317392822
False
0
c2ns462
t3_kvtrp
null
t1_c2ns462
t1_c2ns189
null
1427667784
-1
t5_2fwo
null
null
null
True
hopeless_case
null
I have become increasingly critical at the lack of serious code review I have seen in the companies I have worked at. My fellow developers are expected to spend at most one or two days reviewing the code of other developers, even if they spent months writing it. Which leads me to this question: how much time should a company budget for its developers to spend reading each other's code? I have been toying with the idea that if you spend less than 20% of your developer's time in code review, then the problem of developers not understanding each other's code-bases will increase over time until your codebase collapses from its own weight. Anyway, this article, and your commentary on it, really got my attention. A language that is easier to read than others, if this is really true, is a god-send.
null
0
1317392903
False
0
c2ns4kd
t3_kuhn3
null
t1_c2ns4kd
t1_c2ndsn0
null
1427667781
1
t5_2fwo
null
null
null
True
sisyphus
null
PCI-DSS would forbid me to get the credit card numbers of my own customers from a third party who was storing them?
null
0
1317393056
False
0
c2ns59f
t3_kvu8y
null
t1_c2ns59f
t1_c2nqb0y
null
1427667789
1
t5_2fwo
null
null
null
True
kodt
null
Just get an ssl certificate and put the site seal on there, most people won't know the difference. They just look for a site seal.
null
0
1317393118
False
0
c2ns5jk
t3_kvu8y
null
t1_c2ns5jk
t1_c2nn8jx
null
1427667792
2
t5_2fwo
null
null
null
True
voetsjoeba
null
Space out your code! It's not very readable. For instance, line 186: ofile<<iter->first<<":"<<iter->second<<endl; That just looks terrible and it's entirely unclear to me what's going on. Well, I have some idea of what's going on from context, but I need to decipher that before I can really understand it. Instead, write it like this: ofile << iter->first << ":" << iter->second << endl Bonus points for wrapping the iter->first in parentheses for improved readability. It is generally good practice to put some spaces around your operators, to help them stand out visually and to make it clear what the operand expressions are. This includes assignment, the arithmetic operators, the stream operators, etc. Also, your indentation is not consistent. On line 321 to 325 you're not doing any indentation of the if, but you are in its surrounding if. Again, 308 through 334 are an indented do-loop, but the do on 291--299 is not indented.
null
0
1317393186
False
0
c2ns5to
t3_kwe09
null
t1_c2ns5to
t3_kwe09
null
1427667796
5
t5_2fwo
null
null
null