« first day (2844 days earlier)      last day (2109 days later) » 

2:17 PM
I changed a very old method so it doesnt need its ref parameter anymore. Can I somehow mark that parameter obsolete without removing it?
 
Don't change the method. Make an overload, and mark the old one obsolete.
 
If you make the old one obsolete, you should get warnings in places where it needs to be fixed.
 
Done. Now says [Obsolete("ref param is always the same as the return value anyway")].
 
Good
A nice and clean refactor.
Next is finding a way to make it give a warning when an obsolete method isn't in use anymore :P But it's harder since it can span projects.
 
2:26 PM
Yup. Old method calls the new one. Old stuff works, new stuff gets nicer method.
 
I love doing things like that
 
We have an especially hard time with not-in-use methods, since we have lots of reflection.
 
Ugh ... reflection.
It's such a powerful tool, but it blurs every line in existence. :P
I wouldn't be without it though ...
 
Our reflection can actually execute passed strings as gupta code, which may then call other c# methods.
 
Ugh ... reflection.
When someone made a perfectly designed library, and people think it is better to use the internals because its faster
 
2:29 PM
in SQL, 35 secs ago, by Héctor Álvarez
I just got confirmation that my company is going to start to monitor what we do real time and measure the amount of time we're working.
 
...
I guess it's time to make a macro that keeps moving the mouse around and types randomly.
 
Uhhh
 
And rename windows to various proper applications
 
What if they just straight up watch the screen remotly?
 
Then it's time to look for another job.
 
2:31 PM
print an image at the size of your screen, put it over your screen with duct tape
 
@WilliamMariager I am on it okay?
 
I would love to work side by side with you BTW
 
but... I don't speak dutch
 
2:32 PM
Dutch? :P
 
but william isnt dutch
 
Neither have I programmed any vJASS stuff
 
@WilliamMariager he probably meant me
 
I'm in Ireland currently.
 
Yeah the Hague is in the netherlands
What do they speak around there
 
2:32 PM
around the hague?
they speak hagues
"Haags"
Het Haags is het stadsdialect dat door de autochtone "volksklasse" van Den Haag wordt gesproken. Het behoort tot de Zuid-Hollandse dialecten. Als typisch randstedelijk dialect heeft het een grammatica en syntaxis die nauwelijks afwijken van het Standaardnederlands. Het verschilt echter aanzienlijk meer van deze taalvorm dan het Rotterdams of het Leids door een paar specifieke klanken. De drie Nederlandse zuivere diftongen ei, ui en au keren erin terug als [ε:]? ("è"), [œ:]? ("ùi") en [ɑ:]? ("âh"): steeds met alleen de eerste klinker uit de Standaardnederlandse tegenhanger. Net als in heel Holland...
prolly want to g-translate that
 
I thought it was all dutch and Haagen Daazs
(However you spell that)
 
If only it came in english
 
it is all dutch... and fries
 
Well, I can't chat any more around here I guess
I'll install it on my phone
 
I couldn't imagine working with Wietlol ...
 
2:33 PM
@LeeButler I find that articles in different language have different content
 
What a horribly experience.
 
see if I can help it, but...
 
@WilliamMariager ow you
:p
 
@Wietlol It's almsot like they're in a different language
 
2:34 PM
@LeeButler but the content is extremely different
 
I have mouse mover installed. Used it twice
 
just the subject is similar
@WilliamMariager at the very least, we would program in coitus
 
Uuuuuugggghhhhhhh
 
wait... that doesnt sound right
 
klutzal?
 
2:37 PM
kotan
 
kutang?
 
kotlang
 
this is bs
 
wietlang
 
i definitely cant conceal tjis
 
2:38 PM
No, this is C#.
 
plus I type like I was even more stupid than I currently am
 
if (this is Bullshit)
    Environment.Exit(0);
@HéctorÁlvarez
 
Why would you even conceal tjis? Be proud of your tjis!
 
Cries in spanish
 
2:39 PM
I bet that's noisy.
( it's a joke, not racism :( )
crickets
 
@WilliamMariager if you would make a compiler to compile vJASS to llvm, we can write vJASS at work :D
 
...
Why the heck is this an ad on YouTube ... ?
It's literally just a joke :P It isn't selling anything.
Someone paid to make a joke ...
 
what the fuck
Also @Hector Stack chat on mobile as abysmal
 
@WilliamMariager or youtube sponsored the joke?
if people find it funny, they will watch more of the videos from that channel
 
Such a quality channel for sure ...
 
2:54 PM
iDunno
i havent seen the vid
nor do my care-meters find that I should
 
You probably should watch it
 
is there an android app gor the chat?
 
I genuinely think it's something for you
 
until im out of this shithole
 
I'm going to miss you @Héctor ...
It was nice knowing you.
 
2:56 PM
oh i'll be back not too long from now
 
@WilliamMariager i like
 
@WilliamMariager why so?
 
I think it caters to your needs.
 
ok
ok, that was shit
 
Right? Right up your alley.
 
3:02 PM
but I cant rant on such a thing
 
I think chat mobile site isnt too bad for a mobile site. There's much worse out there.
 
because there is nothing remotely close to that that I would make
 
Also I'd say: 4chan may have paid for that. They're the kind of people.
 
It's pretty awful and there's no better equivalent
Aside from having a laptop or having it on your desktop
 
I love seeing kickstarters being stupidly over funded. :D
Kinda NSFW
It's like 5000%+ funded.
 
3:12 PM
well... it is BOI
looking at the url
 
Oh my god another card game
Why do people keep doing this
 
2M$?
omg
 
... I like card games?
 
Also it's a kickstarter, duh
 
I like card games
Dominion
Machiavelli
frigging pokemon
 
3:16 PM
Machiavelli is good
 
Is that a threat?
 
i like dominion more though
it is also open for practically infinite extensions without making it more complex
 
If you like it, I guess it's horrible.
Too bad.
 
what logic is that? microsoft logic?
 
3:22 PM
klytus logic
 
Jetbrains logic is much more structured logic than Microsoft logic
Microsoft logic is like soap
or maybe not...
 
There's the Wietlol we all know and loathe. <3
 
<3
 
 
sigh
fun calculateHeatIndex(): Temperature = 35.celsius
 
3:44 PM
is 35.celsius valid syntax?
what language?
 
kotlin :D
 
35<celsius> valid F#
 
Of course it's Kotlin.
 
Where does the class end?
That syntax is awful
 
it doesnt have a body
because it doesnt have anything in it
but you can deconstruct into a normal class
 
So you made an empty interface, a class which implements all 0 of it's things, and then do something which makes no sense at all
 
@LeeButler well... the method I mentioned before returned a Temperature... so I want that interface
 
That makes more sense. The end bit it still stupid though
 
3:51 PM
@LeeButler what end bit?
 
val Int.celsius: Temperature
	get()
	{
		return Celsius(this)
	}
 
ow
its basically this... lemme write it in C-harp
public static class Extensions
{
    public static Celsius Celsius
    {
        get(this Int32 self)
        {
            return new Celsius(self);
        }
    }
}
except that C# doesnt support extension properties
val celsius: Temperature is a property (if used in a class)
val Int.celsius: Temperature is an extension property for type Int
 
Why would anyone ever want this
 
instead of giving it a value, I provide a getter which gets invoked each time that returns a value of class Celsius while passing the int value as degrees to it
@LeeButler iDunno
but this is pretty darn cool
for example, you can do the units of measure in this
 
Which is great assuming the original int is known to be a particular unit
 
3:56 PM
why so?
the int is not a particular unit
that is why you use .celsius or <cm>
 
For your example above, say the int value is 18, converted to celcius is what?>
 
that provides it a unit of measurement and a value
converted to celsius is 18 degrees celsius
you can convert that to fahrenheit with the proper conversion
or kelvin
 
No it's not because that 18 was measured in farenight
however the hell you spell it
 
no, that 18 was not measured
it is a number
 
Which you converted to degrees C without knowing what unit it was originally
 
3:58 PM
it is the same in F#
18<cm> "but what if that 18 was meters?"
 
tf is <cm>?
 
F#?
ow, ntohl came up with that
in any case, a number (an int) has no information of measurements
it is a value
 
Okay then, convert 18 to meters
 
together with a unit of measurement, you can do conversions
 
Yeah exactly, you need to know the source unit
You cant just yolo a number into whatever unit you want
 
4:00 PM
that is why this .celsius does not exist on the Temperature type
you can convert between Celsius and Kelvin for example using a converter that knows the formula
 
Yeah it exists on int which is even more stupid
 
iirc something about +272.15
 
So I could could measure my 7 mile drive to work in kelvin
It's ~273.15
 
@LeeButler no
because 7.mile.toKelvin() doesnt exist
 
wat
 
4:03 PM
based on if your library that provided you the length stuff has done all operators and such, you can do (7.mile * 5.hours).toMetesPerSecond() == somethingsomethingsomething
 
Wtf you can't just multiply differntly scoped unit
 
ow shit
@LeeButler if your library can do that, yes you can
 
i googled kelvin to celsius
I saw 272.15
:D
but that was not 0 kelvin
in any case, im off
 
I wish I could go home, I've got to hang around another 40 minutes or so
 
4:30 PM
I'm <100 lines from the end of documenting this awful 4.2k line file
Consistency is hard
 
4:52 PM
Heh I can still log in here at home!
Right, do you have any pro tips for a CV face wash?
I just removed all the noob bullshit.
I guess my SO profile could a double-edged blade
 
I don't know I haven't really looked at mine for about 3 years
 
Like... telling everyone I often spend hours around here, some people might think I waste my time in a forum chat
 
Have you got any public git projects?
 
Erm... unfortunately nope
 
Just say you're a "regular Contributor to StackOverflow"
They don't need to know it's specifically in here
 
4:55 PM
If I read that I'd be like "What's your profile?"
Or are you just bluffing
 
I mean you don't entirely waste your time here
You're very helpful, and the chat has been very helpful to me, and (I believe) I'm useful to the chat too
 
For the most part it's either learning or helping someone else, but helping in chat doesn't really count.
Because... well no badges
 
There is 1 chat related badge I have at least
Wait no 2, Outspoken and Talkative
Silver and bronze respectively
 
Hmmm
Well, it's something
 
That's like 30% of my badges
 
5:21 PM
ñpñ
lol
ñpñ is lol but one key to the right, because I missed.
What I could add to the CV is my website.
I don't have one yet
But I have the LXC deployed
 
6:05 PM
@LeeButler correction, it would be 7.miles / 5.hours (which in turn would result in a Speed type)
@LeeButler am I also helpful?
 
 
1 hour later…
7:31 PM
Putting down "SO Chat" as a reference on your resume
Hiring manager comes in here and starts asking around.
 
7:46 PM
ok
 
Is there not a way in the codebehind of an ASP.NET webform to set the value of multiple properties of a single object in one go? I'm struggling to find the right terminology when searching for it on Google. Something like:
TxtBox.Properties {
     .Value = "";
     .Enabled = true;
}
 
not really
you could potentially wrap it in a lambda expression, but then you still have the named qualifier
 
Dang
VBA can do it so I figured something like ASP.NET could, too.
Thanks
 
(@WilliamMariager guess what? Coitus can do this :D)
@TylerH I might be wrong though, I didnt design C#
but I simply have never heard of it (in C#)
 
I've never heard of anything like that
 
7:57 PM
or saw any feature that could act as such
 
Unless you can do something like TxtBox.Properties = new {Value = "", Enabled = true}
But that creates a new object
 
yeah, this is just updating an existing one on the textchanged event
I guess now it makes sense that I couldn't find anything online for it
 
TextBox.Properties.Do(p => {
	p.Value = "";
	p.Enabled = true;
})
this is the closest you would get to
 
Yeah, you could use an extension method
 
@Wietlol Thanks; I will store that away for a rainy day, but as of now my knowledge of .NET is too basic for that to be put into production code. Is that just a constructor? Or an extension method like Grace said?
 
8:03 PM
it is a general purpose method
build as an extension method and simply takes a lambda to be executed
public static class Extender
{
	public static void Do<T>(this T self, Action<T> action)
	{
		action(self);
	}
}
this would roughly be the declaration
you can have another one where it also returns a value
and you can have two more where they are not extension methods
and then you need 4 more for async support
 
Oh, that's the lambda. I haven't seen it in code before (at least not code on the same level that I write). I only knew that a lambda function's value is another function (or something along those lines). I have some things left to learn :-)
 
a lambda is basically an inlined function
you can take these two pieces of code and they would be the same
TextBox.Properties.Do(p => {
	p.Value = "";
	p.Enabled = true;
})
this using the lambda
TextBox.Properties.Do(Stuff)

public static void Stuff(Property p)
{
	p.Value = "";
	p.Enabled = true;
}
this without the lambda
 
Ah yes I have seen the latter method before
 
the lambda expression is basically an inlined function
what you mean are higher order functions
variables that store/hold a "function"
 
Yeah
Thanks again!
 
8:09 PM
gradually introducing yourself to features like these is very fun to do
imo
 
@Grace This could be either very good or very bad
 
Yeah, seems like a real gamble.
 
You guys wouldn't troll me would you?
 
8:26 PM
us? nonononon
 
 
2 hours later…
10:47 PM
Real waiting for the ADAL token to see if my code works hours, who up
 
 
1 hour later…
11:55 PM
Me, not for long
And only because I got pinged via email by @Wietlol and its only just came through
 

« first day (2844 days earlier)      last day (2109 days later) »