« first day (3251 days earlier)      last day (1696 days later) » 

7:08 PM
Thank you @Failsafe. I took a break from C# and had to work F#, Haskell and friends
 
Just dropped by to say I hope all your projects are going well ^^
here's my best wishes and some chocolate
___ ___ ___ ___ ___.---------------.
.'\__\'\__\'\__\'\__\'\__,` . ____ ___ \
|\/ __\/ __\/ __\/ __\/ _:\ |:. \ \___ \
\\'\__\'\__\'\__\'\__\'\_`.__| `. \ \___ \
\\/ __\/ __\/ __\/ __\/ __: \
\\'\__\'\__\'\__\ \__\'\_;-----------------`
hh \\/ \/ \/ \/ \/ : |
\|______________________;________________|
well that didn't work
 
user10864482
@AlRey what was it?
 
it was supposed to be a chocolate bar :(
 
Chocolate has too much sugar
We need an alternative to sugar
 
we have those
pick your favorite sugar subsitute
 
7:15 PM
But it would alter the taste
I just stay away from the sweet stuff unless it is wine or Haskell code
 
user10864482
@RonaldMunodawafa xylitol is actually very great, even compared to stevia, sucralose and other less known chemical garbage
 
user10864482
it also has the same weight as sugar so its 1:1 and same sweetness index so its a good replacement
 
What are the side effects?
I haven't used xylitol before
My mother's side of the family is predisposed to diabetes and I don't like taking risks
 
user10864482
@RonaldMunodawafa same as other polyalcool; some people can have gas and in rare case, diarrhea
 
@RonaldMunodawafa it doesn't have much sugar if you buy the natural stuff ;)
 
7:20 PM
I'm now scared
 
user10864482
kind of like sorbitol but easier to digest
 
get 50% cocoa
 
One question
While we are on this business
What kind of sensors would you use to test for these things
 
for diabetes?
I'm already t1d, so ask away
 
Not for diabetes
 
user10864482
7:21 PM
@RonaldMunodawafa sugar level? there is a nice market for sugar monitoring implant
 
user10864482
oh
 
user10864482
what things then?
 
It would be nice to have a consumer device that just gives you the substance profile of anything
 
user10864482
@RonaldMunodawafa depending on your country there are different law about label
 
You put a sample in and it gives you back the composition on a screen
 
7:22 PM
I mean, we're getting there....phones can already look at an item's boxart and tell you most of the things you wanna know about it
 
I want this automated
I don't trust labels
And humans
 
user10864482
for example in Canada we have a lot of information written directly on the label
 
I remember the Amazon Firephone had something like that built right in
 
Humans invent labels and corrupt labels
That's good
 
user10864482
what would you want to detect specifically ?
 
7:23 PM
The entire composition
So if there are 'trace' amounts of substance X it is detected and you get the quantity as well
 
user10864482
that's a good question but even if you knew it would be like 40% of the story because your system don't have 100% efficiency to absorb nutriment
 
Another question: Would a pill that gives you the nutrients need per day fill you up
 
user10864482
just like burning gas to create micro explosion is not the best way to consume petrol
 
user10864482
@RonaldMunodawafa not that its my domain but I believe the satiety is something we learn and as such we can unlearn it
 
Now back to computer science
While we are on the topic
What kind of algorithms would you be looking at for the detection of protein sequences etc and what kind of hardware
 
user10864482
7:29 PM
@RonaldMunodawafa that's an excellent question. My buddy is studying in med school and he actually did a mini thesis on that subject.
 
May I share my email address with you?
I'm interested in his mini thesis
 
user10864482
@RonaldMunodawafa no, sorry
 
If it is allowed to be read
Is the mini-thesis considered personal information?
Is there a link I can click on?
Or a page or something
 
user10864482
sharing contact information is.
 
To check out his work
Fair
 
7:37 PM
should i change my so name so it gives away less personal information
 
doesn't matter at this point
chat is index'd on google
this name is tied to your account
 
Yep
rlemon any idea where I can find papers on what human pony spoke about
I don't think human pony is keen on sharing her friend's work
 
I don't know if humanpony is a her
 
idk I just tabbed over here
what's this about labels?
 
just look up string matching algorithms
 
7:42 PM
Well, in the process of trying to get Roslyn to work, Visual Studio popped up a progress bar that remained motionless for three hours, and then my computer bluescreened, and now Visual Studio refuses to run, saying "Please reinstall or repair Visual Studio". Must be Tuesday.
I still don't have a Visual Studio installer. Does anyone know if there's a standalone "repair" tool that might be on my hard drive somewhere?
 
@Kevin Do you have an MSDN subscription?
 
If it's something I have to pay for, I don't
 
By the way, why does VS Community Edition seem skimmed down
 
I've never paid for one, typically the company I am working for does.
 
7:44 PM
@RonaldMunodawafa Compared to what exactly?
 
Thank you @erotavlas
@TylerStahlhuth Older editions
 
No idea. I've always used professional.
 
The University has VS Enterprise running on their machines
 
That's overkill
 
It's not
It's free
 
7:46 PM
that's why your tuition is high
 
Yeah, I figured.
 
nothing is free
 
@Kevin In any case, have you tried this to acquire an installer? my.visualstudio.com/Downloads?q=visual%20studio%202015
 
Yeah, I tried this morning. Same result as I got just now: "Sorry, we couldn't find any downloads for you."
 
@erotavlas I think Microsoft actually provides it for free. The idea is that the university uses it for teaching and the college grads are used to the software. Basically it's marketing.
 
7:47 PM
that's smart
 
What do you have under 'subscriptions'?
 
@erotavlas In South Africa, the basic education department gets into arrangements regarding software licences essentially breeding a future nation of people locked into a product
And I think that's the case with our University's CS department
They run *nix on their servers
 
In any case @Kevin, as I understand it you are being made to use the 2015 version by management. Seems unreasonable that they not provide you with keys.
 
It's still overkill. I doubt even the teachers touch the features in enterprise.
 
Hey guys -- do you know why a sqlconnection instance would error out over an "object reference" issue?
 
7:50 PM
They develop some of the software for the municipality
 
SqlConnection asc = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionStringCost"].ConnectionString); // this is causing errors for some bizarre reason
 
It's not overkill
For the lecturers at least
But it is definitely overkill for our classes
 
@AlRey Do you have a connection string in your config named 'ConnectionStringCost'?
 
yeah I do -- that's the weird part
I mean I guess I'll double-check, but this has worked on other apps
 
Try this real quick.
SqlConnection asc = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionStringCost"]?.ConnectionString);
 
7:51 PM
Even for team management and source version control, they found that Microsoft's solutions were horrible
 
@JonathonChase Well, I got management to give me the installation disc and key. Now to find a CD drive...
 
I'm told to upgrade to c# 6 when I do that xD
 
@RonaldMunodawafa Microsoft's? They bought git.
 
and I can't upgrade
 
7:53 PM
@AlRey Oh.
 
@TylerStahlhuth I mean developed by Microsoft
 
I'll look deeper in the config, though
 
Git was only acquired this year or last year I can't remember
 
@AlRey break it into three statements.
var cfg = ConfigurationManager.ConnectionStrings["ConnectionStringCost"];
var str = cfg.ConnectionString;
var asc = new SqlConnection(str);
 
ah yep found the problem
 
7:54 PM
I suspect cfg is null
 
thanks Jon; your first suggestion was the right one :)
 
new VS update, lets see if it breaks stuff
 
Why is cfg preferred to configurationManager (not sure what the g stands for)
 
damn web.config
 
@RonaldMunodawafa I'm not following good naming convention here.
 
7:55 PM
@RonaldMunodawafa cfg is short for config
 
I was just being quick to get something testable before reverting
 
@JonathonChase Is cfg really that bad of a naming convention?
For things inside a function it seems fine.
 
@TylerStahlhuth Yes
 
I won't save key strokes if it hurts readability.
 
7:57 PM
You only really have to type 'config' once
Unless you use an underfeatured editor
 
I would probably use, in order, configSection, connectionString, sqlConnection
 
@JonathonChase way too many people ignore this
readability comes first.
if you think you're typing too much, you're wrong.
 
Plus also just learn to type faster.
 
@rlemon Why do people make it seem as if keystrokes save time
 
You only have to type each name once anyways
intellisense does the rest for you
 
8:00 PM
My lecturer uses Notepad++
 
@JonathonChase I mean, I've started switching that way. I just didn't think it was that big of a deal.
 
And she gets on fine with good naming
 
even if it didn't, I'd rather spend an extra fraction of a second typing out a descriptive name than spending 5 minutes 6 months from now trying to figure out what ptSvOpt means
 
keybr.com is a solid way to improve or build your touch typing skills.
 
@TylerStahlhuth Your code is for humans before it is for CPU's. If it was just for CPU's there would be one less reason for programming language translators in the first pla d
 
8:01 PM
@rlemon exactly. Right now me might understand what I'm thinking, but he's setting future me up for failure and that's not very nice of him.
 
always write for future you
and assume he can and will hit you
 
I love C as a language but I hate the way a lot of C code I've read labels stuff
 
what about future you replacement?
 
Even the standard library
 
I also sometimes apologise to @KendallFrey in my comments, but only when I write regexp
FTR, he will never see my code
it's just for me
 
8:02 PM
lol
good to see i'm leaving a legacy
 
@rlemon Well, I would be. And cfg is a standard abbreviation. So that doesn't bother me. Making new abbreviations is a whole other problem though.
 
three letters you save
you'll spend more time arguing about them then you do typing.
 
@TylerStahlhuth Standard by which standards body?
You realise cfg could be an acronym for a whole lot of things
Depending on the domain you are working with
Just because something is commonplace it doesn't mean it's good
 
@RonaldMunodawafa Sure, but not when you're dealing with configuration files. Especially ones with a .cfg extension.
I mean, I don't care either way. I just don't think saying to never use abbreviations is intelligent either.
 
never use abbreviations is intelligent
hides in bunker
 
user10864482
8:09 PM
if someone is not in my domain I would expect that individual to learn it before asking question on my things
 
user10864482
like abbreviation don't exist for the outer world
 
But systems are openn
 
user10864482
anyway thats how i feel about that
 
I've for the most part stopped even using i over index
it takes almost no effort to complete the word
 
user10864482
@RonaldMunodawafa not every system is open, nope.
 
8:10 PM
I prefer index as well
 
but ultimetly it just comes down to who reviews your code.
they're the ones you have to convince :P
 
@humanpony All non-theoretical systems are open
 
goodnight everybody bing.com/videos/…
 
user10864482
@RonaldMunodawafa I have to disagree
 
user10864482
I work on a system you will never ever see
 
user10864482
8:11 PM
and its not theorical. it been in action for a long time
 
Do you have an existence proof?
 
user10864482
@RonaldMunodawafa my paycheck
 
@humanpony What is your take on trolling? Do you consider it a closed system?
 
@RonaldMunodawafa Completely disagree for math. Using x,y,z and i,j,k for math equations makes the equations closer to a form people will recognize.
 
Those are not abbreviations
Those are domain standard symbols
 
user10864482
8:13 PM
@RonaldMunodawafa I thought you should know since it appear you are a user of such system
 
What would you replace x,y and z with?
Or i, j and k?
You can use 'verticalAxis' and 'horizontalAxis' but eventually you'll run out of words trying to copy a whole domain
 
@RonaldMunodawafa Okay, but i, j, and k are standard math symbols for matrix manipulation. Which is what an array is.
 
if I'm using it withing a descriptive object, x/y properties are fine
if they're variables alone.. xAxis,yAxis
 
Especially a 2d or 3d array.
 
or, you know, whatever makes sense in the application
point = { x: 1, y: 1 };
is descriptive on its own tho
based on the variable name
 
8:17 PM
I think the readability of abbreviations for variable identifiers matters far less in a language like C# than it does in a language like Python
 
@humanpony I might
 
@rlemon I often use "it"
 
what agency you work for?
 
but that is mostly because it is the default name
stuff.forEach { println(it) }
is equal to
 
@TylerStahlhuth The abbreviations I'm concerned about are ones that not documented
 
8:18 PM
stuff.forEach { it -> println(it) }
 
@Wietlol I changed all my passwords to 'incorrect', so the system reminds me "your password is incorrect"
 
user10864482
@rlemon css-csc. It stand for correctional service canada
 
@rlemon stupid systems, they check if your usename is correct?
 
@humanpony ohh nice. write a bug and people go free?
@humanpony hehe, yea. I'm Canadian.
I can infer our own acronyms
 
@Wietlol That's pretty idiomatic for item variables when iterating a collection in the JVM langs, yeah?
 
user10864482
8:20 PM
@rlemon good one hehe
 
How would this function declaration in and of itself not document the abbreviation?

public void DoThing(Config cfg, String name)
 
@JonathonChase not JVM langs really
 
It gets harder to read in a function to differentiate between the class Config and the variable config.
 
I see kotlin do it tho
 
@humanpony when you said you worked for Canadian gov. I was trying real hard not to make Ford jokes
 
8:21 PM
cfg fixes that.
 
perhaps scala and groovy, but i dont recall
 
(I'm from Ontario. it's all we think of right now :()
 
It doesn't
Just recall that class identifiers are capitalised by the C# standard convention
 
Gotcha, it was from Kotlin that I saw it's use.
 
Wietlang does too :)
 
8:22 PM
3 more years.. :(
 
4
 
@RonaldMunodawafa I'm talking about a function that might need to take a configuration and apply it to another configuration or something and an abbreviation for the variable in the function could improve readability so you aren't seeing the word "config" repeated 100 times in a single function.
 
Brief example please
 
the variable name should signify its usage
not its type
 
8:25 PM
so both cfg and config is often wrong
 
You are right
I imagine something like db_cfg would fly by in some langs
I'd much prefer databaseConfiguration
 
@RonaldMunodawafa SQL
 
dbsfgadwcfg
Foo(Config sql)
 
You wouldn't use that abbreviation in code?
 
hmm...
 
8:28 PM
or do you want to type structuredQueryLanguageConnectionString a bunch in a method?
Some people don't have infinite computer screens.
 
ah, the thing you're suggesting is good, but what if you were actually arguing for something bad?
you'd look silly then!
 
SQL is a universally appreciated abbrevation
Just like HTML is
 
user10864482
at some point the question need to be asked; @RonaldMunodawafa for whom do you think abbreviation are?
 
The author of the code
In the case of your usage
 
@RonaldMunodawafa And how do you think it got that way exactly?
 
8:30 PM
ubiquity is a long road to travel
 
But I believe that abbrevations should be agreeable among all parties likely too read your code and that pretty much opens the door to quite a variety of backgrounds
 
user10864482
@RonaldMunodawafa that sound like politic
 
i don't think cfg is bad because it's not clear that it's short for configuration
 
Identifier naming is a political issue in some places lol
 
i think cfg is bad because there's so many things you can configure in so many different ways
 
8:31 PM
I want to check if my HashSet<MyObject> Contains an item, where MyObject class has only two string properties Value and Type....so I was going to create an Equality comparer
But then I saw the interface requires to implemtn GetHashCode()
 
@RonaldMunodawafa 2 hard things in programming ..
 
don't you just need to call hashset.contains()
 
CSS and naming
In that order
 
I did, I called contains on an object with identical values and it returned false
 
user10864482
historically space (among other resource) have been problem , hence why short naming convention. But as it is true for oral language I think we make use of abbreviation because it help to describe complex system
 
8:32 PM
yeah, because it's testing for pointer equality
have fun overloading .equals and .gethashcode
(get hashcode isn't hard, I promise you)
 
@Grace I mean, sure. What about userCfg, appCfg, or sqlCfg? I'd probably type out config in most usages, but I wouldn't judge anyone who didn't.
 
in your case, you can do something like
value.GetHashCode() ^ type.GetHashCode();
 
@erotavlas do you have resharper?
@Grace missed the null check
 
I don't need some huge prime number?
 
not really, no
 
8:34 PM
no I don't have resharper
 
the hash table implementer might use prime numbers or whatever
but i think you're mixing up this kind of hash with cryptographic style hashes
 
no I remember to create a hashtable you need to use a prime number somewhere
 
        public override int GetHashCode()
        {
            unchecked
            {
                return ((X != null ? X.GetHashCode() : 0) * 397) ^ (Y != null ? Y.GetHashCode() : 0);
            }
        }
397 is a big enough prime.
If you're computing the hash-code of multiple properties you want to multiply it by a prime each step so that an object with X = "A" and Y = "B" doesn't get the same hashcode as one with X = "B" and Y = "A"
 
thanks
wow that really killed the previous conversations, sorry guys :)
 
user10864482
8:55 PM
good night everyone; its time for me to see the sun
 
me too, later
 
 
3 hours later…
11:29 PM
posted on September 05, 2019 by Scott Hanselman

It's early days (preview) but there's now a Terminal integrated into Visual Studio! Taking a nod from the 2017 plugin, the Terminal is now build in as an experimental feature using features from the NEW open source Windows Terminal. Rather than build everything from scratch, the Visual Studio terminal shares most of its core with the Windows Terminal! assuming you have Visual Studio 2019 16.

 

« first day (3251 days earlier)      last day (1696 days later) »