« first day (1444 days earlier)      last day (3507 days later) » 

8:00 PM
rightfold is wrongfold in disguise
 
I can't care
 
@Ell I thought it was for sweaty hands. Dunno why.
 
user3010322
@CatPlusPlus Always never trust other programmers.
 
I have to finalise CI config and let CI scream at people
 
user1804599
fuck chromosomes
 
user1804599
8:01 PM
I need hormones
 
fuckosomes
 
user1804599
Rapptz you're a biologist help.
 
@rightfold If you have such a small dick you certainly can try.
 
user1804599
How do I grow boobs.
 
there are hormone replacement treatments
but you need to visit an actual doctor for it
 
8:01 PM
If you're seriously thinking about gender change, keep in mind it's not the kind of thing you should joke about.
 
also that.
 
@EtiennedeMartel Why
 
user1804599
I can joke about whatever I want.
 
personally I'd swap genders in a second if I could swap back if I decided I didn't like it
but I doubt that I can
 
I would try too, if I had the chance to go back.
 
Ell
8:02 PM
yeah I'd give it a bash
 
user3010322
Holy fuck do I need ranges bad.
 
user1804599
@Puppy You're so fat you'd look like your mother if you were female.
 
my mother is not as fat as me
 
Ell
but it being irreversible kinda puts me off :P
 
try {
    linguist.allocate();
    pruner.allocate();
    scorer.allocate();
} catch (IOException e) {
    throw new RuntimeException("Allocation of search manager resources failed", e);
}
fuck.
 
user1804599
8:03 PM
Also I don't do gender change.
 
user1804599
My gender is already female.
 
user1804599
An expert-sexchange could be possible.
 
exceptioner.throwRuntimeException
 
user1804599
@Puppy lol, side-effects.
 
I concur that this is dumb-tastic.
but java.
 
8:05 PM
I never understood why every exception has to have a string message.
 
user3010322
Holy fuckballs
 
user3010322
I need to create a random-access iterator for this nonsense?
 
user3010322
Ffffffffffffffffffffffffffffffffffffffffffff
 
Not all exceptions are meant to be printed to the screen somewhere.
@ThePhD I like that.
 
Ell
@Sofffia they don't have to have
 
8:06 PM
Maybe for logging.
@Ell Of course they don't, but some languages that defines some data type for exceptions, use a "message" argument. Sometime they even force you to subclass that data type and therefore define a string message yourself.
 
Ell
Yeah
 
IIRC std::exception itself has that.
 
@Sofffia Yes
 
With the what() member function.
 
It's useful
Message is the reason
 
user3010322
8:09 PM
@Rapptz Question: have you ever modeled, like, a constraint in C++?
 
user3010322
Like, say I have x + y + z = 0
 
user3010322
I want to insert values for like, x and y, and get z, which I can do already, but then I want to like
 
@CatPlusPlus Well, you see? At that point you have the fact that the exception has to know the representation of itself to a string.
Which is a non-issue most of the times.
 
user3010322
Iterate over the integers between 1 and 5 for x, y, and z that produce valid values...
 
The way you render an exception should be separated from the exception itself.
 
8:11 PM
@Sofffia What
 
The exception type knows how to print itself on the screen. Which is not the main purpose of exceptions.
 
No
It knows the reason
Which is very much part of the exception
 
What if you want, later on, discriminate exceptions based on the reason?
 
Sure you can have error codes and then maybe a dictionary of additional context but unless you're doing structured logging or some analysis on the arguments, it doesn't really buy you much
@Sofffia Then you probably want different categories of error (i.e. types)
 
user1804599
catch {
    case e: Exception if e.message == "aaa" => …
}
 
8:13 PM
This kind of thing is rather rare (and if your exceptions have something like that then just attach it in addition to string reason)
 
user1804599
:D
 
The message is for the developer
 
user1804599
Lua runtime throws strings how fun!
 
Even if you have additional context stuff, the message should be string anyway
 
I feel like exceptions should define the very basic set of informations regarding that failure and let operator<< or whatever function is responsible for logging, take care of translating it to string or whatever.
 
8:14 PM
If you want error codes then add them to the string message
Reason is the very basic set of information
In fact many exceptions don't need anything more
 
user1804599
Use exceptions for non-error control flow!
 
exceptional flow control
 
Something like FileDoesntExist "dir/file.something", rather than SomeException "Unable to read file dir/file.something: file doesn't exist".
 
user1804599
throw is the new goto.
 
hop would be a cool keyword
 
user1804599
8:16 PM
@Sofffia yes
 
IOError with errno attached
 
user1804599
COMEFROM
 
(If you want to limit the scope of the exception to a single file then you can without extending the exception type itself)
 
user3010322
I wish there was a retry keyword.
 
@CatPlusPlus I don't like error codes. You can define different types that have different sets of parameters that you can set.
 
8:17 PM
@ThePhD well you could call the function again with different args...
 
@ThePhD Isn't that more of a math problem than a C++ one? A compiler can't really solve equations (efficiently) but we can.
 
Error code as a value or as a type doesn't really make much of a difference
 
user1804599
I'm going to implement comefrom in C++.
 
(Except that you need a lot more types in a more complicated hierarchy)
 
user1804599
@ThePhD Use Ruby or Eiffel.
 
8:18 PM
That's true.
 
@QuestionC Solving equations is a solved problem
 
Matrixes, right?
 
user3010322
try {
     try_access( access_token );
}
catch ( const permission_exception& e ) {
    // change call's permissions
    elevate_privileges( access_token );
    retry; // goes back to top, makes call again
}
 
user3010322
^ WTB.
 
user1804599
Recur, while loop or goto.
 
8:20 PM
goto I guess
 
while loop
 
user1804599
also what the fuck
 
user1804599
just elevate privileges beforehand
 
user3010322
It's an example.
 
user1804599
also make privileges a parameter to the function in question
 
user1804599
8:20 PM
fuck globals
 
fuck
back to "Can't find the class" in JDB.
 
No thanks
 
Access token is the parameter you butte
 
and I thought GDB was bad.
 
@Puppy Might as well be back in school with timetable problems.
 
user1804599
8:21 PM
The obvious solution is comefrom.
 
@CatPlusPlus elevate_privileges( access_token ); try_access( access_token );
@rightfold What is it
 
YES WE GET IT YOU HAVE HEARD OF INTERCAL
 
in some ways, I'd rather be back in school with timetable problems
 
@CatPlusPlus NO NEED TO SHOUT!!
 
School was always terrible for me.
 
8:22 PM
I miss high school
 
@Puppy Honeymoon period was quickly over:)
 
lol
 
user1804599
In computer programming, COMEFROM (or COME FROM) is an obscure control flow structure used in some programming languages, originally as a joke. COMEFROM is roughly the opposite of GOTO in that it can take the execution state from any arbitrary point in code to a COMEFROM statement. The point in code where the state transfer happens is usually given as a parameter to COMEFROM. Whether the transfer happens before or after the instruction at the specified transfer point depends on the language used. Depending on the language used, multiple COMEFROMs referencing the same departure point may be invalid...
 
no no no no
 
@rightfold lol
 
8:23 PM
whence would be a nicer version of the keyword
if (comefrom here) goto there;
 
Now I'm trying to implement COMEFROM:)
I guess it would require self-modifying code:(
..and a couple of threads.
No - stuff COMEFROM, I'll settle for beer.
 
@MartinJames In what language?
 
in LOLCODE
 
lolcode was kinda funny but all the derivatives -> totally not.
 
@Puppy mebbe C. It's only a thought-experiment:)
 
Ell
8:31 PM
I might resume my android game and hope for it to become a massive hit
 
Dammit should've ordered some food earlier
 
¬_¬ well that's not the welcome home I wanted. Half an hour to work that damn magic cable was no longer plugged into router...
 
8:58 PM
@R.MartinhoFernandes I know guy who works in government, I'm not exactly making policy...
 

« first day (1444 days earlier)      last day (3507 days later) »