« first day (1947 days earlier)      last day (3000 days later) » 

user1804599
7:00 PM
Concurrency is reserved for people who like garbage collectors and green threads. I.e. not the C++ committee and proposal writers.
 
user1804599
@Shoe No. It's shit and I don't have any use-cases for it.
 
they are easy because most of the tasks involved are trivial, and they are hard because since the tasks are trivial you are constantly worried about if the details are right
 
@slaphappy Just like my...
 
@Morwenn mom?
 
Yeah right.
@Zoidberg Elitist.
@slaphappy Nothing is trivial actually.
 
7:01 PM
what do you mean
 
Well, at least from a design ppoint of view.
 
user1804599
Wrong.
 
user1804599
Many things are trivial.
 
Ven
@Morwenn :D
 
Doing something may be easy, doing it right involves too many things, even when it looks trivial.
 
Ven
7:02 PM
@Morwenn school project.
 
@Zoidberg Yeah right, some constructors and destructors are trivial.
@Ven Sounds like a standard engineering school project :D
 
user1804599
Just keep the fundamental long-established (decades) design principles in mind that everybody seems to still not understand:

1. Avoid mutations.
2. Separate concerns.
3. Understand the domain.
4. Separation of interface and implementation (LOL C++ TEMPLATES).
 
I still didn't get sorting right to the details :(
 
user1804599
@slaphappy Websites are ez. Except front-end. It's shit.
 
C++ templates are an accident, of course they don't adhere to design principles
@Zoidberg ok give me an opinion
 
user1804599
7:05 PM
About what?
 
I have images with predefined thumbnail sizes
 
user1804599
keep it coming
 
it's always a suffix _widthxheight or _heightXYZ before the extension
it's really dumb actually
 
user1804599
exciting
 
I don't know if I should put the code that works out the real filename in the frontend or in the view or in the controller or in the model
It's not interesting but it's bothering me a lot for some reason
 
user1804599
7:06 PM
It doesn't have anything to do with the UI, and MVC is purely concerned about UI.
 
user1804599
So put it in a reusable module that isn't application-specific.
 
a decade of programming gives you that kind of ocd I guess
 
user1804599
Put it in Thumbnail.dll.
 
@Zoidberg yes but the transformation must happen at some point right? where do you decide you want a thumbnail or not
 
user1804599
I'd do it lazily; when it's first requested.
 
7:07 PM
it's probably the view that says, "here it's a thumbnail"
 
user1804599
We've done that in many applications and it has always worked great.
 
user1804599
You don't have to decide upfront what the sizes will be, and you don't have to regenerate everything when adding a new size.
 
I'm not talking about regenerating, I'n talking about deciding what the filename is
 
user1804599
In your template you have something like <%= thumbnailURL(sourceImageURL, 40, 50) %>.
 
user1804599
The thumbnailURL function decides the filename.
 
7:09 PM
so it goes in the view
that's fair game methinks
 
user1804599
Well, the thumbnailURL function is specific to your application, and presents information to the user (URL).
 
user1804599
But MVC doesn't really work well server-side since it's based on views observing models and that's not what happens over HTTP.
 
user1804599
So stop thinking about models and views and controllers.
 
We are prepping the Stack Overflow maintenance window now - we'll notify when ready to take the brief outage.
We are failong over services now, Stack Overflow and the rest of the network will be offline for about a minute.
 
failong
rofl
 
user1804599
7:13 PM
Just create request handlers that take by dependency injection the business rules that they call, passing parameters from the HTTP request to them.
 
@Zoidberg yeah, well, you eally have to fill in the gaps the framework leaves to you
 
user1804599
Request handler is nothing more than a wrapper around business rule that takes HTTP request and returns HTTP response.
 
user1804599
Don't use things that call themselves "frameworks".
 
user1804599
They'll bite and you'll cry.
 
you're crazy
 
7:15 PM
nosing around /cc @Borgleader @ElimGarak @Ell @TonyTheLion @ThePhD @Xeo @набиячлэвэлиь
 
user1804599
People who use frameworks are crazy.
 
user1804599
No, I'm not.
 
@Nooble I have a GPU now
 
user1804599
Frameworks pretend that the most important aspect of design doesn't exist: application-specificness.
 
@набиячлэвэлиь just one? :p
 
user1804599
7:17 PM
That's why they suck.
 
@melak47 Better than zero
 
@набиячлэвэлиь how could you have zero before :/
must've had at least had an integrated one?
 
@melak47 My NVidia GeForce 9800 GT died
@melak47 Doesn't count, doesn't have OGL
 
so std::forward and std::move are simply static_casts?
 
@набиячлэвэлиь lol :D
 
7:18 PM
Although I have another one in a box, so I technically have two
 
such majesty /cc @Borgleader @ElimGarak @Ell @ThePhD @TonyTheLion @набиячлэвэлиь
 
Indeed.
 
@jaggedSpire Firefox getting old
 
@melak47 heh
 
@melak47 My Firefox is blue, that's racist
 
7:23 PM
@набиячлэвэлиь is he feeling ok?
 
@melak47 Yes, he's young. Version 46
 
lol
young fox /cc @Borgleader @ElimGarak @Ell @ThePhD @TonyTheLion @набиячлэвэлиь
 
@sehetw well, try with out split free. ar & <atomic_bool> %) looking quite some time for this, as GDB is fucked up in my installation now.
And this, kids, is why you don't do mushrooms and twitter
 
am I supposed to understand that sentence?
 
7:31 PM
look at @sehe's coliru link, you'll see what he means
 
@jaggedSpire Or the twitter convo
 
thank you
 
@sehe yeah well try it without the things that make it work! not so easy now is it
 
I kinda hate when people just drop bombs like that:
So, atomic_bool and boost::serialization is kinda like a nuke.
It's a red flag if your teenage girlfriend does it
 
7:33 PM
@Borgleader I did indeed
Also: twitter.com/meetingcpp/status/698675578296205313 I wager ~80% of real estate
 
wtf
 
Ven
when I see the word "transpiled" in a compiler related article https://t.co/N8KL8rBUgz
 
trwtf here is @sehe still reading jens' twitter
 
Yeah I suppose
In this case it _does_ surprise me that his original code¹ would have compiled.

¹ not shown
 
yeah, I have no idea either
 
7:37 PM
so...what, his post was just a pun? or atomic_bool and boost.serialization blew up his gbd...wat?
 
@mraleph if "transpilers" exist, are there "cispilers" too?
@melak47 It was basically a tantrum for using things without thinking (I think). But I may be too harsh. I'll see what his original claim amounts to. If "dangerous things" "explode" when using the API in naive ways (caveat emptor) then that might be something library devs will want to be aware of
 
user1804599
@sehe omg dat avatar
 
user1804599
now I want to play Super Paper Mario
 
Luckily I don't suffer any of those conditions
 
@sehe linters
 
7:44 PM
trying to make sense of it
..................... ENOCONVRGNC
 
a program that transforms a source file from one language to the same.
 
Oh I see our "minute" of upgrade downtime is in progress
@slaphappy That's not what a linter does.
 
yes
 
Maybe a beatifier/pretty printer
 
I used the wrong term and therefore ruined the joke
 
7:46 PM
yeah! yeah!
Who uses linters these days (serious question)
I associate the name with paper-tape worms, mostly
 
never used one :P
I thought it was a synonym for oh fuck it
 
It's about as useful as online DTD validation, these days (exaggerating only a little)
 
Ven
it's more useful for dynamically-typed languages tbh
 
Excellent find. Instead of adding this as some kind of quirk to the boost docs, I'd consider this a bug in Boost Interprocess. The library aims to provide portable interprocess communication (and synchronization) and in this spot, the implementation isn't portable. Please report the bug at Trac since a report doesn't appear to existsehe 1 min ago
Well. I assume this might be a regression, really
@Ven Of course. Although, I always feel queezy about those communities having borrowed the term "lint" from C. I mean, you can dis C, but it's not duck typed :)
 
Ven
right
i guess a "linter" is not useful when you have clang-format
meanwhile, at work, I get some pull requests declined a week after I submitted 'em because of a missing space
 
8:03 PM
your work sucks hth
 
user1804599
8:13 PM
That's good.
 
user1804599
Inconsistent formatting makes maintenance, grepping, and refactoring more difficult.
 
user1804599
It should therefore not be accepted.
 
Ven
@slaphappy it's actually making me very sad
I don't want to be tomorrow, because I don't want to go to work
 
if zoidberg agrees then it's probably a terrible idea
also why don't u change work
 
user1804599
No it isn't.
 
8:22 PM
@sehe I see them all the time everywhere
in fact the Rust compiler lints by default
 
user1804599
@sehe I use Flow. Dunno if you consider that a linter.
 
user1804599
I also have a Git commit hook that runs a Python linter at work.
 
I'd think that's closer to a preprocessor/transpiler (hehe)
 
user1804599
It finds stuff like unused imports (looking at your pprint imports, colleague).
 
Yeah pylint is one of these things that... well. Maybe it's a "kind" of lint
 
user1804599
8:26 PM
And inconsistent formatting.
 
user1804599
It doesn't find dangerous constructs though.
 
@LucDanton I meant actuall Lint (is it called PCLint or so now?)
@Zoidberg Clients are for that
 
user1804599
Like file closing without try/finally or with.
 
@sehe well you said 'linters' so now I’m confused
 
user1804599
@sehe ???????????
 
8:30 PM
Oh. Don't you have clients? Or do they not breath (if they do, they tend to report bugs :))
 
!!!!!!!!!!!
 
user1804599
I have no idea what you're talking about.
 
user1804599
They may not notice bugs that are there.
 
user1804599
Also you want to find bugs before the clients do.
 
@LucDanton I should have been more specific. Sorry
 
8:31 PM
It's not a bug if client doesn't know it's a bug
 
@Zoidberg encrypted-tbn1.gstatic.com/… oh well, ob fail
 
user1804599
So use linters and type checkers. Don't wait for the clients.
 
But is it a bug if the client thinks it's a bug and it's by design?
 
@Zoidberg hehehe. Solid advice, friend. I'll think about it (...)
 
Microsoft says no, but I'm leery of assuming they're right
 
8:32 PM
Is it a bug if it's your face?
 
user1804599
????????????????????????????????????????????????
 
user1804599
Then why did you say "Clients are for that"?
 
user1804599
WTF???
 
Zoidberg is getting senile pretty early
 
there is entirely too much confusion in this conversation
 
8:32 PM
8 hours ago, by Zoidberg
@LucDanton merry christmas
 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
user1804599
> senile
 
user1804599
another obscure word
 
I, too, can post diacritic marks
 
user1804599
Security by obscurity.
I thought you were a beter cryptographer than that.
 
8:34 PM
?????????
 
@jaggedSpire The funny thing is, the only possible source of confusion is to take a single line literally when it was a. obviously a joke b. outrageously impossible to be meant literally
@milleniumbug you can stop now
@milleniumbug That's interpunction, if I'm not mistaken
 
okaaaaaaaaaaay
 
user1804599
The Oz manual uses the word "warning" for general information and references.
 
........................................
 
user1804599
It's so annoying.
 
8:35 PM
Don't discriminate against fullstops!
 
@Zoidberg why
 
Ven
@slaphappy relou parce que c'est une alternance
also i got a nice avatar today
 
user1804599
> Warning: The exact syntax for functions as well as their transformation into procedure definitions is defined in the The Oz Notation Reference Manual.
 
user1804599
> the The
 
warning: information incoming
if you close your eyes you won't have to see it
 
8:37 PM
redundant redundancy will be unredundanted
@sehe indeed
 
user1804599
 
user1804599
I really wanna try Oz but I can't find installation instructions.
 
user1804599
eww it's on SourceForge
 
@Ven oh, ok
well when you're done you can work with me and rerito lol
 
user1804599
@Ven Yes. :) I like it.
 
Ven
8:43 PM
I might actually go through the pains involved to swap it up
 
user1804599
I really like the orange–pinkish colour in general.
 
-1
Q: boost::function_output_iterator constructed from lambda function is not assignable

MikhailConsider the following code snippet: auto f = [](int x) { std::cout << x; }; auto it = boost::make_function_output_iterator(f); decltype(it) it2 = it; // Ok, copied it2 = it; // Does not compile, cannot assign! The problem is, function_output_iterator constructed in this way is not assignabl...

 
user1804599
It always reminds me of butchers'.
 
I'm a bit miffed how the Senior C++ Developer could spell out the documentation so well, yet not know about std::function? I note that none of the commenters deemed it worth the effort to answer in full
 
Ven
ooh, new RWBY episode.
 
8:46 PM
red white blue yellow episode
 
@Borgleader yes, Sino was the infinisockpuppet guy. My plonk list presently includes three of his sock puppets.
@milleniumbug curiously you're not far off
 
user1804599
Oz combines logic variable unification with concurrency.
 
though the B is black, not blue
 
user1804599
Thread will pause until the variable is assigned.
 
user1804599
And you can assign variables at most once.
 
8:48 PM
and technically is also for Ruby, Weiss, Blake, and Yang, who are the main characters
 
Benchmarks. http://t.co/5XleiCVpaz
 
Ven
@jaggedSpire did you watch the last episode?
 
kek /cc @ThePhD
 
@Ven nope. I've just got a friend who is really into RWBY :P
 
Ven
@jaggedSpire so are my friends (group cosplay and other stuff)
 
8:49 PM
@Borgleader having fun ribbing him over his benchmarks I see
 
I think I read an article about RWBY in 3D World, is that the anime thats done in 3D and then rendered so as to look 2d/manga?
 
Ven
pretty much, yes
 
@jaggedSpire nah, hes doing well with that, its just ive been bugging him about them and now i saw this.
plus its funny :)
 
it is at that
 
user1804599
eww Oz is from Wallonia
 
8:51 PM
@Borgleader :B
 
@ThePhD hello
 
Hiyo.
 
@mraleph but you get those Turing-complete templates so you can shoot yourself in the foot at compile time.
Can we say: envy?
 
sorry, I've been trying to keep my non-#catface related catfaces to when you say something workaholic :\
 
user1804599
Intellect.
 
user1804599
8:52 PM
Templates suck.
 
@jaggedSpire so he'll associate workaholism with catfaces and try to avoid it?
 
@Borgleader lol
 
I'm-dare I say it?-trying to tone it down a notch.
@Borgleader yeah
 
thats so clever of you
 
so far I think it's just associating the misery he finds when drowning in work with the catface, twisting it into an even more diabolical symbol than it already is
@Borgleader <3
@ThePhD how has your day been so far?
 
8:57 PM
AWWWWWWWWWWWWWWWW
user image
4
 
@orlp dissolves
I want a fuzzy warm blanket of love
I only have a fuzzy blanket
 
@jaggedSpire You wouldn't be wrong.
 
@ThePhD oh, darn
 
@jaggedSpire You would have one if you stopped consuming the souls of all who came near.
@jaggedSpire It just started, I was up several hours past when you went to bed. .-.
 
@ThePhD I don't consume the souls of pets though.
 
8:59 PM
 

« first day (1947 days earlier)      last day (3000 days later) »