« first day (802 days earlier)      last day (4145 days later) » 

user142019
11:06 PM
C# sucks. Why can't I do private inheritance.
 
Maybe you can aggregate instead of inheritance.
 
`unpleasant behavior` - there's a new standardese term to remember :> — sehe 9 secs ago
 
oh clang i used uppercase at start of sentence
 
user142019
private MongoCollection<T> collection { protected get; private set; }
 
@Cheersandhth.-Alf The room :)
 
user142019
11:08 PM
Does the private make any sense in the beginning? Since I explicitly state the visibility of the getter and setter.
 
@Zoidberg'-- Nope. Although I wouldn't have expected protected get to compile. Hrmm. You're wicked. Monkey teseting C# syntax?
 
user142019
@sehe It does nothing?
 
@Zoidberg'-- I encourage you to test, and run ildasm on it... (or monodis)
 
user142019
@sehe well it compiles and works like expected.
 
@Zoidberg'-- mkay
 
user142019
11:11 PM
Basically what I want is a base class that holds an object that only subclasses can get, and only the class itself can set.
 
Ell
Yoi could always write Them yourself :P
 
user142019
@sehe oh you're right. Stupid IntelliSense didn't catch it.
 
user142019
> Cannot specify accessibility modifiers for both accessors of the property or indexer.
 
user142019
I don't see why, though.
 
@Zoidberg'-- It's to prevent messes like the ones you concocted :)
 
11:15 PM
you don't need to use a property
 
user142019
Language should let me do what I want. It'll be a mess anyway.
 
They force a minimum 'coding style' by making the 'get' accessibility specified on the member level
@Zoidberg'-- Hey. Not convincing. You started with a lie just earlier. Clearly, you've lost credibility
 
user142019
@sehe I thought that when IntelliSense says something is correct then it compiles too.
 
user142019
Seems not to be the case.
 
@Zoidberg'-- protected T propname { get; private set; }
@Zoidberg'-- Yeah. Hence "lied" :)
 
user142019
11:18 PM
@sehe ohh
 
@ScottW OUCH. FWP
 
user142019
@sehe Dankjewel.
 
user142019
@ScottW Ik was dat gewend van SublimeClang en Xcode. :^(
 
user142019
lol
 
Xeo
@DeadMG: Boy, you've been active on #llvm.
 
11:20 PM
well
I need help with Clang's C++ API, and some guy turned up there that actually knew something about it
 
user142019
Hurray my code compiles!
 
user142019
public abstract class DataProvider<T> lol never thought I'd write a class with such a crappy name.
 
@Zoidberg'-- ouch. that's baaaaad. And you should feel bad. What are you trying to achiehieve?
 
user142019
@sehe common base-class for classes that query the database.
 
@Zoidberg'-- ?! reflection? Expression trees? Attributes? IL.Emit?
 
user142019
11:25 PM
Hmm. Never heard of any of those except reflection and attributes.
 
Xeo
LINQ?
 
user142019
I am using LINQ.
 
Xeo
That's half-way to the expression tree part, IIRC.
 
user142019
public Ticket find(ObjectId id) {
    return (from t in AsQueryable()
                where t.Id == id
                select t).First();
}
 
@NikiC I found it kinda neat on my mechanical typewriter
@ScottW If you want blazing speed, convenience and full runtime support, ...
@ScottW Well, it's just one of the options. Inheritance is not really going to pull it off in single-inheritance languages
 
11:29 PM
@sehe mechanical typewriter? are you being serious?
 
user142019
I once thought of inserting literals in machine code at run time and run that machine code as an optimization because the values wouldn't have to be loaded from memory anymore; they are just instruction operands. I don't know if it's an optimization, and I've never tried it, though.
 
@Zoidberg'-- You mean you are writing a linq provider, then? Nothing said. I'd stay away from OOP fetish though
@NikiC Of course. You never had one?
 
@Zoidberg'-- you can simplify that I think return collection.AsQueryable().First(t=> t.Id == id); I have never used Queryable so might be wrong
 
@Zoidberg'-- Profile it. And: selfmodifying code. It is frequently forbidden. See fftw, for a good example though (I think IIRC)
@JohanLarsson You're right
 
user142019
@sehe not self-modifying code.
 
11:31 PM
@ScottW Wut. Racism!
 
user142019
You basically create a "template", copy it to a buffer that is allocated as executable, and fill in the blanks.
 
user142019
Then you cast the buffer to a function and call it.
 
@Zoidberg'-- Semantics. "inserting literals [...] run time [...] run that machine code" -> self modifying code
 
user142019
No, it doesn't modify anything.
 
user142019
It generates code. :P
 
11:32 PM
@Zoidberg'-- Except for the blanks. The blanks were code all along
 
@sehe What would I need one for?
 
@Zoidberg'-- Semantics. Drivel. HaveItYourWay. Meh
@NikiC To type?! You know, back when we didn't have PC's at home?
 
@sehe fftw is pretty damn cool
 
@NikiC It is
 
@sehe Back in those ancient times I didn't have the need to write anything ^^
 
user142019
11:33 PM
Dammit C#.
 
user142019
public abstract class DocumentProvider<T> {
    public T find(ObjectId id) {
        return AsQueryable().First(t => t.Id == id);
    }
}
 
user142019
It tells me that T doesn't have a field Id. :<
 
@Zoidberg'-- Well, you probably don't have it? Check T...
 
user142019
T is a template parameter (don't know the C# terminology :P) to DocumentProvider.
 
user142019
T is Ticket and Ticket has Id. :/
 
11:36 PM
T is called generic argument I think
 
@Zoidberg'-- Check it. Implement an interface: public abstract class DocumentProvicer<T> where T:IHasId {.... }
 
user142019
@sehe hmm didn't think of that. :^)
 
It is called a generic constraint
 
user142019
Similar to concepts?
 
@Zoidberg'-- kinda
 
Xeo
11:37 PM
Icky that you need inheritence, though.
 
There's T: new() for default copnstructible, T:struct for valuetypes, T:class for reference class
 
We have seen no proof of the need for inheritance
 
@Xeo It's not inheritence. Interface implementation is interface implementation
 
Xeo
Eh, still. A new class interface to show around that you have a member called "Id"? :/
 
@Griwes Erm. Psst. No reason for panic, but I suppose your twitter might be compromised? Lately it started spamming about making money filling surveys, and I got a really shady tweet twitter PM, that was subsequently deleted. Want me to quote it? It looks like it got spammed by a facebook app of some sort
 
user142019
11:38 PM
lol now I get another error. xD
 
@Xeo Yeah. Shucks:
9 mins ago, by sehe
@Zoidberg'-- You mean you are writing a linq provider, then? Nothing said. I'd stay away from OOP fetish though
@Zoidberg'-- Grate progress
 
user142019
Oh wait members of interfaces cannot have visibilities.
 
user142019
Awesome it wroks!
 
@sehe I know, I'm deleting those tweets manually, must look into facebook apps thingies.
 
@Griwes You really should, then. I'd make it a priority. Also: were the survey announcements legit?
 
11:40 PM
Why would you accept permission?
 
@Zoidberg'-- They can. As long as it's public
 
Pretty sure they ask for it.
 
user142019
@sehe nope, tried public, didn't work.
 
@Rapptz Cough. FB
 
Even facebook asks for your permission
I know, surprising.
 
11:41 PM
@Zoidberg'-- Oh. Again, I'm surprised. I'm assuming you did try to compile this time :)
 
user142019
Yep. :^)
 
@Rapptz Slightly less obvious and open than you'd want, maybe
 
user142019
public interface IDocument {
    public ObjectId Id { get; set; }
}
 
user142019
> The modifier 'public' is not valid for this item
 
Nice.
 
11:44 PM
argh
VS y u crash when I'm attempting to debug things
 
@DeadMG Karma. Payback for the times you dissed other debuggers
 
VS debugger is superior though
:)
 
@DeadMG I noticed you despaired the other day and you still didn't repent and apologize. This regimen will continue until you cleanse your soul and use WinDbg for a month
 
lol
 
@Rapptz Trolling quite hard today. FB asks for permission diligently and VS debugger is superior. Hmmm.
(VS debugger is very nice, of course)
^ I have to say that in order to ward off karma on my debugging sessions
 
11:49 PM
IT WORKS
IT WOOOORKS
 
oooh it woooooorks
 
I now have The Powah to emit declarations unnecessarily
 
@Zoidberg'-- THIS IS NOT HOW YOU INDENT C#
 
@TommiT I agree with some parts of what you say. However, in the same spirit as the auto vs. explicit type declaration debate, I'd argue for a balance: uniform initializers rock pretty big time in template meta-programming situations where the type is usually pretty obvious anyway. It will avoid repeating your darn complicated -> decltype(....) for incantation e.g. for simple oneline function templates (made me weep). — sehe 37 secs ago
 
@Zoidberg'-- Also you can't have accessibility modifiers on interface members. They are implicitly public.
 
user142019
11:51 PM
@NolwennLeGuen ?
 
I thought he was using Java?
 
@NolwennLeGuen It is in allman/BSD/ansi style :)
 
@Zoidberg'-- Opening brace on newline. Do it or die.
 
user142019
@NolwennLeGuen eeeeeeeewwwww. Never.
 
Oh never mind, get; set; lol
 
11:52 PM
@Rapptz ZoidBerg is promiscuous. He does it with any language that he can find
 
@Zoidberg'-- You will die in a fire while watching your mom's sex tapes.
 
@Rapptz cougher
 
user142019
@NolwennLeGuen I don't give a fuck.
 
hmm
 
@NolwennLeGuen lol'd
 
user142019
11:52 PM
I find { on new line extremely ugly.
 
now all I need is to figure out how to link to libstdc++
 
@Zoidberg'-- You monster. I'm never helping you ever again.
 
user142019
Good.
 
@sehe Do you need some Dextromethorphan?
 
@Zoidberg'-- I find you extremely ugly. Also C# conventions say it's on a newline.
 
user142019
11:53 PM
I don't care what the conventions say.
 
@Rapptz No thanks. i'm good
@NolwennLeGuen "conventions say". Great. Since when did you start caring?
 
@Zoidberg'-- Oh well. Carry on being bad then.
 
@NolwennLeGuen How's life anyway?
 
user142019
If you're going to nitpick on whether { belongs on newline or not, you're wasting your time, whether it is conventional or not. Pro tip: people don't give a fuck.
 
@NolwennLeGuen That's the spirit
 
user142019
11:54 PM
As long as you're consistent within a single project it's fine.
 
yeah can't say I don't give a fuck about where { is
I like my Egyptian style brackets so they're staying.
 
Well you're fucking inconsistent with the BILLIONS of other C# lines that were ever written.
@sehe Fairly good, I guess. Yours?
 
user142019
Who cares? Those lines are in other projects.
 
user142019
I am consistent within my own project.
 
@Zoidberg'-- They do on a daily basis. However, no braces are usually involved (* disclaimer: I know some people with limited ability or (temporary) medical conditions might take offense, but let me remind you I was taking about the general case)
@NolwennLeGuen I live. That's a start
 
user142019
11:55 PM
@sehe Y U SO PUNNY
 
@sehe Also an end technically. Any snow?
 
@NolwennLeGuen See. Not even a dent in the stats
 
@sehe Another lost soul in an ocean of mediocrity. So yeah, not even a dent in the stats.
 
Dec 22 at 14:21, by sehe
Witzelsucht (from the German witzeln, meaning to joke or wisecrack, and sucht, meaning addiction or yearning) is a set of rare neurological symptoms characterized by a tendency to make puns, tell inappropriate jokes or pointless stories in socially inappropriate situations. Ironically, however, the person is insensitive to humor produced by themselves or others around them. A less common symptom is hypersexuality, the tendency to make sexual comments at inappropriate times or situations. Patients do not understand that their behavior is unnatural, therefore are nonresponsive to others' rea...
Dec 22 at 14:23, by sehe
Dec 12 at 22:57, by sehe
BREAKING: TIL I might have dysania, but very likely not hippopotomonstrosesquippedaliophobia
@NolwennLeGuen Hey, it raised the odds of escaping mediocrity, then. Hmm. causation/correlation again
@NolwennLeGuen Nope. :( Snow: no show
 
dysania isn't a real medical condition.
 
user142019
11:58 PM
How can I tell VS to show me the type of an expression? It shows the types of variables when I hover over them, but not the types of larger expressions.
 
@Rapptz Of course, hippopotomonstrosesquippedaliophobia is
@Zoidberg'-- C-w C-w C-w, C-A-v with R#
 
user142019
lol
 

« first day (802 days earlier)      last day (4145 days later) »