« first day (1078 days earlier)      last day (3862 days later) » 

10:00 PM
@Ell That's what she said.
 
GTA V on SO, that's a new one...
 
> [17] Prefer move semantics and copy-on-write to shallow copy.
omg Bjarne doesn't hate COW.
:D
We should skin him.
Ok, maybe now.
 
how about you cow down for a second
 
The latest edition of the C++ programming language book is pretty good.
Each chapter ends with a list of do's and donts, Effective C++ style.
 
I considered buying it but I already have Programming Principles and Practices Using C++
 
10:04 PM
@Borgleader I also have that one. And I preordered a Tour of C++ as well.
 
I also have the Effective C++ series, so there might be overlap
 
Xeo
@StackedCrooked COW is awesome if you never write :D
 
Yeah, and DeadMG made it very clear to me that it won't work as good as hoped.
 
@Borgleader Gaming.SE, probably.
 
It's amazing that std::cout << x takes x by non-const ref.
Almost seems like a anti-COW measure.
 
10:07 PM
@EtiennedeMartel I just wasn't expecting GTA V ads to reach SO
 
Gaming is a big SE site, and GTA V is a big game.
 
> Release locally owned resources before throwing an exception.
^ Hey we could use RAII to throw .. never mind.
 
VS says it triggered a breakpoint. I chose to look at it.
Then it aborted anyway.
 
ok thank you. Looking for a programming language developed, as far as i can remember by siemens. It can be used with databases like mysql, and can keep data live, so automatically updates.
 
10:13 PM
Observation is not a deciding factor in abortion.
 
user1804599
@alwayslearning Thank who for what? :v
 
@not-rightfold For destroying him.
 
Super red haxxor square.
His name is Jimmy.
 
@alwayslearning Something like plsql?
 
user1804599
10:15 PM
PL/pgSQL ftw.
 
@StackedCrooked Hm?
 
it isnt an sql, more of a language to use like you do with php
 
user1804599
lolphp
 
@Pawnguy7 Looking at something won't affect the run of a program :) (Unless it's eye-tracking software.)
 
en.wikipedia.org/wiki/PL/SQL - sounds good not sure if it was that though.
 
10:18 PM
@not-rightfold Ken je dit?
De botsautomix van Gunter D.
 
user1804599
@StackedCrooked Nee, jij?
 
Heb ik onlangs leren kennen. Goed fout.
 
@StackedCrooked You would think so. Not the first time something of this nature has happened to me.
 
user1804599
@StackedCrooked Ik niet! :D
 
user1804599
Vlaams accent is grappig.
 
10:19 PM
Blijkbaar kunnen veel van mijn collega's hakken.
 
hello world.
 
worst thing is googling Siemens does not help they develop so much, but can not find the name of the programming language.
 
user1804599
@refp hello moon.
 
Ell
@refp hi
 
@not-rightfold It was released on CD and got Gold (10000 sold) in very short time.
 
Ell
10:20 PM
change your avatar. Change your nick.
 
user1804599
@StackedCrooked Sounds like Gangnam Style or GTA V.
 
@not-rightfold sailor moon
 
user1804599
Mare in the Moon.
 
@Ell change your life. $9.99, call now!
 
user1804599
@StackedCrooked Ik ga in België wonen tot ze de belastingen flink verlagen in Nederland.
 
10:23 PM
@not-rightfold looney toons.
 
user1804599
Just over the border, so I can still buy clothes and groceries in The Netherlands, where they’re cheaper.
 
user1804599
@refp my little pony
 
user1804599
my little refp
 
got it, Erlang!
 
user1804599
@alwayslearning Erlang is not from Siemens, silly.
 
user1804599
10:23 PM
It’s from Ericsson.
 
really
 
On the team building even my colleagues turned nuts on this song.
 
ahhh
lol hence why its taking me all day
 
user1804599
Erlang is a great language.
 
worth spending all day finding it
thanks again, yeah remember that it sounded great, cant wait to explore it
 
user1804599
10:27 PM
Erlang may seem strange at first, but just remember not to catch exceptions and you’ll be fine.
 
I am so confused.
 
user1804599
@Pawnguy7 Remember: no classes.
 
The grid's size is 20 by 20.
The condition is true, it pushes back, and... leaves the loop.
Condition true on 0,0, that is.
 
Optional braces is the worst fucking idea ever
 
user1804599
Optional braces are the best idea ever.
 
user1804599
10:30 PM
Just not the way they’re used in Ruby and Elixir. :P
 
Fuck everything Ruby does
 
it is strange when coming from php, but seems like a good place to advance to.
 
@Pawnguy7 Why don't you have braces man?
 
user1804599
@alwayslearning Everything but Java is better than PHP.
 
@Rapptz optional?
 
10:33 PM
yeah dont like the speed security etc but is simple i guess
 
user1804599
Python is simpler.
 
@Pawnguy7 Horrible.
 
user1804599
@Pawnguy7 Indentation is also optional.
 
user1804599
Keep it readable and use braces.
 
user1804599
Optional braces are a terrible idea.
 
10:34 PM
Indentation makes it readable. In my opinion, not having braces there is more readable.
Anyway, what might make it jump the loop so abruptly?
 
std::optional<T> is a good idea though
 
never looked into python, thought it was like perl and c++, the harder languages?
 
but I think "optional" is not a really good name. "maybe" would be much better.
 
user1804599
Perl and Python are not hard.
 
user1804599
Certainly not harder than PHP, since they’re actually quite consistent and not full of annoying illogical corner-cases.
 
Xeo
10:36 PM
@Pawnguy7 Psst: .emplace_back(x, y)!
 
@Pawnguy7 Why do you think it does?
 
user1804599
@StackedCrooked “perhaps”
 
Xeo
@Pawnguy7 Are you sure about that?
 
user1804599
@alwayslearning Django is awesome.
 
10:37 PM
@not-rightfold conceivably
 
user1804599
Flask is cool too.
 
your opening my eyes
 
Xeo
@StackedCrooked It's a value that's optionally there
Both "optional" and "maybe" work fine, imo
 
user1804599
@StackedCrooked Allow ? in identifiers and call it std::wie_weet?<T>.
 
user1804599
T? :P
 
10:38 PM
asjemenou<T>
 
user1804599
std::for_all_I_know<T>
 
nobody_is_perfect<T>
oops<T>
 
user1804599
T<T>
 
@Xeo It is at the point of it being pushed back.
 
user1804599
Is that possible with template templates?
 
10:39 PM
@CatPlusPlus I stepped through it, and it only ran once.
@Xeo No idea what that is.
 
Xeo
@not-rightfold no, infinite type
 
user1804599
:'''(
 
Uh then step through it again, but this time pay attention to what's happening
 
Xeo
@Pawnguy7 Constructs the Vector2i in-place, using x and y as parameters to the constructor.
 
@Pawnguy7 Well, you missed your chance to fix this bug. Move on with your life.
 
10:41 PM
std::fuck
 
@Pawnguy7 That is funny after reading your former statement.
 
@Xeo Ah. I didn't know that existed. I will use that.
@StackedCrooked I don't understand the last two things you said.
 
@Xeo VS2012 has emplace_back?
 
user1804599
enum class std { hiv, chlamydia }
 
Xeo
@Rapptz Even VS10 had it
 
user1804599
10:42 PM
Screw namespaces.
 
> Indentation makes it readable. In my opinion, not having braces there is more readable.
> Anyway, what might make it jump the loop so abruptly?
 
@ not-rightfold Silly question i know, but i really do want to learn a new language for web development, cms databases, mobile apps. Your personal opinion, what is the "easier" or fastest language to adapt to, keeping security and speed in mind
 
@Xeo How do they make it work without variadic templates?
 
Xeo
overloads
 
But seriously, how did you step through it and still don't know why the loop exited
 
Xeo
10:43 PM
the same way my make_unique works in VS
 
If you don't use braces then you'll shoot yourself in the foot x% of the times.
 
Xeo
or how their tuple/make_shared/ works
 
That sucks. :(
 
user1804599
@alwayslearning Python with Django.
 
For them, I mean.
 
user1804599
10:44 PM
Certainly easier than Erlang, and welp it was created by people with brains so it’s not too insecure either.
 
user1804599
Unlike PHP.
 
@CatPlusPlus Maybe he had optimizations enabled.
That makes the code jump around.
 
user1804599
Use a deoptimizer.
 
valgrind :P
 
Hrm. It seems to work when I add braces only on the y loop.
 
10:46 PM
Now..
 
Why is that?
 
I haven't seen your code so I don't know.
 
user1804599
Did you have something after the if statement?
 
user1804599
Also don't make screenshot of code jesus fucking christ wtf I don't even huh why wat.
 
5 mins ago, by StackedCrooked
@Pawnguy7 That is funny after reading your former statement.
:D
 
10:47 PM
@not-rightfold Thank you for your thoughts
 
user1804599
No problemo.
 
std::vector<sf::Vector2i> emptyBlocks;

for (int x = 0; x < grid.getSize().x; ++x)
for (int y = 0; y < grid.getSize().y; ++y)
{
if (!grid.isSolid(x, y))
emptyBlocks.push_back(sf::Vector2i(x, y));
}

Random random;

for (auto block : emptyBlocks)
if (random.nextBool() && random.nextBool() && random.nextBool())
turrets.push_back(Turret(sf::Vector2i(block.x, block.y), 5));
}
 
Ell
TIL circumcision reduces risk of HIV
 
I would never want to know @not-rightfold's thoughts.
 
Your welcome.
 
user1804599
10:47 PM
That’s better. Now indent it.
 
Formatting always seems to eat my text.
 
Xeo
do you use tabs?
 
user1804599
Hit up key thrice and hit control+K and then hit return.
 
@alwayslearning Despite the fact that he's a tool, he's right. Screenshots of code are ugly.
 
user1804599
@EtiennedeMartel It wasn’t a response to that message.
 
Xeo
10:48 PM
@EtiennedeMartel That was a reply to something completely different
 
@Xeo yes
 
Look. My brain is currently in porridge.
 
user1804599
loltabs
 
@EtiennedeMartel ???
 
Not my fault if what I say doesn't make any sense.
 
10:49 PM
Also, I, for one, like screenshots of code.
 
user1804599
You also like tabs and lack of braces.
 
Don't Starve is nice.
 
user1804599
> if (random.nextBool() && random.nextBool() && random.nextBool())
 
Also you should set your editor to remove unneeded whitespace.
 
user1804599
10:50 PM
lolwut
 
@StackedCrooked Oh. It seems I got the end of function brace in there.
@not-rightfold seems funny to me, and it works, so why not?
 
@not-rightfold randomize for 1/8 times :D
@Pawnguy7 You need to clean up your act. This is low quality code.
 
@StackedCrooked enlighten me.
 
user1804599
It lacks braces.
 
@Pawnguy7 Then stop.
 
user1804599
10:52 PM
HALT!
 
@Pawnguy7 Duplication is bad. See the first chapter of The Pragmatic Programmer.
 
user1804599
HAMMER ZEIT!
 
The code doesn't clearly show your intent. Did you want 1/8 chance? Or are there side effects that you want to have 3 times?
 
You need to stop listening to idiots who think using tabs is a good idea
 
Two or more, use a loop. is what Dijkstra said.
I don't really agree though :D
 
10:53 PM
Ugh no don't use a loop for this.
 
Yeah.
> As Edsger W. Dijkstra himself put it : "two or more, use a for".
At least you didn't use goto.
 
user1804599
if (random.NextInteger(Range(Inclusive(0), Exclusive(8))) == 0)
 
> x < grid.getSize().x
getSize().x ...
 
user1804599
need moar getSize().getX()
 
What is the X of a Size?
Size has width and height. Point has x and y.
 
10:56 PM
x is width, y is height
 
user1804599
@StackedCrooked ⌥;
 
It's called not creating a fucking class for every possible naming of two vector components.
 
user1804599
Ugh using vertexes for sizes.
 
for (int x = 0; x != grid.width(); ++x)
 
user1804599
Make a size class.
 
10:57 PM
And use abstract singleton factory.
 
At this point, it is more of a test. Just to see the populated stuff appears. Everything else in there will change later.
 
Don't make a size class if you already have a vector :cripes:
 
@CatPlusPlus Nobody has told me to use tabs.
@CatPlusPlus I didn't make a size class?
 
user1804599
@CatPlusPlus Do so.
 
@Pawnguy7 Then don't use them regardless
 
Ell
10:57 PM
Does anyone know how to plonk on mobile?
 
user1804599
It's called using the type system for preventing stupid bugs.
 
No, because nobody uses that shitty mobile interface
 
@Ell Press the power button.
 
Only you can prevent calling width "x"!
 
Ell
Also, don't starve gets boring quite soon I find
Its fun for a while
 
10:58 PM
If there's one thing I love about Java, it's its ability to confuse anyone who reads your code.
 
I already sunk 14 hours into Spelunky
 
Xeo
I sunk 129 into Terraria
 
user1804599
@chris You don't need Japanese text to do that in Java.
 

« first day (1078 days earlier)      last day (3862 days later) »