« first day (3162 days earlier)      last day (1789 days later) » 

7:00 AM
ok i appreciate the help off to bed and I will read up on this more
 
Rob
Alright, cya later
 
@bradbury9 "Something like 'I cannot throw CPU at it to solve it, we must wait'" FTFY
 
In case of TypeScript users lurking here, perhaps you know the answer to my question?
in JavaScript, 8 mins ago, by Roel van Uden
I have a TypeScript function that needs to receive property names of T. When accessing the named properties, the type of T[key] must be string. How do I add the constraint of T[key] == string to a function declaration? I currently have resolveAsync<T, K extends keyof T>(value: T, ...keys: K[])
 
Something like T extends string[] maybe?
I have no actual idea though
 
That's not it :-P
 
7:14 AM
papio.chat thoughts anybody?
 
Oh no no no I'm going back into the rabbit hole of "if I say my T has to extend 'Class1', why not directly use Class1?"
@Squirrelintraining Wtf is that and sicne I'm not a fan, why should I care about a sports tracker?
 
can you even extend string in javascript?
 
....javascript? extend?
you assume js has types
 
Or rather typescript
 
in js, everything is both dynamic and a dictionary
 
7:19 AM
I'm familiar with javascript
I am just not familiar with Typescript
Just questioning the relevance to testing if a template type extends string if you can't even extend string
 
@Squirrelkiller its for internal kickern
boi
 
Oh nice, guess I gotta look at it
@Neil I don't think you can extend string
Why tho?
 
7 mins ago, by Neil
Just questioning the relevance to testing if a template type extends string if you can't even extend string
 
Rob
It's basically a check to enforce that the type is a string
 
Rob
7:32 AM
Which matters, because a string can be a type
 
wtf
@Rob then why use a template type T?
just use string?
 
The object passed in is T, accessing a property of T should be string. The property names must be keys of T.
So, value[key] should be string (where value is T, key is a keyof T, and it should yield a string)
 
is there a way for it not to be string?
I thought all keys in javascript got converted to strings
 
Rob
@Neil Depends on the situation... for the same reason you use generic types in the first place
 
asking honestly because I have no idea :)
 
Rob
7:36 AM
As for strings being a type, it means you can do things like:
private something(a: 'yes', bool: boolean);
private something(a: 'no', num: number);
private something(a: 'yes' | 'no', arg: boolean | number) {

}
Forget the weird definitions, that's an 'overload' in typescript
But it means you'll get a compile error if you write something('yes', 1), but not if you write something('no', 1)
 
but 'yes' and 'no' are always strings
I don't know, typescript is on the bucket list for me, but I'm not there yet
 
Rob
Yes, they're always strings, but they're a strictly typed value of a string
Indeed, you wouldn't be able to pass a string into that function
Without first checking the value
I mean you could... by ignoring it and casting it to a string, but that's on you :P
 
In C# terms:
string resolve<T>(value: T, key: string) {
  // Problem #1: keys does not enforce that a valid property name
  // Problem #2: The value of said property is not guaranteed to be string
  var propInfo = value.GetType().GetProperty(propertyName);
  var result = propInfo.GetValue(value, key);
  return result as string;
}
That's what the declaration is solving all in one go. Basically.
 
7:54 AM
o7
 
Cap'n O7
 
@Neil Yes you can extend string in js
 
oh?
 
I might be late to party, but I was referencing your question earlier, can you extend string in js
 
good morning
 
8:07 AM
String.prototype.<your extension name> = function(){
//implementation
}
 
'extend' was talked about in the sense of inheriting form string
 
Like you mean if it is of type string it has that function?
 
Like I want to make a type that inherits from string
 
oh
I think that is easy as well
 
Yeah it's easy because the answer is: No, not possible, since JS doesnt have types.
 
8:20 AM
It has
but it's a prototype language and you can mutate everything back and forth
 
It does?
 
typescript does add "type support"
numger / string / object / function
to make new type
 
It has types. They just aren't explicit. They are implicit.
 
you would need to make a function of it's name, implement "constructor" and inherit prototype object
 
meow
morn
 
8:25 AM
I think this has enough info to understand how would you implement your own type in js
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain
 
@Raimonds I was tasking about javascript though, not typescript.
 
typescript is javascript
just a sugar syntax
 
typescript is a superset of javascript, transpiling to javascript
 
That is what I said :D
 
saying that is similar to saying "C is assembly"
 
8:26 AM
Why not we go to binary then?
 
Ok it's an extreme example, but yeah
 
Everything is electricity flowing through mb
quarks ....
 
that's not a language we use to develop software though
We use C#
 
My point is you can have your own "types" in js
 
i write my code in hex and then compile it into binary
and then run that via assembly
 
8:27 AM
ffs people
 
problem? :D
 
"types" and not types because your type would be just a function wrapper
similar to how arrays works
they are actually objects ;D
 
hello everyone
 
8:34 AM
hail
 
Privet
 
8:53 AM
whaaaat
 
can anybody tell me any solution for this error
 
what error
 
Cannot find CacheManager instance name
 
missing using statment or reference ?
 
stack trace is this
at Microsoft.Practices.EnterpriseLibrary.Caching.CachingConfigurationView.GetCacheManagerData(String cacheManagerName)
at Microsoft.Practices.EnterpriseLibrary.Caching.CacheManagerCustomFactory.CreateObject(IBuilderContext context, String name, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache)
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)
 
8:54 AM
statement*
No idea what it is but I would say it cannot find manager with given name
 
anybody else play satisfactory?
 
after adding reference to project then I added it into web.config
 
that game is so addicting
it's what I imagine factorio to be like if the graphics were decent and the world were 3d
 
minecraft with tech mod :D
 
well no, I wouldn't say it's similar to minecraft
 
8:57 AM
ah found it
 
what was it?
 
then, I've never used a tech mod
 
reference issue
 
googled satisfactory, looking nice.
 
yeah, it's still early release, but it's got a lot of content
 
Rob
9:04 AM
Just waiting for the trains patch
Hope it won't be as frustrating as the trucks
 
I try to avoid games that can not be finished, like sandboxes and stuff
 
yeah the tractors were a little hard to figure out at first
Well there does seem to be a storyline going on
 
Rob
Yep, but even once it was setup they occasionally got stuck
Had to basically wall in their path so they wouldn't fall down a hill and keep driving into a wall
 
yeah, the tractor got stuck once so far with me
I'm still in tiers 3 and 4 though, so probably don't quite use them as you do yet
I imagine the trains will only work on flat surfaces, so you'll have to place foundation panels everywhere
i'm going to have to amp up iron.. I've got 2 level 2 miners getting fully smelted and it isn't enough
 
Quick Question VS the feature Code Maps as per this https://visualstudio.microsoft.com/vs/compare/

Works on all versions of VS, but I am only able to find it in VS Enterprise and not in VS Professional while trying to install it
here also nowhere is it mentioned that it works only in Enterprise edition
 
9:10 AM
Sometimes I just do silly mistakes and it's frustrating :((((
 
However my colleagues who are running enterprise are able to find this option
And enterprise is 4 times expensive compared to professional and I don't think they are willing to shell out that much on a junior developer
Never mind just tricky English they wrote, nothing more
 
9:24 AM
1 more silly question in web application we can inspect element . in console application can we do that?
 
I mean you can run in debug mode and add variable watches, but I am not exactly sure if that is what you are asking
 
9:44 AM
What do you mean by inspect?
F12?
Because for web or console app we in IDE we can inspect same thing, compiled dll
 
9:57 AM
like inspect element in chrome
 
I don't anything even close to that, because these are absolutely two different things.
Although few days back there was a discussion about tool that lets you see values of things in real time. Which is bit odd to me since if we think about it most of things are quite short lived.
 
I mean you could debug and query the variables you want to view
 
10:17 AM
It is still hard to compare to "inspect element" tool :D
 
Yah but wanting that is just
no
 
I am trying to imagine how would it work in console :D
app
Chrome inspector pops up and your inspect your console writeline gosh....
 
10:39 AM
0
Q: Update Table Column from Old and New Table Reference

AppleCiderYummyGood day, Basically, I have a system that is referencing to old tables. But the problem is, I have a new table (identical to old but the primary key is different) and I want to reference my system to the new table. The current system already stored the foreign key from the old table. But I want ...

 
I mean, this is the c# room not the sql room...
 
mr5
> DROP DATABASE
 

SQL

Got a SQL question? Any SQL flavor here, just ask. Indicate yo...
 
He already asked in there
4 minutes after posting the original question
Actually no
He posted the question and then posted it here and in the sql room immediately
some people have 0 patience
 
:(
this is unacceptable behavior
eliminate!
/meow
 
10:46 AM
It's not unacceptable
 
!!meow
 
why not ?
lolol
 
Just wait a few minutes before sending it
 
good one @CapricaSix
 
10:46 AM
Sending the question isn't the problem
the problem is not waiting a little bit of time
All ye need is a lil patience
 
let's truncate him from existence
Any pain or bullshit you are facing on daily basis ?
 
ask Héctor :D
now it's not bad. A little bit of greed from boss, but not big deal
 
11:02 AM
@mr5 this
 
@AppleCiderYummy Hello, welcome to the C# chatroom, nice to meet you.
 
Time is money, so he is a real businessman
Learn from him
 
he is *a real businessman (unless businessman is an adjective now)
 
mr5
but you didn't meet him though
 
11:19 AM
I usually call bad ideas as "very ambitious" things
 
lol no
Unless you are paying people to answer your question, time is not money in this case
 
Also a chatroom is not suited for formal business
 
not with so many squirrels around
they are distracting
 
they are cool
I even have ranks for them
 
servant1 servant2 servant3
 
11:28 AM
!!votekick Hans
 
@Squirrelkiller voted to kick @Hans
 
!!votekick @CapricaSix
 
@Raimonds voted to kick @@CapricaSix
 
haha look at that angry lil rodent
;)
 
:D
 
11:30 AM
It was just a joke
calm down
 
!!unvotekick Hans
 
@Squirrelkiller That didn't make much sense. Maybe you meant: votekick
 
\o/
im free
 
why votekick
when i can just kick
 
11:34 AM
are you a RO ?
 
Is my name in italics
:)
 
runs
 
If i kick you tho, you stay muted for a minute
so
i will not
unless you want me to
 
sudo runs
 
no im not into S&M
!!hammertime
 
11:36 AM
STOP
HAMMERTIME!
 
STHAP
...
r u ceral cap
 
is there a relevant, easy to demo, c# pattern that someone could recommend for me? I have a demo coming up in a couple weeks and randomly chose Decorator pattern, but think I want to switch.
But not a simple Factory Pattern
 
stop
 
HAMMERTIME!
 
yeah it still works
 
11:37 AM
this is some shit
 
it's not a bug it's a feature
 
@JoJo can ye eleborate on what you mean by pattern?
(Sorry for the pings)
 
Creational, Structural, Behavioural. I am thinking Creational are good places to start for newbies to patterns. But maybe not so...
So I chose Decorator randomly.. only to find out people don't really use it.
So what's the point!? of this excercise lol
 
do a prototype. If you choose factory/abstract factory/factory method be prepared for the question "when to use which"
 
11:40 AM
You like Prototype?
 
C# have a built in help for Decorator. Named Attributes
[TestClass] for example
 
Cool.
 
I would choose Prototype for demo. It's easy, and javascript guys know what you are talking about
 
Ok let me take a look. I don't think anyone claimed it yet also.
 
5
A: What does it mean to decorate a class or parameter?

ntohlWhen You add decorator in C# it is like adding a property to the class/method. There will be an attribute attached to it. If You write Unit test You will meet a simple decorator TestMethod like that: [TestMethod] public void TestMethod1() { } The framework will use the decorators to check wha...

 
11:43 AM
Awesome, that is great to know, when writing Unit Tests, that is what is happening. Thank you.
Taking a look.
 
there is an argument about attributes are implementation of the Decorator pattern or not. But I think I saved my point
 
I see.
 
SOmebody said javascript guys
 
rings alarm
 
To me it sounds weird that decorators are simplified way of doing decorator pattern
If so why do we still have pattern
 
11:56 AM
need help how to pass data from content page to master page
like i have form.cs as content page then site.master page
 
yes but what i did i took label in master page and put some id
<asp:Label ID="abcd" runat="server" Text="Highlight"></asp:Label>
in master page
then in content page
((SiteMaster)Master).abcd.Text = "some value";
in master.cs page
public Label abcd
{
get { return abcd; }

}
but i'm facing error in get { return abcd; }
System.StackOverflowException error
any solution for this
 
You guys think OO-Programming was once a pattern?
 
Isn't it still a pattern
 
12:14 PM
no. IMHO Imperative programming, declarative programming, functional programming, OO programming are on the same level of classification, and they are orthagonal.
at least functional and OO are orthagonal. I haven't really thought about others
patterns are more specified. ^ those are rather mindsets
 
I mean isn't it because some sort of pattern people follow to implement classes and the way they work we have OO programming
 
It sounds like if someone would make a programming language, where Abstract Factory pattern would be very easy to make, than the people using it would be Abstract factory programming.
you can implement class like functionality in C, and OO program around it
because it's a mindset
 
12:42 PM
Good afternoon
if there's anyone around
I just got email from company that didn't attend the meeting they scheduled and told me they have no idea why I wasn't contacted.
Smells like lousy company
 
yeah very lousy
 
I don't think that company would mean an improvement, even if they offer .NET
 
Either that, or you have a good opportunity to improve things
 
I also have a good opportunity to improve things at my current workplace you know
There's such a margin, if you acknowledge the base is VB6 there's infinite leeway
Well, I'm kind of losing hope of finding anything soon.
Everything looks so shitty, really.
 
"no idea why you werent contacted"
AKA
"I was supposed to contact you but forgot, so instead of owning up to it i'm going to make up a bullshit excuse"
 
12:50 PM
they had someone else and he turned down the offer probably
 
or that
 
And I'm the backup
 
one thing that really pisses me off
is you'll go for an interview
 
It's not like I'll be the single person applying
 
"we will let you know either way within a week"
2 weeks later still no response
 
12:51 PM
Hah, I've had those
 
and you email to ask for critisim
no response
 
@HéctorÁlvarez I agree, it's important to have love in your life
 
anyway if they are lazy, it's better than your current situation, because noone will look if you are C# chatting or what
 
Well from VB6 it's kinda hard to port to something modern. If the other people have (more) modern tech but people with sub-par management skills, you can be a hero.
 
like, if i'm going to give you the time of day to come to a fucking interview, the least you can do is tell me that I didn't make the cut
 
12:51 PM
@Neil !!rimshot
 
@HéctorÁlvarez ( ゚ヮ゚)
 
even just a simple "Sorry, you are not what we are looking for"
 
oh I agree. They demand respect, and they give none when it no longer matters to them
it's a double standard
 
I saw a post about what employees expect (with high demand on any feedback) and employers don't like (give negative feedback)
it's about thinking negative feedback is bad karma or something
 
12:54 PM
what markets do you all work in?
 
fish
 
I am in New England
 
joking, I work in the banking industry
 
:D
 
I'm gonna try to talk to my current company, and see at least what my options are without a relocation.
 
12:55 PM
I am not going to watch a 10 minute video. Please tell us what you think that code does. Did you read the duplicate? — mjwills 32 mins ago
 
thankfully I'm not working as a shop assistant
 
solution for this
 
@HéctorÁlvarez better learn Angular or Vue bro
 
That's JS
We don't speak JS here
 
I am clawing and sticking around this company another 6mos-1 year till I get fully immersed. Yeah I am full-stack.
Well that might be the problem lol.
 
12:56 PM
Aren't we all, Jotaro?
 
!!tell hector >!!1+1
 
@CaptainSquirrel Command >!!1+1 does not exist. (note that /tell works on commands, it's not an echo.)
 
!!tell Kieran js
 
@HéctorÁlvarez Command 1+1 does not exist. (note that /tell works on commands, it's not an echo.)
 
12:57 PM
!!tell hector >!!Math.floor(1+1)
 
@CaptainSquirrel Command >!!math.floor(1+1) does not exist. (note that /tell works on commands, it's not an echo.)
 
@Kieran '1'+'1'-'1' equals 10
 
!!tell kieran js
 
@kieran '1'+'1'-'1' equals 10
 
12:57 PM
.net is gonna be relegated to API's / .net core / devops
Learn front-end frameworks bro
 
That's as stupid as that guy who said P2P would remove client-server architecture because it was indefinitely sustainable as long as people had computers.
 
we agree to disagree. Been doing this 20 years.. I see the writing on the wall.
 
They said the Internet was decentralized too
 
I am of course speaking of the broader market. Not niche markets.
 
.NET has concerns that JS doesn't.
 

« first day (3162 days earlier)      last day (1789 days later) »