« first day (4316 days earlier)      last day (615 days later) » 

3:41 AM
wow so many feeds today
 
3:52 AM
NET MAUI this is about Xamarin, right? anyone use it?
 
 
4 hours later…
7:55 AM
@nyconing it was Captain Obvious' secret plan to add many feeds to push people to use the discord because the relay bot ignores Feeds
 
8:06 AM
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
[Captain Obvious] Fairly certain I removed more than I added
[Captain Obvious] But also yes we don't get the spam
 
8:29 AM
[KidKai25] Morning :))
[KidKai25] I am breathing/shad
[KidKai25] You funny af
 
G'day lads!
 
 
1 hour later…
9:47 AM
[Captain Obvious] WHOS READY FOR A NEW ENCODING STANDARD
[Captain Obvious] Base45 is now here! courtesy of RFC 9285
 
10:24 AM
New QR exploits in 3...2... ;)
 
why base45 tho?
 
11:26 AM
45 > 64 > 32 > 16
 
 
1 hour later…
12:28 PM
45 because 45=42+3, where 42 is the answer to everything and 3 is my wife's favorite number lol
 
1:07 PM
42 means nothing if you haven't read the hitchhiker's guide...
:P
 
Anyone know the command set profiling in MySQL corresponding to postgresql
 
Posting it here because I found no VB chat room. How does it make sense when Microsoft says that VB's evolution is complete yet significant parts of it e.g. Roslyn are open source?
 
what does "evolution" mean?
and why does open source relate to it?
 
For my opinion, is someone said that's thing is important but I don't know that maybe it's not important to me
"if"
 
@Wietlol It's in an article by Microsoft: devblogs.microsoft.com/vbteam/…
@Wietlol It relates because can't the community continue with evolution themselves without Microsoft?
 
1:29 PM
[Captain Obvious] I think it's because they're trying to encourage people off using vb
[Captain Obvious] so they've said (for at least the third time) that vb isn't getting any more love and vb developers should write in c# for new shit instead
 
1:44 PM
@user726941 I have not but I do plan to read it, I've heard the book's great
 
1:57 PM
I get this is a C# group and I may catch flak for this but why are they so interested in promoting C# yet VB was Microsoft's bread and butter for a while. It was implemented in other Microsoft products like VBScript, VBA, most Microsoft-based web dev backend tech before the Razor and Blazor era was VB for ASP etc
 
@user14773854 the language not evolving primarily means that the language wont change, but that does not mean the tools around it are not allowed to change
 
[Captain Obvious] Because vb is not very good
 
especially for tools like Roslyn, which are used by more languages
 
[Captain Obvious] And I'm speaking as someone who started their career doing soley vb development
[Captain Obvious] Since pivoting to C# I haven't looked back
 
@user14773854 it costs a lot to maintain complex products... and I can definitely confirm that a generic purpose programming language is a complex product
especially because everyone wants super high performance on every possible platform with support for every tool
 
2:00 PM
@Wietlol What I interpreted from the article was that no features will be added. What do you mean by "the tools around it"?
 
it is easier for MS to say "we no longer spend any money on this tool while we have an alternative"
even if that means that you have to re-write your entire codebase
 
@Botler This is an opinion
 
@user14773854 the compiler, IDE, base libraries (SDKs), etc have a different cycle of development, and each of them primarily evolves on its own
 
When you have windows10 you will not go back to win95
 
@Wietlol So perhaps those maintaining tools like Roslyn can add new features?
 
2:02 PM
@user14773854 I second that opinion though... in addition to that C# is also not very good... as well as pretty much all other languages
so my opinion might be a bit one dimensional :D
@user14773854 roslyn itself does not define the language, roslyn works with the specification of the existing language
the language project is a totally different project
 
[Captain Obvious] What is an opinion? That vb is bad?
[Captain Obvious] Because sure, but it's an opinion that is shared by a huge portion of the community
 
for example, C#'s language project is this: github.com/dotnet/csharplang
yet it is Roslyn (primarily) that compiles your code
 
@Botler I also like C# coming from a Java background. But VB allowed me to understand OOP better and concepts like Generics
 
[Captain Obvious] wat? VBs type system is terrible
 
usually, to learn something, you have to see what you are trying to avoid
 
2:05 PM
[Captain Obvious] Coming from Java you should have had a way easier time on C#
 
I learned OOP from JASS (scripting language of Warcraft III)
it has absolutely 0 objects
but I still learned what was needed to write better software
 
@Botler initially I found C# too similar to Java such that porting smaller projects to and from C# took very little time
 
maybe I am cheating here, because it was actually vJASS that taught me classes and stuff
 
@Wietlol probably better than JavaScript😅
 
meh
waaaay easier than JavaScript to learn
but its use case is much smaller
as are its capabilities
it was probably thé easiest way to learn programming
but the targeted audience is quite small
 
2:09 PM
@Wietlol ELIF this
 
elif?
Excimer Laser Induced Fragmentationpar ?
 
explain like i'm five
 
5 mins ago, by Wietlol
for example, C#'s language project is this: https://github.com/dotnet/csharplang
this project is what defines how C# should work
Roslyn then takes the decisions from that project to produce a compiler capable of actually compiling your code
but Roslyn also compiles VB (I assume)
which probably has its own vblang (or something) project
well, there it is
you can stop developing vblang (and therefor VB) but you still need to update Roslyn whenever csharplang wants new features
 
@Wietlol it actually does
Now that C# 11 is probably out, the Roslyn project must have been updated if I'm getting you correctly
 
depends on if C#11 introduced new features that require the compiler to change
and considering C#, they probably introduced a bunch of new keywords or new places to put those keywords, making the language even more difficult to learn
 
2:15 PM
I still havent gotten the concept of out keyword for example. And neither do I get the point of switch expressions
 
out keyword has 2 different meanings though
out parameters or out generic variance?
 
parameters
 
Hello guys!
 
switch expessions, in their base form, are quite nice because they are expressions that return a value
expressions are much easier to work with than statements
 
Is is it difficult to generate PDF file with multiple OCG/layers?
 
2:17 PM
in addition, you then enforce value results
missing branches in a switch become invalid, making it more difficult to make mistakes
 
I can't find an opensource lib that is able to do i...
 
out parameters are just additional return values basically
for example, what you could do now: public (boolean didItWork, int number) TryParse(string text) {...}
 
Do they work like C arguments in functions like sprintf where you pass a char* and it is either modified or a modified copy is created?
 
you basically want 2 results:
- boolean to tell if the parsing worked
- the actual number if that was the case
in old C# days, you would do that using out parameters
public boolean TryParse(string text, out int number) {...}
 
@Wietlol are they out of use now?
 
2:21 PM
obviously the better approach is to just return a nullable int and define that if the parsing failed, the value is null
 
our params are great
 
@cap7 they are not out of use, but they are basically useless and should probably be replaced by a better approach to the same problem
 
@Wietlol how do you access the didItWork outside the method?
 
they are still in use in many codebases because no one at MS cared to introduce more modern alternatives
@user14773854 the easiest way is to deconstruct the value
var (success, value) = TryParse("123trains");
then they are just variables of common types
 
if (somethingOK() ) { ... use out value }
 
2:23 PM
like a tuple?
 
you can keep them paired though, leaving them as a tuple
 
How do I get razor highlighting and code completion in non-ASP projects?
 
what if you need two out values?
 
then just make more
but yea, if you need multiple out parameters, you cant really do it with a nullable return
in that case, you probably want a return tuple
 
Why isn't Predicate<T> allowed where Func<T, bool> is needed? I have a Predicate<SomeResult> myPredicate = ... which I try to pass into results.All(myPredicate) but it complains because it's not a Func<SomeResult, bool> which I would have thought should be the same.
 
2:26 PM
and probably also make it named
@VLAZ they are behaviorally the same, but named differently
 
regarding pdf layers? can anyone help?
 
so C# cant handle them
 
Yeah, and it doesn't allow them to be cross-compatible, apparently.
 
keeping in mind Predicate<T> does not inherit from Func<T, bool>
nor the other way around
 
Yeah, I figured that much. It just baffled me that's the case.
 
2:28 PM
same as how Func<A> does not inherit from Func<B, A>
even though it could perfectly work as a substitude
 
OK, I'm trying to do things with predicates because I thought it's simpler but...it really is just a PIA.
 
generally speaking, I would avoid the named synonyms of Func
 
There isn't even a negation readily available. And x => !myPredicate.Invoke(x) basically defeats the purpose of having a predicate for simplicity.
 
x => !myPredicate(x) ?
C# is indeed missing useful functions for higher order functions
but to be fair, in C#, it would be quite difficult to maintain those functions
 
@Wietlol Basically the same thing. I still have to create a new one instead of something like .Where(myPredicate.Negate()) (or other similar transformation) that doesn't require me to create a new lambda myself.
 
2:36 PM
public static Func<bool> Not(this Func<bool> self) => () => !self();
public static Func<T1, bool> Not<T1>(this Func<T1, bool> self) => t1 => !self(t1);
public static Func<T1, T2, bool> Not<T1, T2>(this Func<T1, T2, bool> self) => (t1, t2) => !self(t1, t2);
this works, but as you can see, it doesnt work for funcs with any number of parameters
 
Yes, which then means I need this code in a bunch of different projects. It feels like I'm asked to implement addition to use the language...
 
welcome to the reason why I created my own CSharpUtils library
 
Yeah, I can feel it.
 
where I create a ton of core C# features that should have been in C# sdk
funny enough, I often have an issue where C# introduces a particular function and suddenly I have name clashes
such as DistinctBy() in linq
or MaxBy
not sure what it was again
the issue is fighting for the names against other libraries
quite a few libraries introduce IEnumerable<T>.ForEach(Func<T>)
so I had to use ForAll
 
if someone would like to help:

https://stackoverflow.com/questions/73308230/generate-pdf-document-with-multiple-layers-ocg
 
 
1 hour later…
4:04 PM
posted on August 10, 2022 by Leslie Richardson

Last year, we announced the first phase of a new extensibility model for Visual Studio.  This new model will make extensions easier to write and more reliable along with additional benefits such as being able to install these extensions without restarting the IDE.  The post VisualStudio.Extensibility: A New Way to Write Extensions appeared first on Visual Studio Blog.

Katrina Dene on August 10, 2022
Will the programmers of tomorrow be shipping products written without touching too much code?
 
 
1 hour later…
5:16 PM
posted on August 10, 2022 by Salini Agarwal

August 2022 Security and Quality Rollup Updates for .NET Framework The post .NET Framework August 2022 Security and Quality Rollup Updates appeared first on .NET Blog.

 
 
3 hours later…
8:36 PM
 

« first day (4316 days earlier)      last day (615 days later) »