« first day (2329 days earlier)      last day (2628 days later) » 

12:01 AM
I'm making a thing to learn best practices/syntax, any criticism under the form of either pings or issues are welcome 😀 github.com/towc/learn-maze-cpp
except for the way I define randomness, I shan't accept criticism for that
(or how I use % with randomness. I accept it's wrong)
 
Ell
@towc I don't like the uppercase stuff
 
you mean the classes and structs?
 
Ell
in c++, I prefer everything to be snake_case, following the example of boost and the standard library
 
oh, you mean camelCase+pascalCase?
 
Ell
I mean generally, just use snake_case for everything, apart from template parameters
anyway that's a small issue
the bigger issue is your coordinate constructor
 
12:09 AM
it's a personal preference. It's good for people to tell me what they prefer, but I'll stick with mine for the time being
 
Ell
@towc well, why not follow what the standard library does?
but yeah I accept that
Coordinate::Coordinate( int x, int y ){
  this->x = x;
  this->y = y;
}
this is not good
this should be coordinate::coordinate(int x, int y) : x(x), y(y) {}
and the default ctor should be coordinate::coordinate() : x(0), y(0) {}
 
fair enough
 
Ell
likewise, in
Maze::Maze(){
  w = 20;
  h = 20;
  gen();
}
 
btw, should the : x(... be in the header or the cpp file?
 
Ell
it should be maze::maze() : w(20), h(20) { gen(); }
(you can add a newline ofc)
@towc cpp file
 
12:12 AM
and just Coordinate::Coordinate(int x, inty); in the header?
 
Ell
@towc yeah :)
 
thanks
 
Ell
it removes the need to do this->x = x; and also it becomes necessary for when you want to construct non-trivial members
@towc I'm going to criticise anyway :D
I understand this is an exercise, but perhaps you want to emulate this sort of interface maybe
 
maybe another time
also, someone is telling me to use #pragma once rather than #ifndefs
what do I do?
does x(0) notation have a name?
can I use something similar for my Maze::gen?
anyway, some sleeping is attending me, thanks for all, if you ping me I'll gladly read later 😀 (or if you want to add stuff as issues)
 
#pragma once is compiler-dependent
 
Ell
12:44 AM
@towc IMO prefer #ifdef
And ifndef
@towc it's called a member initialisation list
It's used to give the arguments to the members constructors
So no, you can't do it on maze::gen
 
1:27 AM
@R.MartinhoFernandes It's the users who are wrong!
 
1:56 AM
@AldwinCheung necro angst returns
 
> I use mine as a bank.
lol
idk I remember necro being extremely fun in wvw and pvp
 
interestingly enough the memetic wvw complaint these days is epidemic (which I linked already)
@AldwinCheung yeah it’s totally misplaced don't worry
 
if anything necro is probably 1st target in any decent wvw group (how useless!)
 
the one place where necro is in a less-than-ideal state is raids and even there it’s overblown
 
my only regret with necro is that after all these years I never completed a passiflora set
 
2:02 AM
uh these days you pick an ascended piece of armor or weapon and reroll it to the stats you want
and now there are stat-selectable trinkets
 
also apparently they nerfed chill-based builds
which as you can imagine I was very fond of
 
@AldwinCheung couldn't be further from the truth
ya gotta be a reaper but that’s how it goes these days
> February 22, 2017 Increased bleed stacks to 3 for 5 seconds in PvE only.
 
> Applies Bleeding whenever Chill is applied.
lmao
> Uninstalls the game from your opponent's PC
might as well
 
there’s a trait where your reaper shouts chill enemies
and of course the elite shout is a big freeze that grants you stability
 
did the Lead of Balance quit the company recently too
 
2:06 AM
well the shout build is mainly used in wvw, there are alternatives in pvp and you nearly never shout in pve
in my mind that means the shouts are well designed
 
I think I'd like to try that.
> Critical hits against chilled foes causes an explosion that chills adjacent foes.
> Whenever you inflict fear, you also chill.
> Striking a chilled foe grants might and life force.
> Chill lasts longer, and chilled foes deal less damage to you.
amazing
 
now check out reaper shroud itself
 
this is the cancer necros deserve to be
well that looks nice
 
scepter auto 3 corrupts a boon
 
did they end up fixing necro summons btw
I never found them of much use save for jagged horrors and golem
 
2:16 AM
@AldwinCheung debatable
still, right now summons use the summoner's stats when applying condis (even via a combo)
did I tell you when the raid strats was to sustain a horde of jagged horrors? they had to completely kill the lich form summon because of that
 
they gave that treatment to this scrapper skill and now it’s not a joke anymore, I’m considering running it for the lols
it does ~15 bolts in an ethereal field and that’s 75 ticks of confusion
 
that looks very balanced
 
well to be fair the bolts from a whirl finisher kinda fly everywhere
 
> The damage caused by this skill has been increased by 600%.
> Increased damage by roughly 50%.
 
2:20 AM
so you know I have to use unblockable immob and unblockable knockdown
the gyro attacks itself deal ~8k, 10k if everything crits (which is not that rare all things considered)
@AldwinCheung everything looks bonkers but that’s because you’re not used to the power creep
 
2:36 AM
well to me it looks more like the original skill was severely underpowered
 
oh I wasn’t exaggerating when I said it was a joke
both scrapper and druid were rushed during the development of Heart of Thorns, druid ended up being okay (putting aside the discussion surrounding adding healers to the game), but scrapper is all-around a big disappointment
 
> (putting aside the discussion surrounding adding healers to the game)
:noel:
 
I actually focused on healing when I did fractals yesterday :( still not used to the newly added nightmare fractal and was too busy dodging and learning to properly dps
 
Bon tu quittes ton boulot à l'INRIA Bordeaux et on développe GW3 (à forte dose de templates, et de temps en temps un peu de code utile)
@LucDanton As druid?
 
tant que c’est en OCaml
@AldwinCheung yes
 
2:43 AM
tbf I like OCaml so why not
et puis cocorico etc
as a main engi, healing has always been fairly trivial
you're usually one of the (if not the) highest healers in the team
 
druid healing is something else altogether
I don’t run a healing set though
 
I run a mixed set with runes of the monk and water IIRC
 
well, we can have that healer discussion
because druid is loaded with heals that had knock-on consequences for pvp (how surprising)
they had to tone down a lot of the healing while bringing the heal ratios up, so that healers with actual sets still could do their job
 
did they accidentally make healing on other classes useless?
 
no that was druid-targeted for the most part, ele was hit as well (same reasons, same effects)
they don’t care about engi
 
2:53 AM
so does anyone play druid other than with a healing set
 
@AldwinCheung healing is for raids, so outside of raids you don’t really benefit from it
I run Berserker's as per usual
@AldwinCheung though Mender is the safe choice for pvp, that should tell you something
you can play Marauder or even Berserker if you want teeves to kill you
I suspect some of the druids I run into when doing fractals don't run berserker but I don’t use a dps meter so I can't really know
 
these are not the druids you're looking for
 
3:17 AM
> We already have tremendous political instability in the US and Europe right now caused in part by a not-so-great-but-not-devastating economy and the Syrian refugee crisis.
 
ScY
18kbps rules my life right now
 
> How fast is exponentially?
 
3:57 AM
Do you guys mind if i ask a question about allocating dynamic arrays of an object?
 
4:52 AM
@Kamal Asking is fine (as long as you do it in the right place).
 
@AldwinCheung anet dev playing on a warrior named 'Nerf Warrior Pls' ALL IS REVEALED
 
5:07 AM
Other top-paying industries with large pay gaps include construction with a 22.6 per cent gap. The sector has an average salary of $106,693, according to SEEK data.

Information media and telecommunications also has a higher gap at 18.5 per cent and has an average industry salary of $102,548.
yeah, but not if you work for yourself
I am talking about gender pay gaps
 
@Xeo, @StackedCrooked: https://pcpartpicker.com/b/77hypg
There's a fucking figurine inside the case. I'm totally doing that on my next window side-panel build.
 
better still ... there is no gender pay gap if you are a landlady, I simply don't charge less because I am a woman
 
@LucDanton warrior can be nerfed to death for all I care
 
So, I've used cereal for serialization, anybody have a different favorite library?
 
avoid flatbuffers at all costs
 
5:18 AM
Protocol Buffers also feels like a bad idea
 
protocol buffers work well, actually
 
fuck you for not supporting my uninformed opinion
 
you are wrong about everything
 
:-)
 
Also I guess it depends on what data you're serialising. Config files, program state, big data series, whatever.
 
5:20 AM
config files
Anyways, I was using Qt, but I can't figure out how to generate functions that convert strings to my custom data type
All right, but is cereal still the best?
 
I don't personally use protobuf for config files but have heard from a friend that it works well, because you get type checking and mandatory/optional fields checked by the protobuf runtime for free.
For config files I use json and it's a mistake.
 
I switched to XML, because editing file paths is broken in json.
 
I think my ideal config file format, syntax wise, is reasonably close to YAML.
 
XML has been used for config files for years, json is relatively new
relative as in 5 years vs 10 years
 
@AldwinCheung However you can use json-scheme to check your configs
 
5:26 AM
there are a lot of online Json checkers
 
@VladimirGamalian It's not that, it's the fact that it's painful to edit and overly verbose.
 
most serialization libraries provided checkers and default arguments for invalid inputs
 
@AldwinCheung true
 
manually adjust all the layout in the code is pain, especially since all those screen sizes that have to be supported only came out after the app had been written
json is overly verbose ... yeah right </slightly_sarcastic>
 
5:42 AM
I am trying to read a file where the first line is a integer, and the next line is a string (I have to read this into a char array).
I used the >> operator on the input stream object to read the integer, then i used the .get() method and the .ignore() method to read the next line into a char array, however when i try to read into the char array i get a blank string
I'm not sure why I get a blank string, do you guys know why this could be?
 
Why .get() and .ignore() and why are you not asking on the main site
 
@Kamal Maybe you can find an answer at loungecpp.net/the-law/the-rules
 
I really need to fix my apps now, they all fell apart
 
~_~ morning
@Telkitty You should.
 
6:25 AM
@wilx that room got so heavily spammed today:/
Visual studio code is totally free cllone of sublime :/
https://code.visualstudio.com/updates/v1_10
 
VS Code is Electron, does that mean that C++ requires a JS interpreter :-)
 
@ProblemSlover not so fast as sublime, but yes, if you have a modern PC..
 
I don't understand the advantage of VS Code over CLion
 
6:41 AM
Sublime is way faster and lighter than all the electron garbage. Not even comparable.
 
@Mikhail at least two different weight classes
 
You have no excuse for not using JetBrains products. Unless you're using vim.
 
@AldwinCheung How is it faster.. Did the VS Code slow you down? :P
 
@AldwinCheung wow so negative
 
@LucDanton Took me a while to get that one
 
7:09 AM
VS Code is electron?
 
Most things are Electron, for example did you know Chrome is also Electron? Also Node.js
 
@towc Yes, you can tell by the fact that opening an empty file takes 900 megabytes of RAM.
 
chrome is not electron
 
:-)
 
electron apps are built on top of chromium
afaik
and oh wait, now you're just bullshitting :P
sorry, thought you were serious there
 
7:12 AM
The cute thing is that most GUI frameworks have fairly complex rendering back-ends, hell one way to use Qt was basically through a WebKit backend.
C++ has this problem, the widget kits really suck or are actually C#
 
Qt didn't age well
 
Its also written like crap
 
But then again everything is else is basically garbage
C++ and GUIs: not even once
 
so what would you recommend for C++ nowadays?
 
Qt
 
7:14 AM
even if it sucks ass?
I guess it's still the most documented
 
I've never really used WPF beyond C#
 
yeah let's not
 
?
 
Most sophisticated UIs you can reasonably do with C++ is console + box characters. └┴┬├
 
use WPF
@AldwinCheung not interacteable though :/
 
7:16 AM
@AldwinCheung looks like im in your ignore list.. well I will do same then :P
 
box characters
 
not you
 
Qt has a few design problems that make it impossible to use for any serious GUI work, including the inability to consistently style widgets. If you want a Qt application to look reasonable you need to write all the widgets from scratch.
 
so what do people use for GUI production code? not-C++?
 
Ven
7:17 AM
Hi
 
@Mikhail y u no Qt Quick?
@towc Not C++.
 
@MarkGarcia Honestly never tried it, basically I needed a lot of custom OGL/CUDA context management stuff.
 
@towc Not C++ :w
 
The real answer is that GUI programming requires a larger team, because at minimum you need a shim between the C#/Java that does the GUI and the C++ interface. Much easier to Electron it up, plus you can use any of the many pre-made themes that don't look like total crap.
Also the folks at Qt aren't very good with fixing bugs
 
I personally just expose a REST endpoint and off you go
 
7:23 AM
Someone ought to make a GUI language/layer/library that has idiomatic bindings to most programming languages.
 
yeah gtk
 
@AldwinCheung Can't pass vertex buffers across REST endpoints :-)
 
isn't gtk linux-only?
it would be funny to see MS ever implement gtk
 
Fun fact, Linux isn't Linux only.
 
@Mikhail You can but it's slow :)
 
7:24 AM
@AldwinCheung No, because you can't pass an OGL context across processes. So actually the handle is light weight, but no way to migrate the context.
 
@Mikhail GET localhost/vertices/235 :)
 
@Mikhail And who said vertex buffers couldn't be marshalled/unmarshalled
 
I'll marsh your buffers
 
So, you can pop the context, which is good for threads, but when I tried moving it across fork()s, it kept fucking crashing... This might be a case of me doing something wrong...
 
@AldwinCheung I want something like Native GUI <-> The GUI Layer <-> Application.
 
7:27 AM
@MarkGarcia So do we all
Also pluggable GUIs pls
 
And web rendering something.
 
And vertex buffers for Mikhail
 
HTML/CSS generation.
 
@AldwinCheung Actually this is a bad idea, the arrows need to flow in one direction
Also whatever we get needs to support Bootstrap and WordPress themes
 
@Mikhail <bad joke>React is copyrighted.</bad joke>
 
7:31 AM
I heard everybody at that company has a face
I got a brilliant idea, we make something like Electron using Rust and Firefox for the widget kit? AKA the layout is done with FF.
As a bonus we keep the long compile times that have thus far creates a strong C++ community
 
Aye, Servo but somehow get a widget kit
 
I want a dedicated language for GUI content/layout/styling. Like QML but without the Qt and JS bullshit.
 
QML is cool
 
QML is people
 
7:34 AM
> but without the Qt and JS bullshit
 
Okay, I got a GUI design problem. I got a list of objects that I draw. The objects own pointers to Qt's internal QGraphicsItems. The problem is how to serialize and de-serialize them? Can't use cereal because I need to call the methods that actually move the objects, (not to mention the methods that add the graphics items into the scene) when reading them.
Maybe write another class that contains the "hidden" GUI state, and write that to the disk? FML.
 
Why do you need to store GUI state? o.O
 
For example, I want to visualize the places my microscope will take pictures. That is stored as a XYZ location. But I don't actually store the XYZ location as three coordinates/doubles. Instead I set a QGraphicsItems to the XY position, and another items to indicate the Z. Then I query those items when I need to get XYZ location.
 
@MarkGarcia JS. Ain't. BS
2
how dareth thy
 
@towc Your age is showing
 
7:45 AM
TRIGGERED
 
I'm almost 4
 
25?
 
no, 4
'twas a joke
I'm not old enough for you though
 
@Mikhail He's right you know (and your previous statement was an insult to cow manure).
 
Javascript is a bad language with wide adoption?
 
7:47 AM
JavaScript is the new PHP
 
@Mikhail IIRC Qt can do MVC style things? Make the coordinate model class then bind the X and Y properties to the Qt GUI object. I don't really know Qt Widgets.
 
that it doesn't force the author to use it well, is true, but it can be used beautifully
the philosophy behind JS is being immediately useful rather than being readable/intuitive
 
@AldwinCheung So, PHP is the old PHP.
 
There is no philosophy behind JS it was "designed" & implemented in 2 weeks.
 
so there's no measure that is kinda forcing you to write readable code
but nothing is stopping you. If you're not writing elegant code in JS, then you're at fault
@AldwinCheung with very specific goals in mind
 
@AldwinCheung At 20+ years old, neither is "new" by any reasonable stretch of the imagination.
 
@JerryCoffin Going with the analogy, you can say that TypeScript solidifies the wet and steamy pile of manure to at least make it more workable and less disgusting.
TypeScript is my savior.
 
@MarkGarcia Yeah, so right now I got them into a model. The problem is with serializing the model. The problem is that I would need to write and read custom QVariant types, but I can't figure out how to convert my own types to XML. I can write them, but I can't figure out how to read them.
 
+ JS is continously being improved on
and without going through too many weird hoops, NodeJS is just as fast as C++ (except a negligible amount of additional setup instructions) for most things :P
 
TRIGGERED
 
7:53 AM
YOU DON'T KNOW ME
:D
 
@MarkGarcia Typescript is cow manure inside a paper bag. As long as you only look at it from a ways away, you may not realize what an ugly, stinking mess is inside--but don't get too close, or the smell will give it away (and don't overload the bag, or it'll fall apart and the manure will spill all over everywhere).
 
I've seen things that you C++ers could never imagine
typescript sucks ass
it was a nice idea, but the way people are using it is horrible, and not negligibly so
 
What if the people are horrible?
 
Fuck Js. Fuck everything related to Js. it's C/C++ toilet room after all
 
you're right
let's argue haskell
gunna be fun
 
7:55 AM
its a well known fact that nobody understands haskell
 
@towc What's to argue?
@Mikhail Nobody understands women either, but most guys like them anyway.
 
haskell rocks
 
ScY
it kinda sucks
 
functional programming in general rocks
but the way haskell implements it is just too good
 
7:59 AM
 
@Mikhail I don't think women understand women either. In fact, I'm quite certain my wife (just to use one example) doesn't understand herself.
 
@Mikhail in what way?
anyway, I better go, thanks for the chat all :)
let's do this again sometime
 
@towc For a lot of practical uses, Erlang is quite nice as well.
 
user1804599
@MarkGarcia TypeScript is bullshit
 
user1804599
TypeScript is so leaky it doesn't give you any guarantees about the absense of categories of bugs.
 
8:01 AM
lol
enough Js diarrhoea
 
@JerryCoffin I agree
 
@Mikhail Have you been hanging out with my wife again? I guess now I know why you're in such a lousy mood, anyway.
 
@rightfold Might want to turn that statement to a regex. :)
 
@JerryCoffin I'm typically confused by them because they come out as having low motivation.
 
Wait. More like pattern matching.
@ProblemSlover Here: "JS: JS Sucks"
 
8:05 AM
@Mikhail I think most women are highly motivated (but mostly by other women's opinions--or at least what they imagine other women's opinions to be).
 
@towc why
also, why
 
@JerryCoffin That is a good point. I think both genders are motivated by vanity. The thing is that erecting a large building is vanity for men, but for women its typically something with less permanence. Perhaps, if my long standing research direction in IVF succeeds we can get rid of gender.
 
8:42 AM
Hmm, so do we recommend link only answers be deleted? Even if the links are good?
 
hahaha, "extension method operator" stackoverflow.com/a/42539751/1012936
made my day
 
@Mikhail Depends if you are pragmatic or a member of the Snack Overflow Evangelism Strikeforce.
 
This site is really strict like the Taliban
 
Praise Jeff Fatwood
 
> Just pretend that count is just a misspelling of contains :D +1
Hehe.
 
8:54 AM
0
A: What is Undefined Behaviour in C?

Servé Laurijssenundefined behaviour means the compiler can emit any code it likes. Your program might show results that you expect or it might format your harddrive or it can start sending emails to the taliban. anything can happen

 
11
Q: Is the term "man hours" appropriate for the workplace, and if not, how do I get my coworkers to use a more neutral term?

Tempest16I am the only female engineer in a nearly all-male company. The term "man hours" is used a lot when discussing projects, and I find it a bit jarring. As a woman, I don't feel that I work "man hours", but I am aware it is common workplace jargon. A few times I have commented that I work "person...

 
One of the awards however has caused some controversy. Buildbot, the open source project Mozilla uses to automatically build software is going to receive 15,000 dollars and will be used to "remove the term 'slave from all documentation, APIs and tests".

To be fair, the money is also going to make Buildbot work better with Amazon EC2 cloud, but that comes second.
 
Should've spend those 15k USD to remove sigils from Rust.
 
Are Intel grid array sockets male or female?
 
They are whatever they identify as.
If an UDP socket identifies as a TCP socket then it's a TCP socket, you bigoted piece of shit.
 
9:09 AM
Oh. The programming SE has been renamed to "software engineering" SE.
I thought it was a new SE first.
 
nwp
supposedly they had or maybe still have disagreements on what the site is about
 
Xeo
@Mysticial Nice. But nobody will ever see that one...
@StackedCrooked SESE
 
Ven
9:29 AM
Hi people
 
Hi
 
Ven
how might you be doing, jefery?
 
user1804599
"man" is already a neutral term.
 
All good, thanks
 
user1804599
It's a synonym for "human".
 
user1804599
9:32 AM
 
So many services are hosted on AWS. so if it crashes like NYC buildings in September 11/2001 it's gonna be apocalypse
 
nwp
@ProblemSlover are any of those services relevant for anything?
 
it was the panics when it crashed for a short time a couple days ago.
 
@rightfold so that means I was raised by two men?
 
@nwp hm? Never mind.
 
9:38 AM
Bjarne is angry because people are proposing yet another alternative to concepts.
 
Do you think the current proposal is good?
 
nwp
@Morwenn he probably should be happy that people care enough to do so
 
@StackedCrooked The current Concepts TS?
 
Yeah.
 
There are good ideas and not-so-good ones :p
 
9:40 AM
I have the impression that many people prefer the original (pre 2011) design.
 
That's because they want definition checking out of the box.
 
We might get std::is_aggregate for C++17.
 
@Morwenn What scandal is that?
 
Is this related to is_scalar or is_compound?
 
9:55 AM
It just tells whether a type is a aggregate type.
IIRC it exists to solve initialization problems.
 
Anyone here like the jQuery reflection proposal?
 
why pootis
 

« first day (2329 days earlier)      last day (2628 days later) »