« first day (1928 days earlier)      last day (3034 days later) » 

user1804599
8:00 PM
 ______________________
< Being bad at cowsay. >
 ----------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
@LucDanton is there a coogle to google C syntax-like things? :D
 
still, a young dev who had no idea about pointers
we must be doing something right
 
@JerryCoffin I guess that they never hire people to work in any other language or capacity, and never hire any juniour devs
 
@LucDanton Does "type asterix c sharp" work? It should
 
@набиячлэвэлиь but but
that ain't my style
 
8:02 PM
@Nooble It is now
 
Nooooo
 
Aligned assignments are very nice
 
@Puppy He does start by saying he's a "pretty senior C# developer".
 
@JerryCoffin Groups as "pretty senior, C# developer"
 
8:03 PM
Why aren't these ordered
 
did you leave out 58 on porpoise?
 
@набиячлэвэлиь That depends. My assignments that were aligned as chaotic evil...weren't so nice.
 
@набиячлэвэлиь please fix
you badlet
 
@набиячлэвэлиь Also I'm not sure if you could change this, but, one liner functions should be one line. Should I even do it like that?
If you can't it's fine I guess.
 
8:07 PM
@набиячлэвэлиь doesn’t look like it—I actually tried with star right after T*, and no luck there either
 
@AlexM. at work, cant submit screenshot
 
do you work for kim jong un or sth
 
@Nooble I can do that, it looks like shit, though
 
@набиячлэвэлиь Does it? Alright I guess. I only did this because most of the functions just relayed it to the implementation class.
 
Ell
@Shoe idk but they were found spying on their users
 
8:10 PM
@Nooble Lemme update the PR so you can see. KK, check it out
 
@Ell nice
 
@Nooble What'cha think?
 
@набиячлэвэлиь It's better before. You're right.
 
user1804599
super interesting
 
@Nooble Reverted
 
8:15 PM
Nah
You are super interesting
 
your collective faces
 
your collective feces
 
user1804599
 
@набиячлэвэлиь One more thing, line 117. The constructor signature is too long so it wraps, but should it really indent?
 
what a truly meaningless question
 
8:18 PM
@Nooble Well, yeah
duh
 
not really
 
@набиячлэвэлиь But it's part of the signature :p
Which should be before the indent.
 
What are you high on, mate?
 
user1804599
8:21 PM
Nice.
 
looks awful
 
@MadameElyse see:
 
@Nooble would look better if you stopped doing the java braces thing
 
 ________________________________________
/ Is less of a problem than a failure to \
\ crop                                   /
 ----------------------------------------
  \                 __
   \               (oo)
    \              (  )
     \             /--\
       __         / \  \
      UooU\.'@@@@@@`.\  )
      \__/(@@@@@@@@@@) /
           (@@@@@@@@)((
           `YY~~~~YY' \\
            ||    ||   >>
 
user1804599
XD
 
8:23 PM
@AlexM. Java braces?
 
user1804599
geitenneuker
 
this {
}
 
@Shoe 7 more profile views required
 
you get it
 
@AlexM. I used to think that but I realized the opening brace is part of the declaration.
And also @jaggedSpire called me a monster.
 
8:24 PM
yes well
stop coding with randoms
 
@Nooble you ain't got no
 
Xeo
2 messages moved to bin
No.
 
@AlexM. Perfectly good.
 
why :( ?
 
Xeo
This is no the C room
And we don't tolerate random question dumping.
 
8:26 PM
or the C++ room, in fact
 
ohhh I thought guys were humble enough to handle a question here or there
 
humility has nothing to do with it
 
@SourabReddy Well, you can try the C++ room chat.stackoverflow.com/rooms/99852/c
 
there's a giant "ASK QUESTION" button
use it
 
8:27 PM
But... That is a C question (except for the std::cout part)
 
@SourabReddy What is the prize money. Can we see the rules of the tournament
 
@набиячлэвэлиь It doessss.
Fix it so I can merge.
Ooh lunch is ready.
 
Hint. We're not going to do your homework.
 
@JerryCoffin that's funny .. a senior C# developer don't know the difference between int and uint in C#
 
Xeo
@AlexM. Gotta admit, I have changed my coding style pretty significantly over the years. In the beginning, I was all about "gotta save them whitespaces" - opening brace on the same line, no space between keyword and paren (if(...)), no space between params and opening brace for one-liner functions, all that stuff (although I always put spaces next to operators).
Now I actually like how it looks with braces on a new line, empty lines, just adding more padding really
 
8:29 PM
I've no idea what the opening brace being part of the declaration means for nooble
 
@набиячлэвэлиь wat why the flying fuck are you doing your own refcounting
 
@Puppy I'm not, @Nooble is
Also, it's a class-global
 
wat the super flying fuck
 
@Xeo yep
 
At this point I will point the blame on Ell for coming up with the "throw not implemented" idea because too lazy.
 
8:31 PM
if you give a shit how many times the user has instantiated your class, you're doing it wrong.
 
Also yeah yeah FUCK GLOBALS yes I know.
 
@Puppy GLFW has a void* userdata, that's global
 
@Puppy It's there for now until I fix it. I agree with you entirely.
 
@набиячлэвэлиь That's an excellent reason to never use GLFW for anything, ever.
 
@Puppy Best option as far as I can tell. Other than brewing up your own solution, anyway.
 
8:33 PM
GTK+ + gtkmm + magic
 
do that
 
@melak47 oh, I see. I think I had that problem with Boost bind once because it didn't know which overload, the solution was a pointer to function and someone pointed out that we should not take pointer to functions from std
 
the whole reason why I quit working on games early on in my personal history is because of the need to roll everything again because it was terribly shit.
 
Hi
 
I think Nooble wants to roll his own things
 
8:34 PM
LLVM and Clang are terribly shit too, but they do things I can't do with a few ifdefs and OS API calls
 
@Nooble Fix what? All you have is ConstructorInitializerIndentWidth [unsigned int]
 
Xeo
@Puppy Nowadays, get Unity, get Unreal, get crackin'
 
yeah
 
@sehe I imagined that it would have something to do with RAII, but is there any real difference form just putting that out of the struct or is it good habit?
 
@набиячлэвэлиь huh
I don't know how to clang-format.
 
8:35 PM
why use clang ?
 
@Nooble It's mergeable, do it
 
@VillasV In this case it's required because we don't know the return type. You can code it with auto but that breaks down if the return type happens to be void. See @melak47's comment at the main question
 
@KhaledKhnifer It's better than your face
 
@набиячлэвэлиь But you need to fix the initializer indent.
 
@Nooble TO WHAT
 
8:36 PM
@набиячлэвэлиь ZERO
ALSO LUNCH BRB
 
@VillasV And yes, the overriding power of RAII is exception safety. You want the destructor-action done even if the return expression throws
 
user1804599
> Whitespace is the most important part of any piece of code.
 
@Nooble Biggest problem I see is the use of bool parameters. Quick, without looking at the declaration, how does a window(..., false, true) differ from a window(.., true, false)? window(..., full_screen, resizable) is clearly preferable. I'd also define an assure(cond, message) on the general order of: if (!cond) throw exception("message") (and, of course, use it here).
 
@MadameElyse disagree.
 
@sehe even if the function call triggers an exception, you're still gonna performance measure it! now that's exception safetly :D :p
 
8:37 PM
@Nooble Are you out of your mind? It looks like shit
 
@melak47 It was worth mentioning. RAII is basically good for that reason
 
hehe
 
@набиячлэвэлиь and you're an idiot
 
@sehe oh wow, how silly not to think of exception safety. makes sense
 
8:38 PM
@JerryCoffin Oh yeah you're right.
 
@sehe What?
 
Gonna fix that.
 
@набиячлэвэлиь That's perfectly good.
 
@набиячлэвэлиь :/ yeah it looks worse
 
@Shoe 4096 = 2¹² or so
 
8:39 PM
@набиячлэвэлиь no negative indent width? blashphemy
 
@набиячлэвэлиь your insults are redundant lately
 
Now you see if you would've let me keep my great 19402 character lines...
 
@KhaledKhnifer No. You just got fed up with them. Just tell him you're bored with it. No need to get mad
 
@sehe oh
 
8:40 PM
1 message moved to C++ I like how you started with an apology. @JonH
 
@набиячлэвэлиь God no.
 
@JonH Go to the C++ room for C++ questions
@Nooble Leave it at 6?
 
K=6;
k=k++;
cout <<K
 
Cleanup on aisle six
 
I just now discovered the existence of a C++ room other than Lounge
 
8:44 PM
It's pretty new. And pretty desparate
 
@набиячлэвэлиь I shall decide after I'm done eating. Need to see it on my text editor.
 
@EtiennedeMartel I migth wanna ask you for a favor - a friend of mine would like some books from Canada and it seems they don't ship to Poland.
 
@sunilk Undefined behavior.
 
yesterday, by Bryan Edds
Despite our initial rift, and because the C++ room is kept active, could someone post this redirect http://chat.stackoverflow.com/rooms/99852/c for questions that aren't in scope here?
Or thereabouts
 
@BartekBanachewicz Hm?
 
8:45 PM
@sunilk What is the type of K.
 
@Nooble Temperature
 
@Nooble tribool
 
@CatPlusPlus Calvin.
 
So the SO C++ community is now a pimpl
 
@AlexM. nice
@VillasV Ahaha.
 
8:46 PM
@EtiennedeMartel this thing - the idea would be that I'd wire you the moneys, and you'd order it and ship to Poland yourself. The shop outright refused to ship.
 
@BartekBanachewicz inb4 a dragon dildo
 
@Nooble Wonderful how C++ is one of the few languages where given K = 6 you wonder what the type of K is
 
@набиячлэвэлиь Everything, if you're brave enough
 
Ell
> locations - b/2 - 1/2 can be replaced with locations - b/2
intellij tells me this
 
Ell
8:49 PM
am I being so blind? :V
thank goodness :P
 
Integer division
 
@Ell Integer division -> 1/2 = 0.
 
All hail Katt, our lord and saviour
 
Ell
ah integer division
 
Yes, integer division
 
8:50 PM
Oh wow
Didn't see that coming
 
Ell
thanks
that makes sense
 
@Ell Perhaps you'd get more useful results from location - (b-1)/2? (but perhaps not, as well).
 
that just tells you how crappy IntelliJ is
"Hey guys, this expression is always a constant, instead of just telling the user to replace it with a constant, let's try to elide the constant"
 
It seems it was doing a good job here actually
 
the better warning would have been "Warning: 1/2 is always 0, muppet"
 
8:53 PM
I wonder if integer division has ever killed a man.
 
@sunilk What on earth is k? Where did it come from?
 
I mean, what if you had done locations - b/2 - 3/2
 
It's better to step through all refactorings one at the time yes
 
@Nooble There's a few integer overflows that have killed people
 
And replacing with constant is not really that useful
 
8:54 PM
@CatPlusPlus When they reveal that the programmer obviously doesn't know what he's doing, I'd probably advise it ;p
 
@Nooble Probably, yes
 
I wonder if integer division and/or overflow has ever sent a man in prison
 
@BartekBanachewicz I'm surprised Indigo doesn't offer international shipping.
 
user406009
@Puppy Most famously the en.wikipedia.org/wiki/Therac-25.
 
Like if you write a program that accidentally kills a man, are you sent to prison?
 
8:56 PM
@Shoe I wonder if cosmic ray induced bit flipping has ever killed a man :p
 
Oh god
What if someone uses one of my programs and dies because of it
 
@Shoe that's why you put a disclaimer thing in it :p
 
@EtiennedeMartel They do (except for those books that are prohibited in Poland, and will get you extradited and tried for murder if you dare to ship them there).
 
user406009
@Shoe There is a really high bar to convict people on that.
 
user406009
 
user406009
You have to really screw up.
 
Meh. Compilers/linkers have been trying to kill me for 40 years.
8
 
@Lalaland int rand() { return 4; } kinda screwup?
 
> Negligent homicide is a lesser included offense to first and second degree murder, in the sense that someone guilty of this offense can expect a more lenient sentence, often with imprisonment time comparable to manslaughter.
 
@melak47 Depends. Did you thoroughly check that that die wasn't loaded before rolling to see what rand would return?
 
8:59 PM
Is this a joke?
 
@melak47 That's not a screw-up, that's standard-conformant, IIRC
 
@melak47 Should be constexpr :D
 
Isn't manslaughter serious shit?
 
@Shoe Not at all
 
How come the world is only mildly aware of this /cc @JohanLarsson
 

« first day (1928 days earlier)      last day (3034 days later) »