« first day (785 days earlier)      last day (4163 days later) » 

7:00 PM
Do you guys think that I should read this book: amazon.com/Art-Computer-Programming-Fundamental-Algorithms/dp/… before starting to learn c++?
 
@JosephPotts You can learn CPP without that book. Also, that book is not known to be very easy.
 
Not necessarily.
 
TAoCP is not a good read, IMO.
 
The harder the better.
 
7:01 PM
not really
 
It will help to have some programming experience before tackling C++. But it's not mandatory I think.
 
In my opinion, the harder the book, the more my thinking skills increase.
Well yeah I know it's not compulsory.
I just thought whether it would be quite helpful.
 
Just buy a beginner C++ book, before you bog yourself down in confusion
 
user142019
The best book to learn C++ is Learn You a Haskell for Great Good!: A Beginner’s Guide.
 
I did not find TAoCP very helpful.
 
7:02 PM
@R.MartinhoFernandes I'm interested to know what makes you think that.
 
@JosephPotts I didn't read any book.
 
What did you do?
 
I downloaded a compiler and I slapped it until it did what I asked
then I came here and had everyone tell me how shit my code was until it was no longer shit
 
user142019
Writing good code is 90% common sense, really. As is making anything that is good.
 
I does not happen often that I need to implement a hard algorithm.
 
7:04 PM
@StackedCrooked I honestly never found all the goodness everyone seems to see in it.
Also, it seems many people that worship TAoCP never read it.
 
To be honest, i'm really interested in reading TaOCP
 
user142019
Then read it.
 
user142019
But it won’t teach you C++.
 
I kind of like Knuth's idea of literate programming. I don't think it's as outlandish as people think.
 
user142019
C++ cannot be taught since nobody knows C++.
 
7:06 PM
Of course, but it will teach me programming concepts.
 
user142019
@StackedCrooked Haskell even directly supports it. And in C++ you can do it with #if 0 :P.
 
@Zoidberg'-- C++ is collectively discovered?
 
user142019
I like how many Haskell tutorials are written in literate Haskell so you can just copy and paste the entire page and run it.
 
Ell
literate programming?
 
7:07 PM
@JosephPotts Whatever works best for you.
 
You clearly have not tried literate programming very often.
 
user142019
Literate programming is an approach to programming introduced by Donald Knuth as an alternative to the structured programming paradigm of the 1970s. The literate programming paradigm, as conceived by Knuth, represents a move away from writing programs in the manner and order imposed by the computer, and instead enables programmers to develop programs in the order demanded by the logic and flow of their thoughts. Literate programs are written as an uninterrupted exposition of logic in an ordinary human language, much like the text of an essay, in which macros are included to hide abstract...
 
@Ell learn to read&write before you program :p
 
Ight thanks,
 
It constraints your writing and sometimes forces you twist and turn your sentences so that the code compiles. I don't like it.
 
7:09 PM
Is Haskell used in O.S's?
 
You have actually tried it?
 
@StackedCrooked Had to use it for some assignments.
 
user142019
@JosephPotts There are kernels written in Haskell.
 
One potential great benefit is that it could tie documentation into the type system.
 
Thanks, see ya.
 
7:10 PM
@R.MartinhoFernandes that reminds me, did you actually finish your master or bachelor?
 
I find it frustrating that I often notice that my comments no longer match the actual implementation. And there's no automatic system that I can use to detect that.
 
Xeo
@sehe Too bad the old snippets are gone. :(
@StackedCrooked Easy solution: Don't write comments!
 
@StackedCrooked write one
 
@Xeo I write as little as possible.
 
If I programmed the way I think, it would be hard for anybody to maintain my programs. Some people just don't think sequentially enough.
 
user142019
7:12 PM
@StackedCrooked that’s called version control. You can see what changed when in which place.
 
But sometimes I am designing a class that will be used by my co-workers as well. So I like to document a usage example.
 
@StackedCrooked I believe it could be much better with superior tools. It's almost as if every time I tried it I banged my head against a missing feature that would be nice to have.
@bamboon Not yet.
 
@R.MartinhoFernandes Eh, I don't fundamentally see what's really different about it compared to, say, writing a comment.
 
It is interpreted as code. If I understand correctly.
 
unless he's created an artificial intelligence of about 120 IQ, it's not going to be English, it's going to be code just like any other code.
 
7:15 PM
Actually, maybe Artificial Intelligence can be applied to find errors in documentation. I wonder how much of that is possible with todays technology.
 
not a chance
finding contradictions in facts is easy, but generating the facts from the natural language is virtually impossible
hell, we can't even write documentation that people can understand
 
Maybe if they imposed a few restrictions on grammar forms. This would in turn lead to more consistent documentation writing style.
 
@DeadMG But machines are superior to people! ;P
 
user142019
Just don’t write documentation and all problems are solved.
 
7:18 PM
Wait. Machines are people too.
 
@StackedCrooked You'd have to completely redesign the natural language from scratch to make it machine-parsable.
and the resulting documentation may well be unreadable anyway
 
Ell
couldn't you just tag documentation with code lines, and when those lines are changed there is an alert?
 
@Ell And who maintains those tags?
 
Ell
the people who write the code?
 
Sounds just like normal comment-based documentation.
 
user1182183
7:21 PM
please look at Update2:, what could be wrong with the structure PassData ?
 
user142019
Just write functions that are short as fuck that you have to change only very rarely.
 
user142019
Then documenting it and maintaining that documentation is not that difficult anymore.
 
lol
How naive.
 
They could offer bounties for documentation fixes.
Just kidding.
 
user142019
 
7:23 PM
lol
 
Xeo
@Zoidberg'-- Mmm, Bounty~
 
I didn't see that coming.
 
Ell
@R.MartinhoFernandes but then if you change a line of code, there will be a warning or whatever to say "update the doc for this!"
 
Xeo
Now I want that stuff. Bad Zoidberg. :(
 
user142019
@StackedCrooked I did.
 
7:24 PM
@Zoidberg'-- Amazing.
 
Ell
anyway
I need to revise maths!
 
@Ell But what if the doc now spans more lines of code?
 
@Ell Be more type safe!
 
Also, "I'll do it later; got bugs to fix".
 
Xeo
Crap. I'm hungry, I have nothing to eat here and it's Sunday so no supermarket is open.
 
7:25 PM
@Xeo The Kaiser's from across the street was open from 13:00 to 18:00 today.
For some special reason that was written in German.
 
Xeo
@R.MartinhoFernandes Yeah, some of them are, but not in my "suburbs".
 
Xeo
We do have a Kaiser's here which is open from 07:00 to 24:00 on Mo - Sa, but not on Sunday. :(
 
@Xeo Same here. This Sunday was a special case (they had a notice with the exact date).
 
Xeo
The Lidl in Berlin are also open till atleast 21:00
@R.MartinhoFernandes Ah, for Advent Sunday, I guess.
Maybe mine was open too, then.
I'm not going there very often.
 
7:28 PM
So you suck.
 
Xeo
And I slept till 6pm anyways.
(Yeah, so much for 5 1/2h)
 
Seems the ape got busy and we won't go see Skyfall tonight.
 
Xeo
I can't even remember the last time I went to a cinema.
 
You probably don't have non-dubbed ones around.
@DeadMG Are you sure that isn't happening still?
:P
 
Xeo
Well, living in Berlin with its awesome infrastructure, I do have non-dubbed ones "around". :P
 
7:32 PM
Singular, kid.
:/
 
Xeo
Whatever.
 
Imma go get some food just to make you jealous.
And I'm hungry too.
 
Xeo
I think I'll just go to the japanese restaurant we have nearby.
And get me some delicious something.
Too bad they don't have tempura ramen there. :(
@StackedCrooked Did you try that (^) while you were in Japan?
 
@Xeo Did I try type-safety in Japan?
 
Xeo
@StackedCrooked Check the arrow inside the message. :P
 
7:36 PM
Aah. Yeah. I ate most of the classics.
 
Xeo
I jelly. :|
 
Except for sushi, for some reason we never got to that.
I liked gyuu/buta ramen/udon.
I'm not really into fish and I was pleasantly surprised that fish is avoidable in Japan.
 
Fish is cool.
It's just like sea meat.
 
Xeo
@StackedCrooked What's in those?
 
@R.MartinhoFernandes Yes
 
7:39 PM
@Xeo pork or cow and thick or thin noodles
And other stuff.
 
Xeo
Ah, that's nice.
 
, literally beef bowl, is a Japanese dish consisting of a bowl of rice topped with beef and onion simmered in a mildly sweet sauce flavored with dashi (fish and seaweed stock), soy sauce and mirin (sweet rice wine). It also often includes shirataki noodles, and is sometimes topped with a raw egg. A very popular food in Japan, it is commonly served with beni shōga (pickled ginger), shichimi (ground chili pepper), and a side dish of miso soup. Gyū means "cow" or "beef", and don is short for donburi, the Japanese word for "bowl". History Due to the Movement Towards Westernization (文明開化 ...
It's good and not 'fishy' at all.
 
Xeo
The japan restaurant nearby here has beef udon.
I'm considering getting that + fried shrimps
 
Also it's very easy to find something to eat in Japan. Often it's a just a small tavern-like place where you can pick a dish from a machine at the entrance that accepts coins and cash. This automatically forwards the order to the kitchen and you have your food in a few minutes. Meanwhile somebody brings you free (tap) water, sometimes tea.
 
Xeo
@StackedCrooked Yeah, I heard that Japan has lots of food stalls / restaurants.
 
7:45 PM
That's why they are so fat. Oh wait, that's on the other side of the Pacific.
 
Yeah, and very convenient. I can't imagine hopping in a restaurant for a quick dinner here.
It's not the same :)
 
Xeo
I'm still not totally sure what to get. :/
 
Hi all, can anyone elaborate what the hell this error means and how to fix it? :P

LNK2001: unresolved external symbol "public: static class std::vector<class Chunk,class std::allocator<class Chunk> > Chunk::Chunks" (?Chunks@Chunk@@2V?$vector@VChunk@@V?$allocator@VChunk@@@std@@@std@@A)
 
@Xeo Make sure it is still open by the time you decide.
 
@Xeo You can't go wrong with that I think.
 
Xeo
7:47 PM
@R.MartinhoFernandes It's open till 10pm, and it's a 15min walk at most from here.
 
30
Q: What is an undefined reference/unresolved external symbol error and how do I fix it?

Luchian GrigoreWhat are undefined reference/unresolved external symbol errors? What are common causes and how to fix them? Feel free to edit/add your own.

 
Xeo
Though I think they may close the kitchen 15-30mins before that.
Or the warm kitchen, anyways, since they're mostly a sushi place.
 
@R.MartinhoFernandes Huge answer, hooray!
 
Xeo
@StackedCrooked Yeah, I think that will do it. It's relatively cheap too, considering the size of the bow. 6,50€ for the soup, + 3,80€ for the ebi-furai. I never tried the latter, so I'll see what they're like today.
 
Nice :)
 
Xeo
7:51 PM
There's also that chinese restaurant literally right next to it.
Which is cool, since they serve totally different menus.
 
If you download StackOverflow, how much memory would it be?
 
Xeo
I think when I sign the rent contract next week, that's one of the first things I'll try to find in Oberhausen: A japanese or chinese restaurant.
 
@Rapptz The size of the stack.
 
lol
 
Xeo
@Rapptz Ask on Meta Stack Overflow?
 
7:54 PM
@Rapptz It's a good exercise in estimation.
 
I was thinking about it because, what happens when Stack Overflow goes away? What if I wanted to download an archive or something
 
They seed data dumps
 
I lova that I still have One Piece, SAO and Fairy Tail episodes lined up. Oh, and HxH.
 
You can find it somewhere
 
Xeo
@StackedCrooked Seems the newest SAO episode is rushed a lot in contrast to the original novel content. :/
 
7:57 PM
@CatPlusPlus Correct.
 
user1182183
for(;;)//a
{
    for(;;)//b
    {
        continue;
    }
}
 
@Xeo What? Blasphemy!
 
user1182183
will it continue loop a or b?
 
I don't say incorrect things
 
user1182183
or is this undefined behaviour?
 
7:57 PM
Why would it be UB
 
@GamErix Keeping it stylish.
 
Xeo
@GamErix In C++11, the compiler is allowed to optimize the whole deal out.
 
user1182183
@Xeo uh :/
 
continue works in the surrounding scope, inner loop will never exit
 
Xeo
Also, what does it matter if the out or inner infinite loop will be continued?
 
7:58 PM
@GamErix That's like asking, if I jump from a bridge will I die on impact or will I drown?
 
user1182183
@Xeo In the code it's not a infite loop :P
 
Xeo
Then don't write it as such here, it only confuses.
In any case, what the Cat said applies.
 
user1182183
stupid formatting
 
Xeo
Don't need to post now anymore.
 
@GamErix Yes it is
 
user1182183
8:00 PM
pastebin.com/R7ZkiJ2W line 17, it will continue the first loop?
 
No, why would it
You're not listening and talking about your shitty code again
 
Xeo
@StackedCrooked: Dang it, I took a look at the chinese restaurant's menu and now I'm torn again. :(
 
Lol. Make a choice and line up with it.
 
Xeo
I'm bad at making choices.
 
user1182183
@CatPlusPlus surrounding scope - ok got it, "inner loop will never exit" I think that was ment to the bad example I gave? that confused me
 
8:02 PM
How is it confusing?
 
Maybe because he asks questions about code different that what he actually uses
 
user1182183
@Rapptz cuz I forgot for a milisecond Cat was tlking about my Infinite loop
 
How? You're the one who asked
 
@JerryCoffin lol, tt took me way too long before I got it. I was like, "What's wrong with sax?"
 
user1182183
@Rapptz this is the real code but I didn't want you all to bother with many lines of code
 
8:03 PM
I saw that
 
@Rapptz You wouldn't download a chat.
 
Xeo
@StackedCrooked lol, nice play on pronounciation.
Hm, I just now really craved for yield return in C++.
 
Btw, it's 21:10.
 
Xeo
I know.
My next train goes in 10mins
 
user1182183
@R.MartinhoFernandes hm?
 
8:09 PM
The stress..
 
Xeo
@StackedCrooked Since both restaurants are right next to each other, I'll likely do as I do in supermarkets - just decide on the spot.
 
In Belgium cities are usually not so big that you need to train to go to a restaurant.
 
Eclipse is so annoying
 
Eclipse is the pinnacle of overengineering.
 
Xeo
8:11 PM
@StackedCrooked I'm lazy.
And the train stops right in front of my door and again right in front of the restaurant :P
 
@StackedCrooked You take trains to go everywhere around here.
 
Xeo
Maybe @Stacked's problem is with the word "train".
 
I always go on foot.
 
"— F11 — Do you want to run as Java or Scala application? — F11 — Do you want to run as Java or Scala application? — F11 — Do you want to run as Java or Scala application? — F11 — Do you want to run as Java or Scala application? — F11 — Do you want to run as Java or Scala application? — F11 — Do you want to run as Java or Scala application? — kill yourself — Do you want to run as Java or Scala application?"
 
@Xeo Not really.
 
8:13 PM
Yes, I do want to run this Scala application as Scala application WHY ARE YOU ASKING ME THIS SHIT
Ahahaha Package explorer died
> Could not create the view: An unexpected exception was thrown.
 
@CatPlusPlus Need to configure a few variables? Here's an XML form with auto-generated GUI on top of it. All for your convenience!
It's absurd.
 
It's Java
 
I have always wanted a keyboard with a "kill yourself" key in it.
 
Eclipse is worse than just Java.
@R.MartinhoFernandes Would you press it?
 
Xeo
Alright, bbl.
 
8:14 PM
@R.MartinhoFernandes Isn't that delete?
 
> Could not open the editor: An unexpected exception was thrown.
 
@Xeo Have a nice dinner.
 
Xeo
Thanks
 
Also, something bad happened in my kitchen.
 
IDE cannot open editor SORRY
 
8:15 PM
It appears to be related to me handling food around it to cook.
 
@R.MartinhoFernandes What kind of bad things happen in a Robot's kitchen?
 
@TonyTheLion Hint: I will need to spend a good deal of time cleaning up that mess.
 
user142019
@GamErix yes, it is UB. Unterminated execution without observable side-effects.
 
@FredOverflow Have you used Swing from Scala?
 
@R.MartinhoFernandes Yoghurt went bad?
@CatPlusPlus All those layers of abstraction and then that.
 
user142019
8:22 PM
The compiler is allowed to remove the entire loop.
 
I will loop b
 
user142019
What?
 
I don't think it matters too much.
 
Ha, LWS is mentioning ideone a lot in its memos.
 
user142019
8:35 PM
STUPID LWS I DON’T WANT GOTO LINE ON CTRL+L I WANT DEFAULT BROWSER BEHAVIOR STUPID WEBSITES THAT USE SHORT-CUNTS
 
Use F6.
 
Don't browsers have a "don't fuck up with my keyboard" setting?
 
I didn't even know about Ctrl-L until somebody complained it didn't work in Coliru.
 
user142019
It is at least not as terrible as WikiDot.
 
@Zoidberg'-- At least it's not like auto-tools.
Which do you need to edit? An m4 file, a Makefile.am file? Or perhaps configure.ac? Or maybe all of them?
 
user142019
8:39 PM
⌘L is my most-used shortcut after ⌘S, ⎇←, ⎇→, ⌘←, ⌘→ and ⌃K.
 
alt-left and alt-right for back and forward?
 
user142019
back and forward one word
 
user142019
Very handy dandy when editing code or fixing typos.
 
user142019
In OS X those work everywhere, as well as ⌃K.
 
user142019
EXCEPT IN STUPID JAVA APPS #(**(&%
 
8:41 PM
In Qt Creator on Mac alt-left and alt-right will navigate over wordparts. On linux this key combination will trigger previous or next file in Qt Creator.
 
user142019
Also not in the search bar of Twitter for Mac, because those morons decided to write a custom text field instead of using standard controls.
 
I think frequently changing keyboard shortcuts is bad for the neurons. It's similar as to how it's bad to keep saving a file in the same disk sector. Or something like that.
 
Why is LWS in Russian for me????
 
It is Russian.
 
LWS?
 
8:44 PM
And I don't think they bother much with translations.
 
user142019
Russian hackers are the only people who can write a web app that cannot get hacked.
 
@melak47 lousy whimp space
 
user142019
Also, shouldn’t it be “Live Workspace”?
 
user142019
“Live Work Space” looks so terrible.
 
user142019
 
8:45 PM
Live work space. I think.
English doesn't glue words together as much as Dutch.
 
user142019
Workspace is a term used in various branches of engineering and economic development. Business development Workspace refers to small premises provided, often by local authorities or economic development agencies, to help new businesses to establish themselves. These typically provide not only physical space and utilities, but also administrative services and links to support and finance organisations, as well as peer support among the tenants. A continuum of sophistication ranges through categories such as 'managed workspaces', 'business incubators' and 'business and employment co-operat...
 
However, workspace is a single word. Sorry.
 
user142019
Period.
 
I can edit Wikipedia you know ;)
 
user142019
Fuck this shit I’m writing Hexapoda in Python 3.
 
8:47 PM
What is Hexapoda?
 
user142019
Bug tracker/version control shizzle.
 
That sounds like extremely boring.
 
user142019
It is! :D
 
How can you bring yourself to do that?
Are you being blackmailed?
You can trust me.
 
user142019
GitHub and Bitbucket are lacking for me.
 
8:48 PM
Lol, I'm using Google Code.
 
Google Code is only for svn isn't it
 
user142019
No.
 
google code is so ugly
 
@bamboon It is
 
user142019
Yo momma is ugly.
 
8:49 PM
Today you can use mercurial and git. But I'm still using svn.
 
Yeah I just saw they added hg and git
They didn't have it back then I'm sure
 
Mercurial support came first.
And it took a long time before they finally accepted git.
 
user142019
@StackedCrooked Probably because it’s written in Python. :P
 
Oh, wait, svn came first, of course.
 
yeah svn, hg (2009) and git (2011) according to wikipedia
 
8:51 PM
> With CVS came no atomic commits, no easy way to rename files, and many other fun things I have since forgotten.
I remember being enthusiastic about svn in 2006.
That's only 6 years ago since it was the new cool kid on the block.
 
@StackedCrooked Time flies when you're having fun!
 
You got that right.
I feel that it's unfair that so much time passed so quickly.
 
@StackedCrooked Me too, sometimes. Need to find that chronosynclastic infidibulation.
 
wtf are you guys talking about...
 
8:57 PM
Hi guys. simple math problem.
 
user142019
yo momma
 
Apparently we're talking about something that can be a bike, shoes or coat.
 
user142019
@Favolas do we look like we’re mathematicians?
 
I nedd to perform one operation in a given condition.
 
@Favolas What type of math? I might be interested
 
8:58 PM
@Zoidberg'-- this is probably super simple so its possible you can help me
 
user142019
Then ask the question already.
 
imagine i have a for thats runs 900 times
 
uTorrent on Mac consumes 5-10% CPU when idle. Could that be harmful for my machine? I leave it running 24-7.
 
user142019
@StackedCrooked s/u/µ/
 
8:59 PM
@StackedCrooked Use a different bittorrent client
 
every 3 times i need to perform one operation
 
like qBittorrent
uTorrent has gone to shit since it got bought out and became bloatware
 

« first day (785 days earlier)      last day (4163 days later) »