« first day (1624 days earlier)      last day (3307 days later) » 

8:00 PM
man why can't I just iterate over a parameter pack why does c++ have to be so tedious god damnit
 
@JohanLarsson WHY is LanguageSetting a singleton? Why would you have an IReadonly interface in the first place?
 
user1804599
Alright, this may work by the end of the next month: gist.github.com/rightfold/4d4e407a6ae2b7d419b3
 
Xeo
@Pris VARIADIC_EXPAND(loop_body_func(pack))
:P
 
Why don't you just pass the CultureInfo with DI that'd be much easier @JohanLarsson
 
8:01 PM
@Xeo is that a boost macro?
 
Xeo
nah
easy to write yourself, though, or to just write its internals out
 
user1804599
Also I'm gonna make partial application use & instead of %.
 
@BenjaminGruenbaum can't really do that cause it needs to track changes. The language needs to update in the app when the user changes langauge.
 
user1804599
% already means dynamically scoped value and %1 being lexically scoped would be confusing.
 
@BenjaminGruenbaum Most things using the language setting do not edit it.
 
8:03 PM
@JohanLarsson oh, then why doesn't the app have a language property which you can just change, and relevant parties just subscribe to notifications - like UI events with bubbling and delegation?
That way, you inject the culture info but also notify it of changes if it subscribed to notifications and you don't have global state everywhere but rather hierarchal state
 
this is a language property and a notification mechanism no?
I could inject an IObserbvable<CultureInfo> but that would be identical
 
No, it would not be identical since you would not have global state.
 
the language setting is global even if I don't like it.
 
It'd be easier to test, easier to move around and so on.
 
8:05 PM
@BenjaminGruenbaum How is the sample hard to test?
 
Language setting isn't always global, there are tons of cases (like multiuser apps, or apps with partial translations, or setting a document's setting and not the app's)
 
It's hard to test because not all of its dependencies are obvious because it relies on global state.
 
I'm not saying it must always be global, just tried to think of an example where it is.
In the app I'm working on it is global
@BenjaminGruenbaum new Editor(Mock.Of<IEditable>())
in tests
 
Right, but why force that fact into your design? In just as much work you could make the dependency explicit through DI and when you move things around less things will break and users will find out what it needs more obviously.
@JohanLarsson It's not about the technical ability to test it, in fact it's never about that. I always get upset when people imply DI has to do with testing... It's about having explicit and clear dependencies in your code base.
 
8:08 PM
how do you mean make the dependency explicit through di?
 
user1804599
I like Perl 6:
 
user1804599
> 1 / (0.1 + 0.2 - 0.3)
Divide by zero
 
What is the result of 0.1 + 0.2 - 0.3 in Perl?
 
@JohanLarsson when you don't have globals everything you pass around is well... passed around. A class can't access Global.Instance and that's very nice for reading code.
 
user1804599
@FredOverflow In Python it prints something like eighteen billion.
 
user1804599
8:10 PM
Because it's still stuck in the stone age and removes information from the literal by casting it to a float.
 
@BenjaminGruenbaum I'd say IoC containers provides convenience for ctor injection that enables mocking as the most important feature.
 
this is actually not a programming question. — Alex 5 mins ago
I think this was my most downvoted post ever
-6 and counting
 
@райтфолд Why would you ever want to use float instead of double, apart from GPU?
 
you're still at +11
and we'll reopen it if it gets closed
 
Yeah, but it's still generating controversy
 
user1804599
8:12 PM
@FredOverflow float is a double in Python.
 
Like, the comment threads have been nuked twice
 
BTW you should protect it
 
@JohanLarsson no, mocking is not the most important feature the fact dependencies are explicit is. You always know what the object needs in order to work. Testing being enabled is a language limitation of some languages - it's certainly not the point of it all it's a plus that you get nice syntax and automatic wiring through a DiC is just added sugar.
 
@AndyProwl Poor Robert.
 
8:12 PM
@BenjaminGruenbaum I'm not advocating doing Global.Instance anywhere but where wiring up the container.
 
haha Robert deleted his answer
 
@BartekBanachewicz did he nuke it?
 
he just deleted his answer
 
@BartekBanachewicz It's not like I think this is a particularly important question
 
@JohanLarsson did you read "singletons are pathological liars" by Misko Havery?
 
8:13 PM
I was just curious, I didn't expect all the heat
 
@AndyProwl that's not what protection is for. Anyway, Any question at least a day old, so....
 
Your question was fine IMO
 
@BenjaminGruenbaum Yeah but it was a while ago.
 
or welp, I suppose we shouldn't protect preemptively
 
I think it's a good read on the subject and it discusses a very similar case to what you're describing
 
8:15 PM
@BartekBanachewicz Nah, it's fine if it gets closed, I considered that as one of the possible outcomes, maybe even the most likely
But all those flames, jeez
 
> After a quick search in draft N4296, I could not find any example of a name in the C++ Standard Library for which two possible spellings exists (BrE vs. AmE).
 
imho It's perfectly fine and I'll cast reopen
 
I don't think you looked very well tbh
 
uninitialized_copy would seem to set a precedent for the US variant. (Although the "z" is technically correct, if abominable, in English). — Mike Seymour 2 hours ago
 
Not even that.
"undefined behaviour" vs "undefined behavior"
 
8:16 PM
That's not a name in the Standard Library
 
It's in the spec.
 
Yes, I am aware the spec seems to follow AE
 
I'll reopen also, annoying with all the closing on SO
 
I was wondering about names in the library since I could not find any name with potentially ambiguous spelling, but you're right, I didn't look very well
 
user1804599
 
user1804599
8:18 PM
> I'd credit the original source if I could find it.
 
user1804599
lol
 
@Rapptz good one
 
@райтфолд lol what's the point of that pic anyway?
 
Today class, we will learn about Einstein's general relativity.
Who invented it is not known.
 
Einstein may have had something to do with it
 
user1804599
8:20 PM
@AndyProwl He said fibonacci is the boring standard example but he says he doesn't give a shit.
 
i think it's referring to the "Haters gonna hate" pic
 
@райтфолд Ah, got it
 
@AndyProwl next thing you'll tell me the fibonacci sequence is invented by Euler.
 
shit I need "samples/nooble.png"
 
@AndyProwl Maybe he discovered it
 
8:21 PM
I should've pushed the images
everything seems to work anyway
@Jefffrey @Mr.kbok branch 3.3 has RC of, well, 3.3 w/o any UB. Test in the meantime. If everything works it'll go back to master as baseline right now
 
@BartekBanachewicz Truly the best sample image.
 
@orlp It was invented by an intelligent designer, so not much point speculating about it in the Lounge:)
 
oh hi nooble
do you want to test if my library works
 
@MartinJames There's only one person who can tell this...
and that's @orlp!
:P
 
my gut instinct is that obama invented einteins general relativity
thanks obama
 
8:24 PM
@райтфолд Original source for the picture or for Fibonacci? :)
 
@BartekBanachewicz sure :)
 
@orlp Yeah, that's how he got the Prize.
 
@Nooble do you have HP installed?
 
TIL you get a peace prize for work in physics
 
or, put differently, can you / do you want to build it
 
8:24 PM
@BartekBanachewicz No, what's that?
 
Haskell Platform
 
@BartekBanachewicz RC?
 
@Jefffrey Release Candidate
 
lol HP for Haskell Platform
 
@BartekBanachewicz No, but I can install it.
 
8:25 PM
Seriously guys, less acronyms
 
@BartekBanachewicz Uh...
 
Who invented the Nobel price? Some norwegian king right?
 
@Cinch what
 
What programs have this in their code base?
I'm just curious.
 
@orlp No that's Abel prize.
 
8:25 PM
@orlp er. Alfred Nobel, inventor of dynamite
 
sheesh people
way to ruin a running joke
 
@TomW No - that's the Nobel Prize.
 
@TomW there's a joke being stretched to death. he's aware.
 
ha, oh
didnt read lol
 
@Nooble well, if you want... It's not particularly hard. Neither is building the project, cabal will download dependencies for you.
 
8:26 PM
It was a terrible joke.
Had to be killed on the spot.
 
@TomW oooh it' somebody new-old!
Hai!
 
@Rapptz then your spot was 5 minutes late
 
IIIRC, the Nobel price was a promotion at Morrisons.
 
no gifs
 
8:27 PM
why no nobel for computer science or mathematics? ;_;
 
1 message moved to bin
@Blob Abel Prize for math, Turing Award for comp. sci
 
@Jefffrey come on, RC is well-known
 
@BartekBanachewicz Ok.
 
aw :(
 
@Rapptz rename to "nobel" pls
 
8:28 PM
@Rapptz Fields medal too
 
@BartekBanachewicz yeah, all of one person in this lounge knew what it was: you
 
@BartekBanachewicz yes but in this context "branch 3.3 has RC of, well, 3.3 w/o any UB" I have no idea what you are saying
 
and HP too
 
Anyways, hello there!
 
Seriously, no one else knows that RC means Release Candidate
 
8:28 PM
Are you saying that the branch is called "3.3"?
 
@Jefffrey yep
 
i was thinking "ref count" :|
 
@BartekBanachewicz I do not. All of my apps are permanent betas.
 
After you install haskell platform:

git clone github.com/bananu7/Hate.git
cd Hate
cabal sandbox init
cabal install --dependencies-only
cabal run sample_shapes
@Nooble ^
actually it will configure itself
@MartinJames lol
 
How can I tell who has power over a repo on GitHub?
 
8:31 PM
Contributors tab?
 
-2
Q: Virus Code discovered by my Antivirus on an SO question

MartinSee this question: Trying to decode a virus This page is blocked - it loads and then the page removed by ESET Endpoint Secuirty on my Laptop. The AntiVirus software states it has found code for PHP/Agent.NEH Trojan on the page. This may be code that the question originator has put on the page...

 
@Cinch frankly, if someone contributes the most that means he has the power, regardless of the status
 
@BartekBanachewicz No but what I mean, who has pull power for the entire repo?
Because I'm wondering who decides which repos get pulled for the master once I submit a pull request.
 
anyone can pull a public repo
not everyone can push
 
@Rapptz oh sorry. What I meant was who has the push power?
 
8:33 PM
No way to find out.
 
Members tab?
oh wait no that shows forks
 
Why would push power be public information?
 
@BartekBanachewicz Contributors counts PRs.
 
Yeah I'm a bit confused but I'll take it as it is
Make sense too security wise
 
@Rapptz see my next message
 
8:35 PM
I willingly ignored it because it was bollocks.
test
 
@Rapptz way to argue
 
It's not an argument. It's a statement.
 
your statement is bollocks
 
guys
 
Well I've been preparing my first pull request ever and I was wondering how that works in conjunction with other pull requests
 
8:36 PM
if it's a statement you must end it with a semicolon;
 
fucking syntax errors
 
I am now installing the Haskell Platform, should be done in 5 minutes.
 
@orlp Ironic how a statement is considered unfinished with a period in programming and unfinished with a semicolon in English and many other languages
 
@Cinch I think you need to go back to "what is irony" class
 
8:37 PM
My statements end with a newline
 
Anti-Vlad? ....................... — Martin James 12 secs ago
 
@orlp well if I were making a language you'd figure that you'd use a period to be similar to a sentence
 
@Cinch Prolog uses a period IIRC
 
But in reality a statement is more similar to a clause in C
 
@Cinch and use ; for member access?
 
8:40 PM
Test
 
@MeNoTalk Use a Sandbox chatroom instead
 
@Cinch and that is irony how...?
 
@milleniumbug I guess I found a bug.. I am suppose to be blocked from chat..
for a month.. but here I am..
 
@MeNoTalk failed
 
@melak47 Ironically something like Class(member) would make more sense to visually ay that it belong "inside" the class
 
8:41 PM
i will ask in meta se..
 
@orlp Because it's counter-intuitive to real language.
But the semicolon makes more sense mechanically because it's not as used as much as a period and is eye-catching enough to signify the end of a statement.
 
@Cinch counter-intuition is not irony
 
@orlp the state of things is the opposite of what a person might expect from prior conventions of language--opposite expectations vs reality is irony.
Many langauges end their sentences with a period.
 
@Cinch that's a paradox
 
@orlp Ugh oh my god.
Can we say that it's an ironic paradox?
But then it wouldn't be a paradox.
 
8:43 PM
@MeNoTalk Are you using you own calendar app?
@MeNoTalk ..and we're back on the suicide thread..
 
@MartinJames i am not following..
 
I stopped using paradox some two years ago.
@MeNoTalk You are being allowed to chat. You raise it as a bug. It gets fixed. You get banned again.
 
ok.. fixing the bug is way more important than me chatting or not...
 
But but.... Self preservation!
 
@VladfromMoscow You do jokes now instead of providing answers for LQ questions? Well, you seem to improve now. — πάντα ῥεῖ 2 mins ago
Vlad improves? Who should we bash in future now?
 
8:52 PM
@BartekBanachewicz after the command cabal install --dependencies-only it fails with the error The program cpphs is required but could not be found
What do I do?
 
@Nooble Chewing more eucalyptus probably ...
 
@πάνταῥεῖ Besides that :P
@BartekBanachewicz Apparently it's an issue with GLutil github.com/acowley/GLUtil/issues/10
 
@Nooble cabal install cpphs
 
Oh okay :)
 
should work I think
 
8:57 PM
I think it's working.
Yep.
 
weird issue
I never ran into it
 
@BartekBanachewicz So is it a line with a circle following my cursor and growing?
 

« first day (1624 days earlier)      last day (3307 days later) »