« first day (2245 days earlier)      last day (2702 days later) » 

Ell
6:19 PM
hey my free monad code works now :3
 
Paris has one of the worst ait qualities in the world because of what we put in our cars.
 
Ell
@rightfold is go an algebra here?
 
Fortunately, it should start to chage in the years to come.
 
@rightfold Do you think implicit function types are useful?
> The more i use complex scala the more I long for the simple Java-ish boilerplate - boilerplate is more code I can directly read and less code/Scala rules I need to remember in my head.
hm, interesting perspective
 
Ven
@fredoverflow I linked it to her and you this morning :).
youtube.com/watch?v=TOS710QOsj8 @jaggedSpire @Borgleader
 
6:30 PM
That's cute :3
 
Ven
no you
 
Oh you :blush:
 
@Ven Oops, I didn't realize :) I visit SO proper way less than Lounge these days...
 
Ven
WTF is that flag
 
lol @ flag
 
@Borgleader Question of the day:
 
Still can't see flags.
 
-11
Q: What would be the result of this particular code in vb?

Abercombie Feelixi dont have the ide with me right now so I cannot test it.

 
@fredoverflow D:
 
I fuckin' loved Bush when I was a teen.
Still no clue what they were singing about.
But hey, it was Grunge... did Grunge lyrics ever make sense?
 
Ven
6:35 PM
@fredoverflow you murderer!
 
It' like responsabilities: I'm still too young for that shot :p
 
Xeo
Taking a shot at having responsibilities? :P
 
@Xeo Is she becoming a mother?
 
@Xeo I do have a job.
@fredoverflow That's hardly happening x)
 
@Xeo preferably to the head
 
Xeo
6:37 PM
(It was a pun on your typo.)
 
@Xeo I... didn't even notice :x
 
@Morwenn hey, ppl already think they might've found a way to make infertile women passively spawn eggs
who knows what might happen before you die
 
@AlexM. I mean, even if I could I wouldn't want to.
 
morwen doesnt want to form a babby
 
Ven
"passively spawn eggs" sounds very videogamey :D
 
6:40 PM
ITT the final boss is an infertile woman who spawns eggs.
 
Ven
Binding of Isaac 3
 
How did your exam go? — Mysticial 13 secs ago
 
@AlexM. There's always adoption.
 
Anyway, I never liked babies nor kids, and I'm probably unable to raise anyone.
 
@Morwenn You've said that before. It always leaves me a little puzzled, given that you hang out with Loungers, who are almost universally fairly childish.
 
6:49 PM
@JerryCoffin But I'm not responsible for the behaviour of any of you :p
 
@Morwenn So it isn't really that you dislike children, only that you don't want to be responsible for them?
 
@Morwenn Given that you answered all of our questions, I would rank you quite high on the response-ability scale!
 
@JerryCoffin Kind of both. I even tend to hate children who remind of myself when I was longer. I do find some children interesting from time to time (it's not just black or white), but that's pretty much it.
 
@Morwenn Interesting. I may have to think a little about that.
 
-25
Q: Temporarily suspended for swearing?

Ben FortuneSince when did this become a rule? I posted a link to a server deployment site I saw on HN, it got flagged for whatever reason. I then got suspended for the following message: I've used expletives many times with multiple moderators in the room with no action. If you check the link below, t...

^^ lol
 
6:56 PM
@fredoverflow It's not that I can't be responsible (I sometimes am), but I don't want to be responsible most of the time ^^'
@JerryCoffin You've got all the time you want :)
 
Ven
I guess it's time to go home.
 
Ven
8pm is sleeptime
 
Ell
@fredoverflow lol
 
@Morwenn I wish! I never have enough time (but somehow still waste far too much here).
 
7:02 PM
@Morwenn all young girls say that
 
@JerryCoffin Eh, I know that feel.
 
https://t.co/ZV1uVHSJ1a
lol
 
@AlexM. Most girls I know say « I do want babies, but not right now ».
 
@Mysticial good lord....
@Ven Puppers <3
 
@Griwes Will undoubtedly result in more exposure than most of what's tweeted there...
 
7:08 PM
can I join in on the action
without composing
 
@AlexM. And there, in a nutshell, is why most male porn actors make no money and get treated like dirt.
 
pay is good in gay porn'
gay porn actors are famous like their female counterparts
 
@AlexM. I s'pose.
 
so superstars exist
 
@AlexM. In fact, many straight male actors star in gay porn for financial reasons.
 
7:13 PM
I'm not surprised
it's only gay if they push back
and if in doubt they can always say "no homo" when they start filming
 
lol
Gay-for-pay describes male or female actors, pornographic stars, or sex workers who self-identify as heterosexual but who are paid to act or perform as homosexual professionally. The term has also applied to other professions and even companies trying to appeal to a gay demographic. The stigma of being gay or labeled as such has steadily eroded since the Stonewall riots began the modern American gay rights movement in 1969. Through the 1990s, mainstream movie and television actors have been more willing to portray homosexuality, as the threat of any backlash against their careers has lessened and...
 
7:34 PM
terrible cable management!
 
lol best discussion ever in the cpp lounge
 
@fredoverflow Its so bad I can't even find the motherboard.
 
@fredoverflow Long term maintenance wasn't a priority, I guess...
 
@Borgleader
-13
Q: Can I send mail into inbox

learningcodeI'm building an app to spam some mail (just for practice), but all of them are sent into Spam box. Can I ask you if there is a way to send mail into the Inbox? Here is my code: int n = 10; for (int i =0; i < n; i++) { MailMessage mail = new MailMessage(textBox1.Text, tex...

 
7:55 PM
> I'm building an app to spam some mail (just for practice), but all of them are sent into Spam box.
I'm building an app to create spam but all of it is going to the Spam box
lol
user image
6
 
If your intention is to spam an email account, why are you surprised they end up in your spam folder? — Bas Dec 2 at 14:54
LOL
That is a good question.
 
Ell
8:13 PM
Okay quick q:
what is the name of the function which returns 0 when the input is 0, and 1 otherwise?
 
IsNotZero(x)
 
8:30 PM
@Ell == 0
 
Ell
that returns a bool :(
 
Which is either 0 or 1
 
Depends on your language and type conversions.
 
booleans are ex definitone 0 or 1
 
Ell
@набиячлэвэли now that just isn't true
 
8:33 PM
But 0 is true in Bash.
 
Ell
I was looking for a "mathematical" function anyway
bool = true | false
 
Well x == 0 is of type "logical" which has value of 0 or 1
did you take your highscool maths course
 
Ell
you can call it 0 and 1 but it doesn't make it the same as 0 and succ zero
 
@набиячлэвэли I once asked a big ol' dumby question that.
Feel free to waste 30 minutes of your life.
 
8:35 PM
> Software Engineering.SE
This is maths now, as Ell proclaimed
 
Also note Puppy's -4 answer.
@набиячлэвэли Ok, this one then.
 
49
Q: Is it possible to break a long function name across multiple lines?

Brandon IbbotsonOur development team uses a PEP8 linter which requires a maximum line length of 80 characters. When I'm writing unit tests in python, I like to have descriptive method names to describe what each test does. However this often leads to me exceeding the character limit. Here is an example of a fu...

^^ WHY?!?! Just why?
test_that_client_event_listener_receives_connection_refused_error_without_serve‌​r
 
Ven
@Morwenn that answer is meh.
 
It somehow reminds me of that C DR about breaking a macro across multiple files.
@Ven There was no satisfying answer tbh.
 
Ven
The semiring {*, int} is diff :c
 
8:38 PM
The most satisfying one was « it's fucking arbitrary » on Math.SE.
 
Ell
lol
 
> test_that_client_event_listener_receives_connection_refused_error_without_server
lol
"when_no_server_client_event_listener_gets_connection_refused"
would be a start
nesting to make more things implied would end up even better
class ClientEventListenerTest:
   def when_no_server_available_it_gets_connection_refused
class ClientEventListenerTest: def when_no_server_exists_it_gets_connection_refused Your original name is pretty lengthy and not exactly worth fighting this much for if you ask me. — Alex M. 5 secs ago
 
Ell
9:00 PM
std::find_if_not is quite weird
std::find_not would make sense to me
 
Ven
it's called find_if not find. find_not would take a T not a function
 
There's remove_copy_if which is basically negation of copy_if.
I think copy_unless would have been a better name though.
@Ell lose_if
Nah :)
 
Ell
@Ven right, that's my point
it makes sense to have find, find_not and find_if
 
std::not_fn should be a thing way earlier
 
Ell
instead of find, find_if and find_if_not
because negating is super easy inside a predicate
but finding the first not-element currently requires a predicate :V
a little bit of a pain IMO
 
Ven
9:10 PM
@Ell but then find_not should be the opposite of find
 
Ell
@Ven yes
find the first element which is not the supplied element
find the first non zero element for example
find_not(begin(v), end(v), 0)
as opposed to finding the first zero
find(begin(v), end(v), 0)
they seem pretty opposite right?
 
Ven
So you don't want to rename find_if_not, you want to destroy it?
 
Ell
yes
I wasn't clear, sorry :P
 
@JerryCoffin Do you by any chance remember what this was?
Jul 14 '13 at 3:26, by Jerry Coffin
user image
 
had to answer the dude
0
A: Is it possible to break a long function name across multiple lines?

Alex M.The need for this kind of names may hint at other smells. class ClientConnectionTest(unittest.TestCase): def test_that_client_event_listener_receives_connection_refused_error_without_server(self): self.given_server_is_offline() self.given_client_connection() self.when_cli...

idg why this was not suggested first there's even random shit like
> We can applying decorator to the class instead of method since unittest get methods name from dir(class).
wtf
 
9:15 PM
@Mysticial No recollection at all.
 
However, find_if_not isn't really a big burden, so I'd use that.
 
Ell
Ah I could
I will just go with find_if_not though, but begrudgingly
 
9:36 PM
Have you considered artificial colour blindness? — Yakk 12 mins ago
kek
 
@Ell If you're using it enough to care, I'd consider a simple wrapper around find_if_not: coliru.stacked-crooked.com/a/0e03a4ba5270aafb
 
Xeo
9:51 PM
@StackedCrooked that's not how it got the name though. remove_if -> remove_copy_if
the _copy counterpart operates on an output iterator
as opposed to the inplace version
 
Ah, I see.
 
Xeo
so it outputs all non-removed elements over.
 
10:37 PM
It's all comedy. But there's still a point
@StackedCrooked UB if the data is all Ai
@AlexM. hehehehe
 
?
 
@sehe hey sehe what was the online c++ compiler that you showed me the other day?
 
@sehe What point would that be? That Google search is different with different keywords?
 
@chewbapoclypse melpon wandbox, godbolt gcc explorer or Coliru
6
A: Is it possible to break a long function name across multiple lines?

SkyccWe can applying decorator to the class instead of method since unittest get methods name from dir(class). The decorator decorate_method will go through class methods and rename method's name based on func_mapping dictionary. Thought of this after seeing decorator answer from @Sean Vieira , +1 f...

That answer is actually pretty sane (even though I find the problem ridiculous)
 
I thought the hehe was about me misunderstanding his code
 
10:45 PM
@wilx Well. More, the way in which it is different
@AlexM. Why
 
in my defense there was a tiny amount of it and we did end up with better names that would've not caused the misunderstanding :P
@sehe because you replied to my answer
 
I think you shared it for our entertainment. I confirmed my being entertained. "Hehehehe"
@AlexM. I didn't. I replied to your quote in the lounge
:)
 
your reply goes to my answer
click it
 
Honestly. If I were to reply it'd be a comment on the mainsite.
@AlexM. You're doing it again... :(
 
I'm so confused rn lol
 
10:47 PM
:)
It appears so
 
anyway after going thru the thread again this seems like the sanest answer
 
No problem. Text messaging is teh hardz
 
Stop linting your unit tests. — John Kugelman Dec 4 at 4:47
in particular
Then turn off this rule. It's a minor insanity that you're trying so hard to work around this lint rule rather than just disabling it. — John Kugelman Dec 4 at 4:53
 
I don't think I agree. I'd hate those function names even if they have to be unique for some (stupid) technical reason
 
I think they're long too
 
10:48 PM
So I think namespacing is the way to go
 
and they have unnecessary cruft
unfortunately when your name has to start with "test"
 
Namespacing has to do with mental hygiene. Because you need to categorize. Which in turn makes you think about your coverage a lot more
 
you can't do given, when, then cleanly which is my fav way to name tests
 
@AlexM. test is 5 chars (including the _ delimiter)
 
I meant about how it reads
see how "that" feels like a natural choice in "test_that_sth"
just because "test_" is there
 
10:49 PM
@sehe Before I started migrating to C++ with namespaces and member functions, I used to name mangle all my function names with the scope they belonged in.
That let to some pretty long names. But that as long as the one in the question.
Since I usually condensed them with acronyms.
 
Yeah. That's what you get for languages from the pleistocene
 
the 80 char line limit is pretty hardcore tho
 
@AlexM. I only "weakly" follow that rule.
 
IIRC we did about 120 and then increased to 140 and people still didn't seem to care
monitors and resolutions be large ppl
 
I generally limit my comments to that unless it causes a single word or period to spill over.
I generally split long lines up so they fit under 80 unless I have many near identical lines together.
 
10:53 PM
what I'm talking about was not python mind you it was C# I've no idea if the 80 chars benefits python in any way
figure it might be related to terminal width or w/e
 
LongReturnTypeName<WithTemplateParameters> method0(const AlgorithmPlan& plan, Shit* destination, const Shit* sourceA, const Shit* sourceB, const size_t length, size_t threads, const MoreShit& parallel_compute_runner_shit);
LongReturnTypeName<WithTemplateParameters> method1(const AlgorithmPlan& plan, Shit* destination, const Shit* sourceA, const Shit* sourceB, const size_t length, size_t threads, const MoreShit& parallel_compute_runner_shit);
LongReturnTypeName<WithTemplateParameters> method2(const AlgorithmPlan& plan, Shit* destination, const Shit* sourceA, const Shit* sourceB, const size_t
^^ That sort of thing is where I do let it roll over 80 characters.
Maybe not that long. That's just a contrived example. It does have to fit confortably on 1080p in Visual Studio on one monitor.
 
sometimes one can split the arguments each into separate line, but not always
 
I like doing that if there's many of em
like this
 
@milleniumbug I tend to do that when it gets longer than even 60 characters. And then I group related arguments together on the same line.
 
void MyFunction(
	int arg1,
	int arg2,
	...
	int argn)
 
11:00 PM
void run(
    const Algorithm& algorithm, const Parameters& params,
    Shit* destination, const Shit* source, size_t length,
    void* scratch_memory, size_t scratch_memory_bytes,
    TaskRunner& parallelizer, size_t threads
);
Through my variable names are generally less descriptive than that. (i.e. single-letter names and acronyms) But they are standardized throughout the program.
 
Ell
11:16 PM
lol
Look at this image we got in a lecture
the volume of managers outdoes the workers :V
Terrible
 
The only way that managers can outnumber workers is if some managers had only 1 report. And nobody reports to more than one direct manager.
 
Middle managers, higher managers, reporting managers, interim manager. department managers, regional managers. Makes a lot of sense
@Mysticial All problems can be solved by adding another layer
 
@sehe With those rules, even if you assume the worst case where each manager has only 2 reports, the # of managers still will not exceed the # of workers. Because it becomes a geometric sum.
And a binary tree.
The # of leaf nodes will always be greater than the # of total nodes assuming each non-leaf node has at least two child nodes.
 
Oh you mean the fan-out. Hmm. You have a point
 
So the only way @Ell's diagram can be true is if there are single chains of management where some managers only have one (direct) report.
 
11:22 PM
humans aren't very good at making societies efficient
 
Ell
it depends who you call the managers
 
productivity has improved 10 times in sectors such as agriculture and manufacturing, if society is efficient, everyone should only be forced to work 3 hours or less a day, the rest of the time can be used to spending time with children family & friends, having holidays and but concentrate on truly innovative technologies and space exploration and providing opportunities for increasing population & way of escape major disaster when it happens
 

« first day (2245 days earlier)      last day (2702 days later) »