« first day (711 days earlier)      last day (4242 days later) » 

5:00 PM
And boost.
Hipsters and boost.
 
Well, I'm talking about DVCS really.
I keep forgetting SVN still exists.
 
Oh, right.
 
I've used git, Mercurial, and SVN before. But on a small, close-knit team of like, 4 people. I love being able to have my assets updated in real-time. Without me having to do anything.
 
I don't remember now if Perforce is DVCS.
@ThePhD That quickly breaks.
 
Does it?
 
5:01 PM
Conflicts are much harder to manage with automatic updates.
 
You know, this morning I had to explain to my boss why I am quitting and how the conditions are terrible, and I wasted the rest of my day on obscure build system errors and erratic behaviors. How fit.
 
@ThePhD something like codingmonkeys.de/subethaedit?
 
Well, that's the thing. When I mention a team of 4 people, I mean 4 people of different specializations, not all developers.
 
Doesn't matter.
 
do I need to explicitely pass templete parameters to std::find to use with std::bind1st ?
while((it = std::find_if(last = ++it, end, std::bind1st(std::find, seps))) != end){}
 
5:03 PM
Like, 2 developers, 1 designer/artist, one writer. Usually people aren't actually updating other people's stuff.
 
Why are you using bind1st.
Also that expression is terrible.
 
The above gives error: no matching function for call to ‘bind1st(<unresolved overloaded function type>, std::string&)’
 
"Usually" means "sometimes not".
 
@CatPlusPlus I don't have C++11 in all compilers here
 
@ThePhD Really, just use git or hg. It's much less hassle in the long run.
I should start threading messages.
 
5:04 PM
I guess I'll have to educate everyone on how to use Git or something then.
 
@ThePhD There's a live tutorial on github. Very nice.
 
@kbok Well that takes the punch out of that!
 
Mercurial is easy after you wrap your head around the concepts.
 
If you're on Windows, TortoiseHg is amazing.
If you're on OSX for some inexplicable reason, SourceTree is pretty good.
 
5:06 PM
@CatPlusPlus iOS :(
 
I have TortoiseHg, TortoiseGit, and TortoiseSVN on Windows.
 
If you're on Linux :welp:
 
Xeo
@NeelBasu std::find is a template. You can't pass function templates
 
I remember it was working .. may be I did some change and Now its not compiliong
 
5:06 PM
If you're on Linux, you should be comfortable with the command line and googling for how you do something simple every 10 minutes.
 
If you’re on Linux, you won’t have problems learning Git. If you do, you shouldn’t be using Linux.
 
Xeo
@CatPlusPlus If you're on Linux, just use Mercurial?
 
That's not GUI.
You can 'just use Mercurial' on every platform, that's not the point.
 
Who needs GUI when you have SWAG.
 
Everyone needs GUI.
 
Xeo
5:07 PM
Question, what's the big difference between git and hg?
 
I don’t need a GUI.
 
@Xeo If I use std::find<std::string::const_iterator, char> I get big error
 
It's the greatest shortcut for computer things any single man could have conceived.
 
GUI lowers the entry barrier for non-very-technical people.
 
@Xeo Git is made by Trollvalds, Hg isn’t.
 
5:08 PM
@daknøk Trollvlads?
 
@Xeo They differ mostly in philosophy.
Underlying model is pretty much the same.
 
Xeo
k
 
Though
if I use Github
And I don't want to opensource my stuff
Don't I have to pay?
 
git exposes much more internals, and you can shoot your foot in more imaginative ways.
 
Xeo
@ThePhD Think so
 
5:09 PM
@ThePhD GitHub private repo’s are paid. Bitbucket is free for up to five users, IIRC.
 
Well, github's out then.
 
You can use bitbucket, or just host the repo yourself.
Or not have a central repo at all.
And just exchange changesets within the team.
 
Throw around a thumbdrive every 4 hours.
Pass it up and down the row.
 
Networks were invented like 50 years ago.
 
Maybe I could wire everyone up into the same LAN drive.
 
Xeo
5:10 PM
Dammit, what's up with LWS.
 
Just push/pull between people who want to exchange things.
 
... Though at this point,
can't I just use a Dropbox?
 
Xeo
hg push 192.168.0.5/some/path I think it is
 
You could use it as a remote, maaaybe, but it's generally a bad idea.
 
@ThePhD no
 
5:11 PM
It's easy to get conflicts inside the repo internals.
 
Xeo
@ThePhD Dropbox has limited revision history
and thanks to automatic updates, after ~five ctrl-S, you're screwed
 
mercurial > git anyway
 
@Xeo does it have any? My fiance deleted chunks of a file, and I couldn't figure out how to revert it
 
Well, we already covered not using Dropbox as a VCS.
Because it's not.
 
Xeo
@MooingDuck Usually, you can just browse the recently deleted stuff
 
5:12 PM
You can create a remote repo inside DB and push to it.
But that's a bad idea, too.
 
@Xeo checked that. oh well
 
Xeo
@CatPlusPlus That's kinda doubled, isn't it
 
Well, no, at this point you care about sync capabilities not versioning.
 
@CatPlusPlus And how do you resolve conflicts in the repo state?
 
@MooingDuck @Xeo I don't need revision history for all time. I barely need a revision history for five minutes back. My IDE is almost always open, and the only time my laptop "crashes" is when I pass out and the plug happens to fall out and it runs out of power. So I can usually CTRL-Z my way to victory.
 
5:13 PM
That sounds like a true nightmare.
 
That's why I said it's a bad idea
 
@ThePhD no, you actually need revision history. Trust us
 
@ThePhD Take it from a person who used to be very lax in this way: you really need revision history.
 
@ThePhD You do.
 
@DeadMG Hehe.
 
5:14 PM
@___@ Okay, alright. I need a Revision history.
 
@DeadMG me too :(
 
Sheesh.
 
@ThePhD The puppy used to think like you.
 
Even if you use vim with infinite persistent undo.
 
Xeo
@MooingDuck With the new GUI, it's even easier.
 
5:14 PM
It's not a replacement for version control.
 
@CatPlusPlus branching, forgot branching.
 
Xeo
Just log in, click on a folder, and click the little bin icon on the upper section to show deleted files.
 
Then I'm back to finding an SVN then.
Er, a VCS
 
@Xeo yeah, but the file wasn't deleted, it was the data in the file that was deleted :(
 
SVN is bad except for very specific purposes.
 
Xeo
5:15 PM
@MooingDuck Oh. Second
 
@MooingDuck AFAIK DropBox keeps versions up to 30 days.
 
It does.
Right click on the file, Dropbox, Previous versions.
 
@R.MartinhoFernandes This is going to be a 3 month project.
That might be sufficient history?
 
@ThePhD Mercurial or Git
 
@CatPlusPlus oh hey
 
5:16 PM
No, forget DropBox.
 
i.e., bitbucket or github
 
Dude, just use bitbucket, lol
 
Okay okay.
Sheesh, everyone's so insistent on a VCS. Is it really that wonderful?
 
You've already wasted more time looking for alternatives than it takes to setup and learn to use it.
 
5:16 PM
Yes.
 
No, not using one is terrible.
 
Anyone linked this yet? hginit.com
 
Xeo
@Mooing: Meh, don't have any text files in my Dropbox it seems
@R.MartinhoFernandes No, but I read that :)
 
are you really still there? Duh. You were online, like, for the whole day
 
It keeps history of all files.
 
5:17 PM
@ThePhD yes, yes it is
 
Xeo
@BartekBanachewicz Who?
 
Alright. Anyone have any tips on how to make sure things like Hg or Git force a get/pull every so often?
 
@Xeo well, you for example ^^
 
Xeo
Well, I was at the job-finder-thingy during the day, and am now at home
 
@ThePhD Don't do that.
Well, you could, but it's waste of time.
 
5:18 PM
@CatPlusPlus =[
 
@Xeo how exactly were you at the job finder? Their office or wut?
 
Low frequency of pulls is a social problem. Don't solve it at the technical level.
 
Xeo
Job-finder-thingy
 
@ThePhD part of the point is that the source control has working code at all times.
 
Branching, merging, read up.
 
5:19 PM
@Xeo .... which is?
 
Xeo
Aka seminar like thing.
Kinda hard to explain
 
@MooingDuck That's not really necessary.
 
Back to Wikipedia and looking all these fanciful newfangled technology terms up.
 
And even harmful.
Commit early, commit often.
Branch, branch, branch.
 
5:20 PM
Save the fucking changes. It will save your ass.
 
@CatPlusPlus oh right, I forget best practices with VCS, because we don't do branches >.<
 
Don't keep a working directory uncommitted for 2 months, because you're working on something that breaks the build.
 
@CatPlusPlus easy enough to see the value in that
 
@MooingDuck ouch
 
It's silly and one day you'll realise that last drunken coding night you do because you're miserable actually ended up with you deleting the repo.
So, commit, push, backups, things.
Always.
 
5:22 PM
@CatPlusPlus Speaking from experience?
Don't drink and delete the repo.
 
I'm not that miserable yet.
 
posted on September 26, 2012 by Anders Schau Knatten

Google C++ Testing Framework (aka. GoogleTest) is a unittesting framework for C++. This post describes how to install it, and set it up in your project. I am using GoogleTest 1.6.0 here, but other versions should be similar. Installation First of all, download the latest version from the GoogleTest download page, and unzip it. Inside, [...]

posted on September 26, 2012 by Anders Schau Knatten

I recently gave a demo of GoogleTest at Kjeller Software Community. These are the notes from my demo. My apologies to those who did not attend, these might not make much sense unless you saw the demo. Installation See my post about installation and setup of GoogleTest in your project. Test types TEST(TestCaseName, TestName) A [...]

 
Look at my organisation of Failstat: we did have a rule of keeping master repo buildable, but at the same time you can commit and push as much as you want.
 
Failstat, lol
 
anyway, we're doing hackaton today; iPad game in 5 hours. tons of fun /cc @Xeo
 
5:23 PM
This isn't dumb SVN, the two is not mutually exclusive.
 
@CatPlusPlus Failstat is not really a shining beacon of organization. Especially considering the fact that nothing got done.
 
@MooingDuck @CatPlusPlus Maybe it's just how I develop, but I've never really had to ever look-back at my code. Usually I work on something until it's working, and then move on to the next piece. Everything usually works in concert up until I do a huge rewrite of a component, and then branch out and make everything else recompatible.
 
Well, I was in charge of build system and I did it so.
 
I've learned how to usually stay on top of everything in a constant-commit, constant-pull situation (since my second to last team project was done in Dropbox, and then the last one was actually with that weird TFSPreview stuff)
 
@ThePhD Maybe you never had to look back because you didn't even think that was a possibility?
 
5:24 PM
Also repo organisation was flawless.
 
Xeo
@CatPlusPlus Hm, how exactly does that work if your *push*es might actually kill the build?
 
Everything is great regarding kyrostat, except maybe the fact that absolutely no work has been done about it
 
@CatPlusPlus Yes, flawless, but with no code.
 
@Xeo You push to your own clone, not the master.
 
5:25 PM
actually, the whole pull request thing worked pretty well
 
CI picks up and verifies clones, and when you go green, you submit a pull request to the maintainer(s)/code reviewer(s).
 
@R.MartinhoFernandes Maybe? That might be because I never really go too far into just prototyping for the hell of it. I think a crapload about the code I'm writing before I write it.
 
Of course it did. I'm that awesome.
 
@CatPlusPlus NO WORK GOT DONE.
 
@ThePhD Just use VCS, it's not that much of a hassle, and you will need it sooner than later.
 
5:26 PM
@CatPlusPlus Yes sir.
 
@R.MartinhoFernandes Hey, I'm not you, you lazy bastards.
Build system and CI works.
 
@CatPlusPlus Who are you calling lazy bastard? Ogonek was spun off of Failstat.
 
@ThePhD I told some people at work I'd fight them for not using a VCS. They're weren't scared of me
 
@Collin ... until they started bleeding, right?
 
well, the problem is that our communication sucked, nobody did anything, and the only guy who was doing anything vanished
 
5:27 PM
@Collin Haha, VCS Cage Match. Github or GitOWNED.
 
I do hope he didn't get hit by a bus or something
 
@R.MartinhoFernandes Uhh... well I finally got them to do one giant commit at the end of the project.. to SVN :'(
Can't say I carried a lot of weight then
 
@DeadMG He literally left no trace.
> seen Aug 20 at 17:02
 
The new std::array<T, int size> is for compile-time size-known arrays, right? You can't pass a dynamic variable 'size' into it, right?
 
more worryingly, his domain elapsed
 
5:30 PM
Right.
 
@ThePhD all template parameters are compile time. always. period.
 
@R.MartinhoFernandes github.com/Overseer?tab=activity (assuming he's the only Domagoj Pandza who's a programmer)
 
!!! 561 Errors and 122 warnings CONQUERED.
 
Maybe he's decided to cast off all technology and is now living in a cabin in the woods spending his days collecting berries, gathering firewood, and hunting grizzly bears with his bare hands.
 
5:33 PM
.:. Taking a moment to bask in the glory and hit F7 .:.
 
@Collin he's been on github and scribd recently
 
Oh, missed the fork, only looked at the last commit
 
... Q_Q_Q_Q_Q LNK2019 RUINS MY GLORY. Oh, well. Back to work....
 
@R.MartinhoFernandes google news shows nothing interesting for Croatia recently
 
Also kernel repo is 600MB, just FYI.
(Related to delta talks)
 
5:38 PM
The linux kernel?
 
maybe I should just use that Singletonfest CEGUI
how bad can it really be?
 
CEGUI... Crazy Eddie's GUI?
 
ye
 
I've always wondered what makes singletons so bad.
 
everything
 
5:40 PM
I mean, besides the fact that usually they're not threadsafe.
 
name a thing and Singletons are bad at it
 
sabotage
 
lol
 
I dunno. For things like a Raytracer, declaring a single ray to reuse for tracing plus allocating that single ray once for each thread on it doesn't sound like a bad way to go.
Or just using some kind of locking mechanism on the single ray, not that I'm going to even pretend I understand how to do C++ multithreading at this point.
 
and has absolutely nothing to do with a singleton
 
@StackedCrooked What result were you expecting?
misalignment is only a performance penalty on x86 except for SSE types.
 
I didn't know what to expect.
So it is not GCC but x86 that is being tolerant.
 
A singleton is an object that's only instantiated once internally and never really copies itself, just gives access to that single object encapsulated inside of the exposing interface.... right?
 
@StackedCrooked ARM is a lot less alignment mistake friendly, iirc.
 
@ThePhD Basically: 1. Enforced single instance. 2. Lazy instantiation.
@DeadMG So I read.
 
5:44 PM
@StackedCrooked Enforced single global instance, lazy instantiation.
 
Ell
abstractsingletonproxybean
 
It turns out that on the gnu-eabi arm compiler distro'd by Linaro, a single long long and a byte take up more space than 14 bytes written out one by one or in an array, Oh god this god turned into an edit instead fo a new post. Dang it, Up Key!
 
I hope you lined up your objects well.
 
Q_Q I can't edit it anymore.
 
@DeadMG ARM/Thumb interworking still gives me nightmares
 
5:47 PM
All the permanent typos. MY SHAME FOREVER TRANSCRIPTED.
 
I'm trying to find a good example where breaking aliasing leads to a bug. But the only examples I can find are the ones that are obviously wrong (e.g. types of different sizes).
 
@StackedCrooked The singleton pattern does not rule on lazy instantiation
it's really just an Enforced single global instance
 
It doesn't rule period.
 
no, no it doesn't
 
Two choices, singleton shit or use more memory. Memory doesn't go wrong, (much), and is cheap.
 
5:51 PM
So the singleton debate is about memory?
 
dafuq does Singletons have to do with memory?
 
what debate?
 
I don't think there is anything to be debated about singleton: it's just utter crap
 
@netcoder die bart, die
 
5:52 PM
0
Q: What is better in this case, macro of inline function?

Viniyo Shoutainline unsigned int getminutes( unsigned int seconds ) { return( seconds / 60 ); } #define GetMinutes(seconds) (seconds) / (60) To be honest I'd ask which one is faster, but I've seen so much on S.O that asking which one is better would grant me me knowledge. (Yes! I'm a knowledge hunter)

 
Singletons? macros? Soddit, I'm putting an Acronis on and going down the club. Bye all!
 
@TonyTheLion dup of a dup of a dup
 
Dup of a poop.
 
@TonyTheLion I posted a comment with 8 questions it's a dup of.
 
5:57 PM
@MooingDuck I noticed
 

« first day (711 days earlier)      last day (4242 days later) »