« first day (1679 days earlier)      last day (3271 days later) » 

2:00 PM
and it's less trivial than you make it sound
 
starbait
 
actually practicing stuff also helps understanding articles
@buttifulbuttefly lol I swear it wasn't meant to be
 
not taken
 
@CatPlusPlus Well, I studied it at uni, and I've read about it again for the past week. I know the properties of each one, and stuff. But theoretical knowledge is not always right. Take for example all that "what's the best container for X" you learned in algorithms books? Cache fucks it up and it's almost always better to use contiguous memory.
 
That's just More Things To Learn
Also it's okay to make mistakes
You don't have to have a perfect solution from get go
 
2:03 PM
@Jefffrey what cache?
 
CPU cache
 
L1, L2 and L3
 
ok
 
@khajvah Professor cache
 
Do you use the Tor browser?
 
2:04 PM
porn cache
 
porn cash
hard earned
 
@JohanLarsson It's a nice thing if you want to experience modem-like speeds on your high-speed high-tech internet connection.
 
:)
enough for most things then
 
@Jefffrey Cat is right, you should make mistakes
 
I know
 
2:06 PM
Cache problems are overrated
 
user1804599
The best data structure is always the hash table.
 
lol
 
What's this kind of chart called I can't remember
 
radar
 
redar
 
user1804599
2:11 PM
spider chart
 
ca also be called polar I guess
 
redard
 
user1804599
kiviat diagram
 
Yeah thanks
 
2:11 PM
retard
 
Xeo
> The radar chart is also known as web chart, spider chart, star chart,[1] star plot, cobweb chart, irregular polygon, polar chart, or kiviat diagram.
many names!
 
I call them naruto charts
 
antarctica chart
 
I call them [1] star plot
 
user1804599
2:12 PM
 
user1804599
Mathematics is a homework solving website.
 
You can't handle [2] star plots
 
user1804599
People dump their homework assignments and other people answer them.
 
The IDE is almost finished ;)
 
user1804599
Swap the variable names and values.
 
2:15 PM
@fredoverflow Homework assignments?
 
@milleniumbug What do you mean?
 
user1804599
]]
 
@fredoverflow Thought it was related to this
righfold says something about homework assignments, fred posts a window with random variable assignments :P
...lame, I know
 
oh...
 
I'll try harder next time
 
2:19 PM
Please do
 
Xeo
oooh, poll about who's going to Gamescom as a "trade visitor".
tick
 
tock
 
dock
 
ducks
 
2:22 PM
missed opportunity oh well
 
user1804599
@Ven let's implement Perl 5.
 
@fredoverflow looks good fred
 
@rightfold Make an APL-Perl hybrid instead
 
user1804599
That already exists and it's called Perl.
 
Not enough APL though
 
2:24 PM
sigh
 
@CatPlusPlus I think the problem is they are not pervasive, but iff caching is a problem then the bugs are untraceable/annoying/deadly
@BartekBanachewicz Who of your colleagues sent this... o.O
@JohanLarsson bear charts!
@buttifulbuttefly you meant "docks", obviiosuly :^
 
-2
Q: Changing value of const variables in C++

D-KI'm playing around with the following code: const int a = 10; int b = (int) &a; int * p = (int *) b; *p = 20; cout << "&a = " << &a << " a = " << a << endl; cout << "p = " << p << " *p = " << *p << endl; Because assigning address of a to p is not allowed directly, I used two typecast to achiev...

3 upvotes? really?
fucking cancer
 
Polittical rebuttals, no doubt — sehe 5 secs ago
 
Ha, I'm just below sbi on stackrating (and above Jerry? wtf, this rating is completely off)
 
@sehe none.
I'm just reading dilbert :P
Also I found a code commited by Lead Dev that breaks the code convention
he introduced a local variable with m_ prefix
 
2:32 PM
fire-worthy
 
he made me fix my pull request and add those stupid m_ everywhere to class fields last time
because "convention isn't up for discussion and it's made to be abided"
well you fucker.
 
@BartekBanachewicz rotfl
 
yeah this code has things like APIs taking std::string&& only
for whatever reason
C++11 good me use it now
 
@BartekBanachewicz ayyy lmao
 
stupid fucking useless conventions
 
2:35 PM
did I mention he stops PRs because of trailing spaces
 
convention > preference
 
Trailing spaces are a crime against humanity
@BartekBanachewicz That's a good thing I think
 
what harm do they do?
 
THEY REDUCE COMPILATION TIMES
Add to that a few comments trashing the i-cache and your app is basically dead
 
2:37 PM
c++ only right?
 
When I press End the cursor moves to the end
 
@BartekBanachewicz lol
 
control freaks
 
user1804599
bukkake fans
 
Most people focusing of that kind of stuff end up forgetting about "usefulness" or "getting things done"
 
2:38 PM
@BartekBanachewicz how many devs were there?
 
@JohanLarsson With trailing spaces it moves to the end, after the spaces
 
#include<look_ma_no_spaces>
 
Deliver functionality? Not with trailing spaces you aren't
 
@JohanLarsson were where
 
at the company where space nazi managed the repo
 
2:39 PM
@MarcoA. Thanks. It's coming along nicely so far.
 
lol space nazi reviewer
 
not sure if this was posted already
 
nazis from space
 
.
lame, puke
 
@fredoverflow I'm writing an IDE front-end or something like that
I'll link it to you as soon as I finish implementing some missing features
 
Is it normal that UI code looks like JavaScript?
button.addActionListener {
    editor.requestFocusInWindow()
    when (button.getText()) {
        "start" -> {
            button.setText("step")
            val parser = Parser(editor.getText())
            val statements = parser.statementList(Token.EOF)
            val context = Context()
            memoryUI.memory = context.memory
            repaint()
            Thread(Runnable() {
                for (statement in statements) {
                    queue.take()
                    SwingUtilities.invokeLater {
 
user1804599
No.
 
user1804599
JavaScript programs are single-threaded (lol web workers).
 
user1804599
And no Swing.
 
@CatPlusPlus You should ask more questions on SO and write nerd as a comment to all answers you get :)
 
2:48 PM
I ain't posting on snack overflow
 
user1804599
I want to snack.
 
user1804599
Hmm, MGS V motorcycle.
 
@CatPlusPlus but now you have a reason
 
why did you stop?
 
2:50 PM
Because it sucks
 
@fredoverflow I did jQuery once, writing 7 level callbacks was fun, but debugging was a nightmare
 
user1804599
Until JavaScript gets stackful coroutines it's not even worth considering using.
 
@BartekBanachewicz The fuck. You're working in a team with a specific coding convention, you have to follow it. Especially when we're dealing with something like names.
 
and yes, debugging was kinda nightmarish
 
2:52 PM
@fredoverflow Nothing like binding in Swing?
 
@MarcoA. Except that it was only once
for me
 
user1804599
    ?   ?    ?
  ?   ??   ?
    ??   ? ?   ?
   ?   ?  ? ?
 
@milleniumbug same for me. I did that for fun but I don't quite have any work opportunity of using it (and I'm not too disappointed by that)
 
@rightfold question mark forest?
 
2:55 PM
@rightfold if I join the question marks, will that make a dog appear?
 
could be a new language
 
@MarcoA. ?
 
user1804599
    !   !    !
  !   !!   !
    !!   ! !   !
   !   !  ! !
 
?????????
(mine is smaller but I use it better)
7
 
??
 
3:02 PM
@rightfold infinite questions
@rightfold infinite smack downs
I don't either. Starring it to death.
Well. Giving it _all_ the stars I got
@BartekBanachewicz I just wanted to say. I admire how you don't get bitter about the feedback you received. You got stronger out of it
 
I starred cos trusted bear, not gonna watch it.
 
@BartekBanachewicz lol
 
@JohanLarsson I heard nice things about this talk. Starred because I'm gonna watch. Definitely
 
Maybe I'll watch it, never gonna use it or go near it I hope.
Horse competition tomorrow, usually means a couple of hours of tutorials.
 
user1804599
PONIES
 
3:08 PM
@JohanLarsson What do you mean?
 
650 kg and retarder
@fredoverflow Wpf has a thing called binding, knockout & angular are ~inspired by that.
 
lol
 
@JohanLarsson And what are those "bindings"?
 
lounge is disintegrating
cats and gifs living together
 
3:10 PM
@fredoverflow It lets me write <TextBox Text="{Binding SomeProperty}" />
The best thing with wpf by far.
 
@JohanLarsson notepad does that
 
@fredoverflow Automated value propagation
Think spreadsheets
Welcome to reactive programming
 
never thought of bindings as reactive before but yeah
 
i.e. observer pattern
 
~patterns~
 
user1804599
3:11 PM
MVC!
 
@fredoverflow Are you on a win box?
 
QRT!
 
It's really about automation not following a pattern
In reactive code if you have a = b + c, then changing b or c will change a without any manual intervention
 
@sehe Worse. An owner who should know better posting an animated gif.
 
separation of concerns
separating out an extremely resuasble component
 
3:12 PM
 
That's another thing
 
I'm so fucking productive today!
 
Your commit messages are bad
 
@JohanLarsson I still have no idea what you're talking about.
 
26
A: Why does the Java compiler not like primitive int as type for values in HashMap?

Jon SkeetIt's fine with Integer, but not okay with int - Java generics only work with reference types, basically :( Try this - although be aware it will box everything: HashMap<String,Integer> userName2ind = new HashMap<String,Integer>(); for (int i=0; i<=players.length; i++) { userName2ind.put(orde...

wtf java
 
user1804599
3:13 PM
@CatPlusPlus How to write good commit messages?
 
user1804599
HELP!
 
@CatPlusPlus Care to elaborate?
 
user1804599
@AlexM. Use Scala and @specialized.
 
@fredoverflow If you have a machine that can run a wpf app I can write a sample for you.
 
@rightfold I can't use scala obviously
 
user1804599
3:14 PM
Owned.
 
@JohanLarsson I don't use Windows.
 
@CatPlusPlus I don't get it, are my commit message too long?
 
user1804599
@CatPlusPlus That's only about formatting.
 
3:16 PM
Beh I don't know how to make UIs
 
user1804599
It's not interesting.
 
@AlexM. I think Map<String, int> will work in Java 10.
 
I am bored
entertain me
throws crumbs
 
@fredoverflow I'm stuck with Java 7 or sth, anyway the problem's in the past now
it was for HashSet<int> in my case
solved
 
3:18 PM
I'm looking forward to going home
and eating pizza
 
user1804599
@AlexM. hahaha Java 7
 
looking forward to the weeekend
 
@buttifulbuttefly you come to a room full of depressed misanthropes to be entertained?
 
@JerryCoffin lel
 
user1804599
@sehe oorlel
 
user1804599
3:19 PM
@AlexM. how large are the integers in your set?
 
@rightfold exactly
 
@rightfold ... as in max values?
I dunno
 
@AlexM. Did you use HashSet<Integer>?
 
user1804599
@AlexM. Yes.
 
@fredoverflow yeah waiting to see if it compiles OK
 
user1804599
3:20 PM
If they are very small, implement Set<Integer> using a single integer.
 
@AlexM. Java 7 is rotfl, it doesn't have Java 8 streams and/or lambadas and/or function references
 
user1804599
not even Optional
 
user1804599
lol Java 7
 
@rightfold I need to finish this this evening, so not trying to experiment lol
 
user1804599
loser
 
3:21 PM
welp, I finished my own stuff yesterday and normally didn't have anything to do today
 
@AlexM. How long does it take to compile Java code?
 
@fredoverflow They don't look too long to me. Perhaps too short?
Not sure
 
so I asked to help the guys working on the other half of the thing
@fredoverflow first the C++ side compiles, then Java and then they're combined or sth
 
@AndyProwl Of course I have longer explanations for the complicated stuff, but those are not shown in the screenshot.
 
changing Java seems to autorequire C++ recompilation
 
3:22 PM
Mixed Java/C++ project? You poor bastard.
 
Worst of both worlds
 
user1804599
Delete all your code.
 
lol
 
user1804599
You can implement Set<Integer> in terms of BitSet.
 
I can't think of a better way to access Android's API stuff when your main codebase is in C++
stick some Java classes in and call using JNI
 
user1804599
3:24 PM
Use JNA.
 
you can't call Java from C++ with JNA
 
@rightfold Kotlin properties are interesting:
 
user1804599
Oh.
 
abstract class Statement {
    var position = -1
        set(value) {
            if (position != -1) throw AssertionError("attempt position reset from $position to $value")
            $position = value
        }
 
@fredoverflow It's not like I'm a commit message guru but peeking in a random @Cat's repo, it doesn't seem to me like his commit messages are better than yours :P
user image
3
 
user1804599
3:24 PM
@fredoverflow need more contract programming.
 
@AndyProwl My worst one was "Dev commit"... Needless to say I kept it local and amended it later...
 
Wait, "removed", "fixed", "added"? Aren't you supposed to use present tense in git commit messages?
> chrome is not a real browser
lol
 
these messages <3
 
user1804599
3:27 PM
% git log --pretty=oneline --abbrev-commit | grep -v Merge | awk 'NR > 24 && NR < 35'
507c886 more
0f8af9b more
79476eb more
78718ec more
9b14d82 more
5800f78 more
06a96d6 more
f3f0bcd mroe
c367a60 Top kek
ceb6dd6 woohoo
2
 
@rightfold On my first attempt, I forget the $ sign and got a stack overflow :)
 
@CatPlusPlus :D
Anyway I suck at writing messages too
 
Ven
Commit messages are actually something I can kinda be proud on.
 
@fredoverflow My last project has half the commit messages in English, and the other half in Polish
 
Ven
but only if I'm using intellij or emacs to develop the project
 
user1804599
3:29 PM
lol being proud on something
 
I usually write them inline with git commit -m "..." and they always contain only one line which is not wrapped.
 
Ven
of.
@AndyProwl ><
 
yeah I know
 
@Ven proud off
 
user1804599
@AndyProwl I do it even better:
 
3:29 PM
@milleniumbug How about you polish your English commit messages instead? ;)
 
user1804599
% which gm
gm: aliased to git add -A . && git commit -m
 
Ven
@milleniumbug oy m8
 
@AndyProwl bad
 
Ven
@fredoverflow damn the pun
 
yeah I know
 
3:30 PM
I have better commit messages in projects I care about
 
@fredoverflow dat punning
 
"Why not what" is an important point
 
Why would you have projects you don't care about in the first place?
 
ahahaha
 
work stuff?
 
3:31 PM
Don't you mind your colleagues reading all the crap messages?
 
Did ogonek die?
 
@fredoverflow He's channeling his inner rightfold.
 
I'm the only one who cares about commit messages
 
Xeo
@fredoverflow I always use past tense
 
Anyway homepage or jabbasnake or experimental repos don't warrant any effort
So I just don't care
 
3:32 PM
@Xeo On drawings past tense is the convention. Dim 12 was 10.
 
I use present tense. Apart from the link Cat posted, I've read another git guide saying this is the common practice
 
memes forbidden
 
no fun allowed
 
3:34 PM
good call
 
It's not fun by any definition
 
def fun
 
Xeo
@AndyProwl Meh guides
 
have I hinted at how much I hate reddit
 
When are commit messages used really?
 
3:35 PM
@Xeo What's wrong with them?
 
@buttifulbuttefly /r/no
 
I tend to look in file history and things more often
 
I mean, I've never used git before so when I started using it I read a guide
 
Xeo
I mean style guides
 
I read other's messages though so I guess that is a use case.
 
Xeo
3:36 PM
not tutorial-like guides
 
Commit message guides are like code style guides
Just do whatever the project is doing
 
Xeo
^
 
oh, well yeah it was a (online) book on Git that happened to suggest using present tense because it's common practice
 
Xeo
somebody has made an arbitrary decision somewhere, just stick with it
 
And if it's your project then just do whatever the fuck you want
I'm trying to use present tense but it's weird and meh
 
3:38 PM
@CatPlusPlus here you get in-house automated email spam if you don't follow the SVN commit message conventions
 
I used past tense before but got bashed on
 
Ven
@rightfold why do you hate me that much
 
we use prefixes for new features, modifications and removals and if those are missing...
BOOM
 
He just shows love in an unusual way.
 
Xeo
Man, Taiga's meowing so badly right now. She's ravenous, as a side-effect of the spaying.
gotta stick to the standard amount, though
 
3:39 PM
why don't you call it neutering
you're the only person in the world I've heard so far using "spaying"
 
2 days ago, by Cat Plus Plus
"Spaying" is the term actually
 
spying
 
Xeo
But seriously, it's bad. She's staring madly at my food and comes running everytime something rustles. :<
 
Neutering, from the Latin neuter (of neither sex), is the removal of an animal's reproductive organ, either all of it or a considerably large part. "Neutering" is often used incorrectly to refer only to male animals but the term actually applies to both sexes. The male-specific term is castrating while spaying is usually reserved for female animals. Colloquially, both terms are often referred to as fixing. In male horses, castrating is referred to as gelding. Modern veterinary practice tends to use the term "de-sexing". Neutering is the most common sterilizing method in animals. In the United States...
 
> "Neutering" is often used incorrectly to refer only to male animals but the term actually applies to both sexes. The male-specific term is castrating while spaying is usually reserved for female animals. Colloquially, both terms are often referred to as fixing.
 
3:41 PM
@Xeo give her just a bit more?
 
Xeo
@AndyProwl nope
not allowed
 
dangerous?
 
Xeo
the ravenousness passes after a few weeks
but if I give her more now, she'll accept that as the standard amount
 
weeks? poor thing
 
Xeo
3:42 PM
Well, I just had her ovaries and uterus cut out, so hormones are going berserk.
 
@buttifulbuttefly memories like this are the reason they invented frontal lobotomies.
 
My frontal lobotomy goes by the sweet name of 4chan
 
some girl is trying to give out her mailaddress to someone on the phone. Now 50 people have to listen to her screaming letters.
For some reason she started to talk really loudly when she got to the address.
 
maybe she hopes someone will hear it and stalk her
 
could be
 
3:52 PM
You save my life :) — Fernando García Corrochano 1 min ago
aaand another one;
saving lives gets a bit boring after a while
This is much more entertaining:
Well... include boost/serialization/nvp.hpp too... — sehe 1 min ago
 
are you contributing to boost?
 
contriboosting
 
Holy shit
 
Best match of agar.io I've ever played
I've been the boss of red for more than an hour and basically played against green for all that time.
 
3:56 PM
@JohanLarsson nope. Well. Rarely
 
@BartekBanachewicz That looks like something CA Technologies does as well.
 
Some green guy "Startup" trying to blow me up multiple times. And by stipulating an ally with blue, I've finally got my revenge on "Startup" and gave all my mass to the blues.
 
@Jefffrey pff team deathmatch is easy :p
 
@Columbo are you telling people to "shorten" their name mates o.O
 

« first day (1679 days earlier)      last day (3271 days later) »