« first day (1005 days earlier)      last day (3957 days later) » 

7:02 AM
browser with plugins. icq/skype/whatever. for gamers: teamspeak and stuff like that, including necessary drivers.
 
-2
Q: reading a table file from the computer

user2590194a c++ program that computes and displays the average,standard deviation,variance and coefficient of variation of games: played,won,drawn,goal difference and points in a football league.the program should sort the teams in ascending order based on the highest points and display the four relegated ...

 
i am guessing qbasic is related to basic?
 
@A.H. Do you really think it's that crucial to install an example of all that should be avoided in programming?
 
I'm surprised that question is still open.
Must be a slow day.
 
@JerryCoffin what you don't like doxygen ?
 
7:09 AM
Doxygen sucks.
 
@A.H. It is (was) an implementation of BASIC.
@A.H. What? You don't like having somebody remove your arms and legs with a chainsaw?
 
So do you guys use a better alternative ?
 
Unfortunately there's no such thing from what I've searched lol
 
@A.H. As nice as the idea may have one sounded, automatic generation of documentation from comments in the code leads to 1) lousy comments, and 2) lousy documentation. I use a text editor. Doxygen does have a few uses, but none qualifies it as a necessity or anywhere close to it.
 
@JerryCoffin I think its a nice tool to generate some sort of first draft of documentation , it helps me keep track of different parts in my code and it suits my requirements which so far have been for university projects
 
JBL
7:15 AM
Mornin' everyone !
 
morning
 
@A.H. About all I can say is that in every case I've seen it used, it seemed to me the overall result was negative. As I said: crappy comments, crappy docs, and (perhaps worst of all) the false sense that both were wonderful.
 
it's "better than nothing" syndrome.
 
In reality, the "documentation" about things like function parameters, return type, and such, can be parsed about as easily from the source as the comments (and any decent IDE can and will already do so). Comments should generally cover things like why you chose to do something in a particular way, not stuff that's obvious from the source, like "this parameter named "name" of type "string" should be passed as a string containing a name. Right up there with: a = 0; // assign 0 to a.
 
@JerryCoffin still, you can add such rationale to the function/function group/class/file doxygen comment. that //@param name the name crap is of course useless
 
JBL
7:23 AM
@TheForestAndtheTrees Sometimes, nothing would be better (assuming correct parameter names).
 
haha yeah I can't say that I haven't fallen into that trap before , but now I view \param as useless unless I want to say something like this pointer must not be null or no boundary check on an index
 
@ArneMertz Yes. You can also ignore all the useless Doxygen crap, and act like it didn't exist at all. You can go a step further, and not bother to install it either.
@A.H. The former is better documented with assert(pointer != NULL). The latter should generally be structural -- typically one layer that only verifies parameters, another that just does work, with no parameter checks.
 
JBL
@A.H. It should be "Better designed code" instead of "The doc specifies how to use the code without breaking it".
Helps avoiding case where people break things because they didn't read the doc.
 
what if its in a layer that shouldn't do these checks?
 
@A.H. Then it should generally be pretty obvious (e.g., from a namespace like unchecked::whatever).
 
JBL
7:31 AM
4 mins ago, by Jerry Coffin
@A.H. The former is better documented with assert(pointer != NULL). The latter should generally be structural -- typically one layer that only verifies parameters, another that just does work, with no parameter checks.
 
user142019
Mood gorning.
 
JBL
Hullo !
 
ello
 
user142019
@ThePhD Gentoo, Chrome, Vim, GHC and Go.
 
@JerryCoffin I guess it's just a matter of taste wether you document an API in the API headers or somewhere else :-)
 
user142019
7:36 AM
Is it a good idea to deploy a web application using Git? I want to write a script that automatically migrates the database schema, uploads new static files and recompiles and runs the new code when I use git push to the production server.
 
@ArneMertz No, it's not just a matter of taste. The problem isn't the placement, it's the fact that Doxygen seems to lead almost inevitably to crappy comments and crappy docs.
 
Doxygen is only useful if your API is used by your customers and you want to provide online docs.
Which is a very small part of the total codebase.
 
Seriously. Project I'm working on right now is a prime example: code for a web site that shall remain nameless (but you're probably a member). I'm looking at a dump of roughly 65 gigabytes of source and associated crap. They use Doxygen comments throughout -- and for any practical purpose, the whole thing's entirely undocumented.
 
Doxygen comments are probably generated by the IDE.
@JerryCoffin 65 GB? That must be a big website.
 
user142019
The one thing I always miss in documentation is "in which fucking source file can I find this thing."
 
7:43 AM
Documentation is usually right above the thing it documents, dummy.
 
user142019
@StackedCrooked Wonderful.
 
user142019
Next problem: where to find the documentation?
 
user142019
I mean, say you have a project X and you want to find out where it handles authentication.
 
user142019
Without proper tools or documentation, it's often a pain to find it.
 
If you know what the UI looks like for authentication, then you can search for a string that appears in the UI.
 
7:45 AM
@StackedCrooked Yes, it is. It's fairly complex, and it has enough users that essentially everything they do (no matter how trivial) is written as a map/reduce job to be distributed across clusters of machines (and, likewise, essentially all input and output is to/from clustered storage, etc.)
 
user142019
@YourCommonSense [citation needed]. (Of course they are welcome, use your common sense.) — rightfold 13 secs ago
 
Of course, there's also the fact that it's mostly written in Java, with lots of CnP coding, so if it were well written in a decent language, it would probably shrink by a factor of at least 5 or 6.
 
@rightfold Yeah. To explore code, you need (a) source, (b) documentation, (c) grep :)
 
user142019
grep saved my life yesterday.
 
@rightfold Assuming a usable IDE, type in the name, right click, click on 'go to definition" (or whatever name they've chosen). Assuming Vim (or similar)...well, there's ctags.
 
user142019
7:52 AM
$ grep -irn 'massCallback' . :P
 
user142019
> click
 
user142019
Also ctags is a good idea. I've never used it.
 
@rightfold Maybe it should be available as an emergency service: "Press 1 for fire, 2 for police, 3 for ambulance, 4 for coastguard, 5 for can't find this stupid API call in the libs"
 
user142019
Google Grep
 
user142019
Google should support regexen and become the grep for the web.
 
user142019
7:55 AM
Regexen with only exact matches.
 
@rightfold If memory serves, Google code supports regexen.
 
user142019
@JerryCoffin Google Code Search is very similar to Google Reader: gone.
 
@rightfold Oh -- oops. I guess I should have realized anything that useful would disappear.
 
6
Q: Static Variable initialisation for Classes in C++, why include data type?

Cail DemetriI've been learning C++, and I've come across static variable (I have prior knowledge from C89), and in the resource i'm using, they've declared a static variable in a class such as: class nameHere { public: static int totalNum; } int nameHere::totalNum = 0; int main() {} For Exam...

 
Ugh I hate compilers.
 
user142019
7:58 AM
No, you hate C++ and linkers.
 
Unless there's an actual reason, I'll bet anything it's a case of them not thinking of it at the time or just not liking it enough, but I can't think of any reason why it wouldn't work.
 
Just GCC and Clang.
 
Hello everyone.
 
In particular name lookup and templates.
 
user142019
@evilmonstah I'm scared.
 
7:59 AM
@rightfold o; ... why?
 
user142019
Because you're an evil monstah.
 
How many ponies does it take to defeat a monstah?
 
@rightfold oh that... I'm in a good mood today.
 
And by "defeat" I mean "render tech support to."
 
user142019
@Potatoswatter Six ponies and a lot of friendship.
 
JBL
8:02 AM
Just Fluttershy when in boss mode.
 
xD both fair answers.
 
user142019
@Potatoswatter Vinyl Scratch and Celldweller.
 
Mawning
 
JBL
Hello Tony !
 
@TonyTheLion Hmmm....now that you mention it, it is a bit past my proper bed time. G'night all.
 
user142019
8:05 AM
@TonyTheLion Mawning
 
Night.
 
@JerryCoffin Hahah :) Good night :)
@rightfold Morning
 
Hello Tony and good night Jerry.
 
Wow, I'm way behind the times.
I was just thinking of how useful it might be if I made something to minimize any window to the tray, but then I googled it.
 
user142019
8:24 AM
Man.
 
user142019
I love CoffeeScript's dictionary unpacking. Wish other languages had it.
 
@rightfold what does it look like?
 
user142019
myDictionary = { a: 1, b: 2, c: 3 }

{ c, b } = myDictionary
assert(c == 3 and b == 2)
 
ah, interesting
 
user142019
Hmm.
 
user142019
8:30 AM
#define MAP_TIE(...) detail::map_tie(__VA_ARGS__, #__VA_ARGS__)
std::string foo, bar;
MAP_TIE(foo, bar) = myMap;
 
user142019
Not sure how # works there.
 
Does it work like a counter ?
####__VA_ARGS__ is 4th argument passed?
 
user142019
@FlorisVelleman #foo stringifies foo.
 
user142019
#define STRINGIFY(foo) #foo
assert(std::strcmp("hello", STRINGIFY(hello)) == 0);
 
user142019
map_tie needs to know the names of the variables. C++ doesn't offer this kind of reflection so you'll need big fat ugly macros.
 
8:37 AM
@rightfold You can actually do that?
 
user142019
I don't know whether/how # behaves on __VA_ARGS__.
 
user142019
Ah, nice. It just takes the commas with it.
 
@rightfold Yeah, I tried and thought I made a mistake.
Stupid bugs keep crawling onto my screen.
 
user142019
8:58 AM
Meh.
 
@johnmac2332 haha, thanks? I won't get populist from it though
 
user142019
Ah.
 
user142019
I got it.
 
Damn, CI games is hiring
In Warsaw, though
 
user142019
Map unpacking in C++. :3 coliru.stacked-crooked.com/…
 
9:05 AM
How is your Tcl learning @rightfold?
 
user142019
@BartekBanachewicz It feels like a combination of Bash and Perl.
 
Sounds terrible
 
Yaaay my second monitor is back and no more spurious vertical yellow lines in the middle of the screen!
 
Happy for you.
 
Maybe I'll make it to the office before 12, too.
 
9:12 AM
also congratulations on finishing ruby tasks and not dying
 
JBL
@BartekBanachewicz Ugh... This studio.
 
@jbl what?
 
@BartekBanachewicz and?
 
JBL
@BartekBanachewicz I don't really associate them with quality games. Still, I don't know how it is internally, from a developer perspective.
 
@thecoshman nothing
@JBL mesh, some of their games were good. They expect 2 years of C++ game development... And "STL"
Also fuck mobile web apps forever
 
user142019
9:16 AM
@BartekBanachewicz Better than Java.
 
Oh but of course
I wish this piece of crap didn't zoom in on the text box
Yes I have enough pixels TYVM chrome
 
@BartekBanachewicz Make the textbox say "Fix this bug"
 
JBL
@BartekBanachewicz Dunno. Their Sniper games were pretty bad imo, and the "good" games they're related to were published by them, not developed.
 
> Microsoft Office is the most widely deployed development environment in the world. Every business user on Earth has a copy. If only 0.1% of them use it, there are more Office-related WTFs than there are IT workers in the world.
 
JBL
@R.MartinhoFernandes Huhu.
 
9:18 AM
@R.MartinhoFernandes That reminds me, I need to put Office onto my "new" OS.
 
Development environment, huh?
 
It was early January when I put this OS onto my new SSD and starting installing everything.
 
user142019
@R.MartinhoFernandes We don't have a license. We use OpenOffice.
 
user142019
So that statement is false.
 
OpenOffice is terrible
 
user142019
9:20 AM
I'm lucky I don't have to deal with it (yet). :P
 
Google Docs ftw.
 
user142019
I use Vim for my bookkeeping and I wrote a Perl script to convert it to PDF.
 
user142019
@StackedCrooked iWork is pretty decent too.
 
user142019
Keynote in particular.
 
@StackedCrooked I used Google Docs exclusively for the last half of my last school year.
Learning all around today.
 
9:28 AM
@R.MartinhoFernandes Source?
 
Xeo
Mornin
 
anyone got any suggestions about a mingw IDE? I heard VS2012 express was really good but I had "issues". I am using Eclipse right now for Java and I am very satisfied with it. If I can't find a better IDE I will go with Eclipse. Does anyone have any good suggestions?
*I know VS is Microsoft and not mingw
 
@TonyTheLion Yes.
 
@Xeo g'morning
 
Xeo
my stackoverflow profile says it all stackoverflow.com/users/2579943/yatin-saraiya Now go away and stop bothering me. I have real work to do. — Yatin Saraiya 7 hours ago
 
9:35 AM
@Roland depends on whether VS issues will be annoying for you or not
 
@BartekBanachewicz I had too many problems with VS I think I will continue using MinGW
@BartekBanachewicz Although intellisense is cool
 
I like how his About Me is another massive rant
 
@RolandSams MinGW isn't an IDE. I use CodeBlocks for most things and with MinGW.
 
@chris You wanna hear something funny? ... I used to use code::blocks but my AV keeps quarantining my executable. Something about an unknown virus... hmm...
 
@R.MartinhoFernandes I meant where did you get this from?
 
user142019
9:38 AM
@Xeo "Oh hey, let's annoy the fuck out of everybody. Hey everybody, shut the fuck up stop annoying me."
 
@RolandSams Some AVs always falsely report your programs.
 
@R.MartinhoFernandes thanks
 
@Roland problems like what
 
They only tend to do so when there's nothing possibly wrong with it, yet never when I do make viruses.
 
9:39 AM
@BartekBanachewicz my install crashes completely
 
> and find things like chat rooms and crowd-sourcing (my first time at either happened on stackoverflow.com) disgusting.
lolwat
 
@Roland so your problem with the IDE was that you couldn't install it?
 
the lady doth protest too much
 
I am speechless.
 
user142019
I installed Python 3 on Windows yesterday and it segfaulted when I started it.
 
9:40 AM
@BartekBanachewicz yep installation was buggered. Staying with MinGW and going with Eclipse seems better
 
@Xeo sounds like a big fucking hypocrite
 
user142019
@RolandSams I find the lack of Vim highly disturbing.
 
Xeo
> Don't do one thing, or in the end, you will be a C++ programmer (or historically, a Fortran programmer, or before that a COBOL programmer, and so forth)
That guy is pure comedy gold
 
user142019
> and so forth
 
@Roland I'd just like to point out that the real problems with IDEs start after installation. Also nobody is going to help you here if you keep using Eclipse
 
user142019
9:42 AM
Haha a hidden one!
 
@Xeo Yea
 
Xeo
> I am a private person, don't belong to any social networks other than LinkedIn, and find things like chat rooms and crowd-sourcing (my first time at either happened on stackoverflow.com) disgusting.
 
@rightfold vim is also great
 
seems legit ^
@Xeo I wonder why he's using said sites then?
 
Why are we even talking about him?
 
9:44 AM
cause hilarious
 
Xeo
1 min ago, by Xeo
That guy is pure comedy gold
 
HE LEFT TO DO SERIOUS WORK ALRIGHT?
 
hahahahah
 
"The worst thing that you can do is to ask someone to solve your problems" - sorry guys :(
Also, he deleted ~15 of his answers since yesterday for downvotes?
 
Xeo
You can only delete 5 per day
 
9:47 AM
lol
 
he puts 31 years into 7 so I wouldn't be surprised
 
@Rohit: Again: It's up to you to write the code. Stack Overflow is for helping people understand things, it's not a code-writing service. I hope I've helped you understand what the problem with your code is: You're splitting up character entities. So don't do that. Detect that you're splitting up a character entity and keep it together. — T.J. Crowder 23 mins ago
top comment
 
lol php
 
user142019
lol php
 
Interviewer asked me what my least favorite language is, I said: Java & PHP
lol
 
JBL
9:50 AM
@TonyTheLion What was his reaction ?
 
@JBL he chuckled
and agreed
 
JBL
Good !
I still have remains from last year 3 months internship where some of the seniors were acting like Java was the best thing that happened to programming -_-
 
JBL
J2EE blurgh.
 
@JerryCoffin but then the problem is not doxygen but the developers writing crappy doc comments. The same developers will create crappy or no documentation without doxygen.
 
user142019
9:53 AM
Java 2 Ewwww Ewwww
2
 
JBL
@rightfold Basically. Twice the "Ewwwws"
 
user142019
Yum.
 
user142019
Popcorn and sausage roll for lunch.
 
JBL
I think I'm starting to develop an allergy for GUI programming.
 
@rightfold WTF. Strange combination
my coffee is cold, damnit
Can I assume that std::map::end() will give me the last element?
So if I did auto end = mymap.end(); myfoo = *end; it would work?
 
Xeo
10:03 AM
No
Remember, it's "one past the end"
 
@TonyTheLion NO
as xeo said
 
that's what I thought
so there isn't any easy way to get the last element
 
Xeo
auto&& last = *--mymap.end(); or auto&& last = *mymap.rbegin() work fine, though.
 
@TonyTheLion, std::prev(mymap.end()); works as well.
 
@chris hmm I like that
 
10:06 AM
std::prev might be C++11, though, in which case, std::prev(std::end(mymap)); would, too.
 
Xeo
std::prev is C++11, yes
 
Hmmm
ok, another question
if I have a class with a std::map<key, val> mymap as a member, and I return a pointer to val found in this map in a member function, is that valid? (my API forces me to use pointers)
so it would be return &it->second;
 
Xeo
Sure, as long as the map and the value inside that map are staying alive
 
Yea
makes sense
 
Well, this download manager must be working. The speeds are above my internet speed.
 
10:09 AM
maps have very favourable iterator invalidation semantics
 
Xeo
@chris lol
 
@chris I often have that with Steam.
I think it must be some kind of compression mojo
 
I'd be interested to see what this does where I get up to like 1.1MB/s max when we should get 25Mbps.
 
bah
I only get 300kb/s.
at best.
when my brother's not streaming or downloading himself.
 
Xeo
@chris 25mbit / s is 3.125 MB / s ...
 
10:11 AM
About 600KB/s here.
@Xeo I know, terrible deal we're getting, isn't it? I only got those with Opera, too. Otherwise it's like 900KB/s max.
 
Xeo
WTF
What kind of shitty connection is that?!
 
I doubt the router's that bad, and I know I can do 5MB/s+ over wireless on this laptop.
 
user142019
I have 35 Mb/s at home.
 
Xeo
MB?
That'd be 280Mbit/s
 
user142019
Also 35 Mb/s at work.
 
Xeo
10:14 AM
That's Mbit
 
I think my friend switched from 75Mbps to 150Mbps and managed to convince them to let him pay about the same he did before.
 
user142019
@Xeo I edited it long ago. :v
 
Xeo
We got 250Mbit/s at work, or something
 
user142019
Nice.
 
user142019
How many consumers?
 
Xeo
10:16 AM
We're roughly 35 people
 
They actually have 25/10 for $40/mo here.
 
Xeo
I got 50/10 for 30€
 
That's 2/3 of this 5Mbps down cost.
How's that for most overpriced internet ever?
 
I had one problem... I attempted to solve it in Java, now I have two problems.
 
user142019
@Xeo Ah. :P
 
10:17 AM
Oh, and the 5Mbps one has a 25GB limit, with $10/mo more for unlimited.
 
when I was at university I torrented 60GB a day for a month
 
@DeadMG I've found myself with that inclination recently.
 
ah, it wasn't really for me, they were mostly HD films for my ugly and much less intelligent brother
 
Actually, I have the numbers on my soon-to-be university.
But I have to search through a giant Facebook group thing to find them.
 
@R.MartinhoFernandes you're using github pages with Jekyll right?
 
10:22 AM
Oh, apparently 8MB/s until like 5GB/day then around 1.25MB/s.
 
@thecoshman Yes.
 
With different locations varying greatly.
 
@R.MartinhoFernandes recommend it? any advice on getting it setup?
 
@DeadMG lol
@thecoshman Install it? It just works.
 
what?
 
10:24 AM
@DeadMG tell that to the courts :P
@R.MartinhoFernandes where you running it locally too?
for testing like?
 
I assume you could git checkout testVersion and that will be what jekyll serves, so you can push WIP changes to save them
 
Nah.
I just mark stuff that hasn't been published with published: false
 
oh right
oh, this course is nice, I have a good connection to my pi :D
it's not dropping all the time like last course
@R.MartinhoFernandes did you let github generate the starting pages, or just go from scratch?
 
10:39 AM
11 hours ago, by rightfold
I've decided to learn Tcl.
The nth millionth thing he starts and won't ever finish
 
do you think he will finsh starting things?
 
JBL
@thecoshman He should maybe start finishing things.
 
@thecoshman No.
God help the company that hires him
 
@TonyTheLion "so, do you have any hobby projects?" <some years later> "And just now I have decided to start a new project that does what you where about to hire me for"
 
10:43 AM
@thecoshman I stole from somwhere don't remember where. Might have been that.
 
@R.MartinhoFernandes I'll just steel (steal?) from you :D (I do actually rather like the theme you have)
 
Me: "long long x;" Compiler: "'__int64' followed by '__int64' is illegal" Me: "Wat?" Grep: "#define long __int64" Me: "No!! Who did this?!?"
4
lol
 
haha yeah
read it yesterday
also, hi :)
 
huh... I didn't have git installed on the pi
 
10:51 AM
hahaha
TIL F-Algebras are a thing
 
user142019
@TonyTheLion slowpoke.
 
@Tuntuni he he he
 
10:53 AM
the recruiter called me at the worst possible moment
 
@BartekBanachewicz hydroelectric I hope?
 
and I got extremely nervous.
@thecoshman wha
 
@Tuntuni Urgh, I hate that everything is now just "app". Fuck everything about that
 
"Yes, I money like more"
 
@TonyTheLion yup :(
 
10:54 AM
@TonyTheLion does nobody respect apostrophes these days?
 
@thecoshman :D
 
6 consecutive days so far, 94 to go :3
 
actually I've rescheduled the call
but I felt like I was speaking japanese, not english :/
 
@thecoshman What?
 
@BartekBanachewicz polgrish?
 
user142019
10:56 AM
Hahaa nicee.
 
@TonyTheLion clearly it should be app's short for applications
 
whatever
 
@thecoshman anyway, he's going to call me tomorrow
 
user142019
appleication
 

« first day (1005 days earlier)      last day (3957 days later) »