« first day (789 days earlier)      last day (4385 days later) » 

user142019
15:00
@sehe we had Nassi–Shneiderman diagrams.
@FredOverflow Ah. Here's a trick then: post placeholder, delete, edit, undelete.
@Zoidberg'-- Damn. That's bad
@Zoidberg'-- Slightly better
user142019
I used recursion in my Nassi–Shneiderman diagram and the teacher didn’t understand it.
user142019
We had to make a Nassi–Shneiderman diagram of a function that counted down to 0 and printed everything.
@FredOverflow Btw, can you put your notice about purists as a comment instead?
15:01
@Zoidberg'-- Lol. Troll! Using recursion in flowcharts is epic there
@R.MartinhoFernandes Why is that?
user142019
@sehe that’s how I’d implement it. :P
Note: system("PAUSE") is a system-specific solution. It is also strongly discouraged because it involves a system call, which is expensive.
user142019
The teacher complained that I implemented it in C++ before making the Nassi–Shneiderman diagram. xD
We care about expensive trying not to close a console window?
@R.MartinhoFernandes Why? I don't like answers to end in code.
user142019
15:03
@ScottW cool
@Zoidberg'-- TIL about Nassi-Shneiderman diagrams AKA funny looking flow charts
@ScottW Long-term job or Kamikaze job?
@FredOverflow But... but... it's meta!
@ap who the heck cares? You are stopping your program for user interaction, right before it exits. All it needs to do has been done already. — R. Martinho Fernandes 1 min ago
user142019
Nassi–Shneiderman diagrams look horrible with early returns.
Nassi–Shneiderman diagrams look horrible.
15:09
@ScottW "stering"?
sounds like fish
Why does it return a string?
user142019
@ScottW dat indentation.
@ScottW Oh gawd. What. WTF. What. The. Fuckety. Fuck. Holy Tittyfruits.
user142019
isPalindrome :: [a] -> Bool
isPalindrome xs = xs == reverse xs
What does the else belong to? The for loop? :)
user142019
15:10
@FredOverflow in Python you can have else after a for loop. :)
semantics?
@Zoidberg'-- Fail.
user142019
ugh
user142019
@FredOverflow it has something to do with break. I never use it.
@Zoidberg'-- isPalindrome = uncurry (==) . id &&& reverse
@Zoidberg'-- You missed the context.
GHC would be angry.
user142019
15:14
Oh.
@R.MartinhoFernandes FUCK YOU I was just rebooting into Linux to ask lambdabot!
@FredOverflow I had to lookup &&&. In class we used a custom \/ for that.
user142019
Oh now come flow charts. /cc @sehe :P
I always have to lookup the arrow stuffs because I don't know if I should use &&& or *** or ||| or +++ instead of \/ or >< or -|- or /\.
The end of that sentence looks like complete gibberish.
@FredOverflow You can install pointfree on Windows.
@ScottW He get his master's degree from a cracker jack box?
15:17
posted on December 13, 2012

There's a technical term for people who claim that their programs don't compile because of a compiler failure rather than a bug in their own programs: arrogant.

Did he at least remove the plastic wrapper and dust off the caramel popcorn?
isPalindrome = ap (==) reverse
user142019
Teacher’s pseudocode is fugly
user142019
WHILE condition
    sequence
ENDWHILE
user142019
Looks like Fortran or something.
15:18
@ScottW Many computer scientists with degrees don't know squat about programming.
Hahah people who think pseudocode has to be structured properly
@FredOverflow Oooh, exponentials. I never got the hang of those.
user142019
@CatPlusPlus my teacher -_-'
@FredOverflow "squat"
@R.MartinhoFernandes I have absolutely no idea what ap (==) means, that's just what lambdabot spat at me :)
user142019
15:19
He wants uppercase keywords and camelcase identifiers.
@FredOverflow Used the function monad instance.
Does that often.
well, remember that computer science != programming. You can be a good programmer without being a good computer scientist, and vice versa
@ScottW No, not as such. VC++ includes a _stat in its standard library though.
@ScottW If memory serves, _stat is implemented using GetFileAttributes (though given my memory, it would be a bad idea to depend on that).
@ScottW Right -- I'm not saying it's bad to depend on stat -- only bad to depend on my memory.
Boost.Filesystem
doesn't VC11 have <filesystem>?
user142019
15:33
Boost.Filesystem is fawesome.
@jalf filesystem is TR2, isn't it?
@FredOverflow yeah, and I'm pretty sure VC2012 implements it
somebody actually came up with a nice answer to my question ^^
@jalf VC12 includes it -- no need to grab that particular piece from Boost.
im really happy right now :D
15:38
VC12 is not out yet :P
VC11 ships Filesystem v2. Boost uses v3.
@ScottW I have met Java programmers who couldn't even swap two variables.
@FredOverflow NFI what the difference is.
No need to do it for me :) Do it for the money!
... wait
@Zoidberg'-- I knew it
@FredOverflow Kinda tricky to do in Java.
@R.MartinhoFernandes Difference between v2 and v3 in a nutshell?
15:39
@gnzlbg Oh noes. It works! Someone kill the site
@R.MartinhoFernandes I meant explicitly in user code, without calling a function :)
user142019
@sehe you should delve into astrology.
@Zoidberg'-- Nah. I'll just use it as a secret weapon
user142019
Flowcharts?
user142019
Okay. I have to design a protocol.
15:41
@JerryCoffin Technically, it's VC11 (version 11 == 2012. Version 10 == 2010)
@jalf Yup.
National Ugly Sweater Day 2012 is on the same day as the Mayan Apocalypse. How to prepare --> http://stylsk.co/UyeK4R
Hmmm
@sehe :D
@Zoidberg'-- With flow charts? Surely, they mean "Flawed Tarts"
Someone downvoted me on this answer :(
15:45
@FredOverflow Can't really blame them -- he was asking about the syntax of his existing definitions, which you didn't answer at all.
Okay, so if somebody asks how, when and if to delete a char array, we don't suggest std::string either? ;)
delete[] array;
simples
@FredOverflow If you are using C++11, alias<int*> is shorterest.
@FredOverflow Maybe -- but not without at least a little explanation about this being a different but better idea.
@FredOverflow That's like saying if someone said, "What's the best way to get to Albuquerque?" and you throw a map in their face and say "Your welcome"
Actually that's ideal for me, but maybe not for everyone
15:48
@R.MartinhoFernandes alias is not std, right?
@FredOverflow A second to define, a lifetime of usage.
template<typename T> using alias = T;   // like that?
Then put a ring on it!
15:49
@Neil No, it's more like if they asked how to get to Albuquerque, and you threw a map of Baden Baden in their face, and said: "You're welcome!" Yes, I might even agree that Baden Baden is more fun to visit than Albuquerque, but it doesn't even come close to answering the question.
@R.MartinhoFernandes If you like it, put a ring on it. Never heard of it?
@Neil How about saying if someone said "What's the best way to get to XYZ?" and you said "First, you want a car, since XYZ has no train station or buses."
user142019
@FredOverflow a ring on it?
@FredOverflow Is that from a Beyoncé song?
@Zoidberg'-- MARRY IT
user142019
15:50
/*             Three::rings
          for:::the::Elven-Kings
       under:the:sky,:Seven:for:the
     Dwarf-Lords::in::their::halls:of
    stone,:Nine             for:Mortal
   :::Men:::     ________     doomed::to
 die.:One   _,-'...:... `-.    for:::the
 ::Dark::  ,- .:::::::::::. `.   Lord::on
his:dark ,'  .:::::zzz:::::.  `.  :throne:
In:::the/    ::::dMMMMMb::::    \ Land::of
:Mordor:\    ::::dMMmgJP::::    / :where::
::the::: '.  '::::YMMMP::::'  ,'  Shadows:
 lie.::One  `. ``:::::::::'' ,'    Ring::to
(see full text)
@R.MartinhoFernandes Yes.
It is? I only knew it from South Park.
user142019
^ A ring on it.
@DeadMG Meh, I suppose it really depends on what kind of answer you were expecting
It's like that joke where the woman passing by in a hot air balloon asks a guy where she is because she's late for a meeting
And the guy gives her exact coordinates and she says "You must be an engineer.. you gave me precise instructions that don't help me at all, and I'm still late for my meeting"
user142019
15:55
@FredOverflow dat sound.
user142019
@FredOverflow awesome
user142019
Does anybody know the rules about casting function pointers in C? Is it safe to do cast void(*)(void*) to void(*)(uv_tcp_t*)?
user142019
15:59
Where uv_tcp_t is a struct.
@Zoidberg'-- Yes -- you can cast a pointer to a function to a pointer to any other function type, then back to the original without losing anything.
user142019
@JerryCoffin the function pointer won’t be casted back. I want to pass &free to a function expecting a cleanup routine.
A pointer to a function of one type may be converted to a pointer to a function of another type and back again; the result shall compare equal to the original pointer.
however:
If a converted pointer is used to call a function whose type is not compatible with the referenced type, the behavior is undefined.
user142019
But since it’s safe to cast uv_tcp_t* to void*, I’m wondering whether it’s safe to do what I’m doing.
@StephenCanon your point?
16:02
@Zoidberg'-- Write a cleanup function with proper signature you lazy scrub
@Zoidberg'-- Sorry -- for that, the function needs to explicitly receive a void *, and explicitly cast it back to the correct type after receipt.
user142019
@JerryCoffin okay. Thanks.
user142019
@CatPlusPlus :<
14
Q: Casting a function pointer to another type

Mike WellerLet's say I have a function that accepts a void (*)(void*) function pointer for use as a callback: void do_stuff(void (*callback_fp)(void*), void* callback_arg); Now, if I have a function like this: void my_callback_function(struct my_struct* arg); Can I do this safely? do_stuff((void (*)(...

What is C++11?
16:02
@TonyTheLion Talking about the 15 stupidest tweets ever is roughly equivalent to talking about the wettest water ever.
@vulcanraven The current C++ standard.
C++ walks into a bar after a long day of work. The bartender looks at him and says, "What's wrong"? C++ replies, "I've been looking at the same copy-and-paste code.. I need a boost."
yeah I mean that one :P
@JerryCoffin I guess, but I gotta do something with my time
user142019
@vulcanraven C++11 is C++.
user142019
C++03 is C++03.
user142019
16:04
C++ was C++03.
@JerryCoffin @Jerry de Martel?
@R.MartinhoFernandes No, I don't advise it with breakfast!
@EtiennedeMartel has beer for breakfast?
woah.
16:12
@TonyTheLion He probably has beer for toothpaste.
Xeo
Xeo
Man-oh-man. I'm lucky.
user142019
I often have pizza or a sausage roll for breakfast.
@R.MartinhoFernandes ohhh interesting.
16:13
I don't even have beer in my fridge right now.
Xeo
Xeo
Nope, for once it's not.
@EtiennedeMartel Pic it didn't happen
@EtiennedeMartel Wow, you cannot buy it fast enough, I see.
Xeo
Xeo
Did I mention how fucked up the Jobcenters are?
16:13
yes
you have
user142019
@Xeo right now you did
Xeo
Xeo
Turns out it was just the Jobcenters for Nordrhein-Westfalen, where I'm going to move.
I thought you were going to Oberhausen.
Xeo
Xeo
That's a town in Nordrhein-Westfalen (NRW)
lol
TGIF Tomorrow
Xeo
Xeo
Anyways, instead of filing my request for the initial furniture there, and possible getting nothing because I am "getting payed so well" in the next 6 month, I have the option to file it here in Berlin and don't have that bullshit problem.
I didn't have to buy any furniture
<---- a lucky lion
Xeo
Xeo
Yeah, the flat's empty where I'm moving.
Xeo
Xeo
16:17
Which is quite a good opportunity to file that request, and buy cheaper stuff than they expected, or get stuff moved from here to over there, and keep some money.
@R.MartinhoFernandes I don't drink nearly as much as I did back when I was a student.
Full time jobs make you sober, I think.
Well, relatively sober.
They just take away the time you have to drink and to buy more.
lol
Full time job makes you depressed.
@Xeo You are quite the cheater.
Cunning is the right word
Xeo
Xeo
16:19
They were trying to fuck me over!
It's just payback. With them paying me.
Not sure how I feel about this this program in my town
Excuses, excuses
@TonyTheLion Only if you have a crap job.
true
@Collin are you a senior citizen?
16:21
@TonyTheLion No
But it works out to minimum wage
oh right
"Hey old people! Can't pay your taxes? Come work at the town for minimum wage to lower them!"
Doesn't sound that outrageous.
Massachussseeettttsssss.
@R.MartinhoFernandes It's horribly socialist.
Well, not really.
I just wanted to drop the word "socialist".
@R.MartinhoFernandes I guess you don't pay federal income tax on that money?
16:24
prolly not, since the govt gave it to you in the first place
I suppose if you're not paying that and payroll taxes it's quite a bit over what minimum wage would be
Xeo
Xeo
Hm. Seems like I'm going to watch The Hobbit tonight.
Ell
Ell
Socialism, ewww
I'm not sure if working for a tax credit is the same as income
@Collin Your town's web site takes way too long to load with that background
16:25
@Collin I must have read it wrong, because I got the idea they did not get money, only a reduction in taxes. You can tax reductions in taxes?
@Xeo Supposedly, I'm watching it tomo night
@R.MartinhoFernandes Probably not, but I don't understand the intricacies of how the local/state/federal tax laws would apply
Xeo
Xeo
Friend of mine asked me yesterday, and it's only 6€ today, so a good deal I think.
I guess it would just be a tax credit, which wouldn't normally be taxed, not wages
@Collin Sounds like you get to apply that $1000 rebate to your gross income (the AGI)
16:26
@Collin Yeah, sounds like paying taxes with work.
@Xeo They have cinemas where you live? :P
@Praetorian that would be a deduction, I think this is a credit
Xeo
Xeo
@R.MartinhoFernandes ...
@Collin That's even better
Like having another kid
@Xeo The ape is a terrible influence on me.
Next they'll be having your old people collect cans and bottles to recycle in exchange for nickles and dimes
Xeo
Xeo
And you're a bad influence on the ape's alcohol stock.
@Praetorian Yeah, I guess it's a good deal, the minimum wage thing put me off at first, but I hadn't considered they weren't really wages, just credits to taxes.
@Xeo He orders alcohol without asking if I want.
@Praetorian lol at the URL cnn.com/2012/12/13...
Xeo
Xeo
10 mins ago, by R. Martinho Fernandes
Sure.
user142019
@Praetorian yeah let’s wait a hundred years.
16:30
@Xeo This one is true.
What exactly may have motivated Bartel, who is being held in a local jail on a $500,000 bond, remains unclear.
Ooh, I know, "The Crazy"
@Xeo I did not ask, but I could not refuse after it was ordered...
@R.MartinhoFernandes I would guess that yes, the federal government considers that effectively wages that the earner than pays directly back toward their local taxes.
@JerryCoffin Taxception!
That sounds like tax exception.
@JerryCoffin Are local taxes deductable? I never remember
16:36
@R.MartinhoFernandes I need to show this to my boss
@Collin I don't think so.
@Collin Ah, cool!
I think this is the first year I will actually itemize my deductions, so that's good to know
16:40
Oh gawd please can we not discuss US tax forms here?
Let's talk religion or something instead.
@R.MartinhoFernandes I was waiting for this comment
Xeo
Xeo
@TonyTheLion "vibrator"? Ain't that a message thingy?
no
^ true
@Xeo so you've never seen a vibrator?
16:42
@TonyTheLion He gives so little fucks that he still feels he has to tweet about it.
@EtiennedeMartel 0.0 bar 1
You know, saying "I don't care about X" always struck me as being slightly contradictory.
you're stating you don't care
Because if you really did not care, you wouldn't be wasting time saying you don't care about it.
16:43
Nov 26 at 11:52, by R. Martinho Fernandes
Ok, I will explain to you how to actually give zero fucks: Step 1. don't even give a fuck about explaining how many fucks you give. Step 2. there is no profit.
else how else are you going to let people know you don't care?
By not talking about it?
Xeo
Xeo
And if someone asks you?
I don't think it's contradictory.. you can care negatively
16:44
@R.MartinhoFernandes Have I told you you're a cool person?
If you cared 0, you wouldn't say anything.. but if you cared negatively, you have to say you don't care
@TonyTheLion I know the urge to vaguebook is strong for the teenager in you.
Ell
Ell
@TonyTheLion lololol
@EtiennedeMartel the teenager in me??? Woah.
ITT Lion finds out he's still a teenager
@Xeo In that case "whatever" in an extremely bored tone usually works well.
16:45
whatever.
Arrggh, dammit, cannot navigate from text to its container. Dammit, dammit, dammit, I need to rewrite all this shit.
@R.MartinhoFernandes I thought you had a function for that
16:46
@R.MartinhoFernandes Drink instead.
@DeadMG No idea what that means.
@R.MartinhoFernandes Don't you have text<T, Cont>::container() or something?
@DeadMG lol, this is not ogonek.
I am at work.
Xeo
Xeo
Drop in ogonek, profit?
@Xeo That has nothing to do with text formatting and text composition.
I need to know where in the page is some character.
Characters do not store that information.
@R.MartinhoFernandes That sounds about as hard as finding where in the world is Carmen Sandiego.
I had to choose between two ways to do this when I started. I picked the one that made iterating over the characters easy, but forgot it made tracking their location impossible.
So now I am back to the start.
always
@ScottW lolwut
Btw, Stollen is great.
16:55
class A : public B
{
}

When I try and create an A, it says "cannot instantiate abstract class".
@alan2here Ignoring the fact that you got a missing semicolon at the end of that class
@EtiennedeMartel Cold as ice.
@alan2here Is B abstract?
cpx
cpx
Ideone appears to be down from here. I was about to paste some code.
@alan2here because B (or its base(s)) have one or more pure virtual functions?
16:56
@cpx What will you do now with your loaded clipboard? You've got nowhere to go!?
cpx
cpx
Shall I use codepad.org?
Whatever, not doing this today. Time to go home. Later, folks.
user1182183
hmmmm anyone? :$
cpx
cpx
@StackedCrooked Does it have C99 Strict flag enabled?
16:58
@EtiennedeMartel I didn't think It was, but it would make sence for it to be so.
@Praetorian yes, it does.
Told ya.
Psychic senses.
Ugh. Git. First commit at work, and I've already managed to create a fuckup
user1182183
bythewhy Why would anyone ever define a function like this:
void function(int param1, int param2, [b]int[/b]);?
How do I prevent A being abstract as well?
@alan2here By implementing the required pure virtual functions.

« first day (789 days earlier)      last day (4385 days later) »