« first day (2971 days earlier)      last day (1969 days later) » 
00:00 - 13:0013:00 - 00:00

1:00 PM
@Mr.Noob UserControl is like Object for classes
 
Some of my friends with over 10 years experience in development also get offers for shitty jobs, they've put some of those on Twitter because they are laughable. One company offered him to do their commercial job without any paycheck, he was tasked with doing the commercial job, meet companies with pending projects, arrange a deal, and if the project makes profit, he earns 5% for the first year.
 
@Mr.Noob Yeah, that's what they're usually used for. But because you do it in xaml, it's not really geared towards inheritance. How would you reuse a control? Your base class would have the shared XAML, but how would you specify the different elements in the child controls?
 
@HéctorÁlvarez nice. Links please
 
https://twitter.com/GonzaloAlbito/status/1059416929553788928
https://twitter.com/GonzaloAlbito/status/1059417694192189441
https://twitter.com/GonzaloAlbito/status/1059417978276593667

(It's in Spanish)
 
> looking for a junior software engineer with at least 5 years experience in react-js and node-js, must have experience with SQL and must have knowledge in NLP
 
1:07 PM
Yeah, that kind
I was asked if I had several technologies by my hand
 
Why when I use this in my test all the elements are null?
/// <summary>
        /// Collection of valid releases.
        /// </summary>
        private static readonly IReadOnlyCollection<IReleaseTask> allValidReleases = new List<IReleaseTask>()
        {
            lowestRelease,
            lowerRelease,
            installedRelease,
            higherRelease,
            highestRelease
        };
every of the fields are like this:
 
Including software architecture, SQL Server and integration services, Azure cloud, C#, .NET Frameworks 3, 4, 4.6, 4.7.2, .NET Framework CE, .NET Core, at least 3 years dedicated to .NET, ASP.NET, Razor, HTML5, JS, CSS (IDK why they ask for this trash, it's like the ABC of web frontend), REST, SOAP, Microservices...
 
/// <summary>
        /// A higher release.
        /// </summary>
        private static readonly IReleaseTask higherRelease = new ReleaseTask("higherRelease")
        {
            FileName = "xx",
            Version = "yy"
        };
 
When they asked for my salary expectation I said a number 5000€ above the minimum wage in this country, they declined.
 
@HéctorÁlvarez I will decline too
We dont need old tech ppl, we need young smart with future
 
1:12 PM
There's this company in Spain called Mercadona, it's a supermarket chain. They pay more there for piling up boxes than the number they offered me for the role of software analyst and architect.
 
Amount?
 
I sent an email just out of curiosity last week and they said they were still making a decision.
19000€/year brutto
 
Facts
I quote: "We don't pay that much here, much less for only 3 years of experience"
 
@QuicoLlinaresLlorens Where is allValidRelease defined in the source file? Before or after the releases?
 
1:19 PM
it is after
it is that so?
I mean, before
 
> The static field variable initializers of a class correspond to a sequence of assignments that are executed in the textual order in which they appear in the class declaration.
4
Q: Initialization order of static readonly field

zix99I'm curious of the C# spec says anything about the order of initializing static field's in C# 5 (.net4). For instance: public class Test { public static readonly string A = "hi"; public static readonly string B = "bye"; public static readonly string DEFAULT = A; } In testing (Mono 2....

 
oh, thank you. Did not know about it
:)
 
Do you know if there are any issues related to converting a key to Int32? The docs say it goes from -65536 to +65535, so I assume it's signed int 32
But then you have this:
Control 131072 The CTRL modifier key.
 
That'd be Int16
Signed Int32 is -2.147b to 2.147b
 
@HéctorÁlvarez That fits nearly in an Int32, but it's a weird range - it's twice as big as a signed Int16.
 
1:28 PM
something went wrong when a user got registered in our system
 
Oh wait, you're right.
@AvnerShahar-Kashtan I think it gets converted to -655XX
 
we use a nationally accepted format thing for our data
 
yeah that's a signed Int17
 
//
// Summary:
//     Specifies key codes and modifiers.
[ComVisible(true)]
[Editor("System.Windows.Forms.Design.ShortcutKeysEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
[Flags]
[TypeConverter(typeof(KeysConverter))]
public enum Keys
{
    //
    // Summary:
    //     The bitmask to extract modifiers from a key value.
    Modifiers = -65536,
 
@LeeButler Yup. Not the most popular byte size, but hey, what can you do.
 
mr5
1:29 PM
 
@Wietlol Users are retarded.
 
mr5
O boi
 
and they said that an address addition thingy is only allowed to have 7 characters
@LeeButler this standard is retarded
 
Why would a key be negative? Surely it's a Uint16
 
@LeeButler Apparently because they use negative values for special key combinations. eyeroll
 
1:29 PM
Ew wtf
 
Right that's what makes sense. I extracted that from System.Windows.Forms.Keys
 
@mr5 I've seen all sorts of coverage of that, and the most I could guess (and I don't have any internal info), it's mostly changing EdgeHTML to Blink, while retaining the Edge app around it.
That's not necessarily a bad thing.
 
But I was also wondering why that weird behavior. Maybe it's faster in memory?
Or maybe it's legacy code
 
mr5
@AvnerShahar-Kashtan is Blink the forked name of Chromium?
 
The Alt modifier's value is 262144 in that enum. It's certinly not between -65536 to +65535
 
1:31 PM
    //
    // Summary:
    //     The ALT modifier key.
    Alt = 262144
 
@mr5 No, Blink is the forked WebKit.
 
mr5
@AvnerShahar-Kashtan yeah that's why I mean xD
 
Death to Trident!
 
@HéctorÁlvarez I'm pretty sure Trident has been dead for years.
Edge uses the unimaginatively named EdgeHTML
 
mr5
Gotta search for "difference between Chromium and WebKit"...
 
1:32 PM
Right, but they kept it like it was still warm or something. Those news are the real deal now
 
@mr5 WebKit/Blink is the layout and rendering engine, the engine that parses HTML and CSS and builds the display for the page.
Chromium is a web browser that hosts Blink as its layout engine, but does all sort sof other things - manages tabs, plugins, extensions, notifications, etc.
So I'm guessing Edge will still be Edge, will keep Edge's chrome and UI and extension model and everything, but just use a different layout engine internally. No-one would have even noticed except web devs who would suddenly get a more standards-compliant browser automatically.
 
instead of building new web browsers they should work on new front end language to replace JS
 
Typescript?
 
no, completly new language to replace JS
 
mr5
@AvnerShahar-Kashtan Google search is unfriendly for my query. Your definition makes sense though.
 
1:36 PM
@Mr.Noob There's TypeScript and other transpiled languages on top of JS, and WASM will let you use other languages compiled directly to that runtime.
 
mr5
Is the Web tools UI part of the WebKit? Safari and Chrome seems to have the same look
 
yes but its all on top of JS
 
@AvnerShahar-Kashtan I think simillar. Replace EdgeHTML with Blink components, add Chakra Core and save current GUI. I have only one fear - Edge on Android - Its literally chromium with changed UI
 
@Mr.Noob WASM isn't.
 
mr5
@Mr.Noob what's wrong with JS?
 
1:38 PM
JS is evil
 
DO NOT ENGAGE. DO NOT ENGAGE
5
 
@mr5 why do you keep asking rhetorical questions?
 
Still can not forgive MS to abandon MidoriOS
 
mr5
Oh. I'm not aware I'm opening a Kraken-like topic hehe
I tried Edge a bit. Seems good at the beginning until I hit the edge cases where it suddenly don't function normally
 
@Mr.Noob I don't think there's any need to build something like .NET for frontend web compliance. A browser is a browser, it has limited capabilities and anything you need to do that requires heavy workload, you can install a heavy desktop app and beam the info to that app.
I really don't like where it's going with making web-based ultra awesome apps that take so many resources.
 
mr5
1:42 PM
I tried it once again but they still failed me so they have finally considered my presence
 
but everything is moving away from desktop apps
 
@mr5 that is the primary feature
not everything
developing is still on a desktop
 
mr5
@Wietlol but it might have to do with how I use it vs a non-dev users
 
I disagree with that statement. Everyone has some sort of lightweight web-based application which is great, but making everything web-based is a baaaaaad idea.
 
For everyone that think Wasm is "good" - hacks.mozilla.org/2018/10/…
 
1:44 PM
We aren't ready yet.
 
Binary blobs can be even worse than JS itself
 
but if you want a good thing, you need binary blobs
also, what is the point of wasm and js if wasm can replace all js?
 
Say it to Singularity or other strlngly typed OS
 
stringly typed systems are even worse than js
 
@Wietlol Because there are a million billion lines of code in JS running right now.
 
1:46 PM
Faster sying is better spying. Specially when its binary blob and you can not run without it
>stringly typed systems are even worse than js
Ignorance lvl node devs
 
@AvnerShahar-Kashtan I think not, since most applications are minified so they are one line each
 
This place is like retard soup sometimes
 
i love soup
 
mr5
"We need a faster processors"
 
on a side note, anyone does AoC?
 
1:49 PM
?
 
mr5
"We badly needed quantum computers rn"
 
\o/
 
not trying to change the conversation here at all :D
 
@mr5 We require more overlords.
 
mr5
@Wietlol age of computer?
 
1:49 PM
Build more pylons!
 
@mr5 ^
 
@Wietlol About your ignorance with STS archive.codeplex.com/?p=singularity
 
We don't need faster processors. We need developers to stop being retards with the resources they have and make efficient use of what's available instead of demanding users get more powerful hardware to run their text editor.
 
@J.Doe STS?
 
Strlngly typed systems (where systems i mean i this case OS)
 
1:52 PM
@Wietlol sponsor me senpai
 
sponsor you?
 
It asks me for a sponsor code
 
mr5
@Wietlol is that a code challenges site?
 
yes, yes it is @mr5
 
mr5
Looks neat when viewed like this
 
1:53 PM
it looks neater when viewed on the site itself imho
dark theme OP
 
mr5
Imho no
 
in le Jaba chatroom, we have a leaderboard
so you can see which plebs are falling behind
:D
 
mr5
Leaderboard of plebs?
So you're on top? xD
 
Hi guys
 
im... quite at the bottom
since points are also awarded for being earlier than others
 
1:56 PM
While I was checking out IDbConnection class of .Net framework,i see that it contains a method called IDbCommand CreateCommand();
This doesnt violate SRP?
 
and I did the tasks of day 1 to 3 all yesterday evening
 
I mean why DBconnection class should contains method to create DbCommand?
 
im in place 7
out of... well... 8
Unihedron is on top, followed by Madara and then Neil
 
@Wietlol so stop talking and get day 4 done ಠ_ಠ
 
Challenge 1 can easily be solved as follows: Open excel and press one button.
 
1:59 PM
@Neil tonight
@HéctorÁlvarez dont spoil it for other people
also... each day has 2 tasks
often, the second is considerably more difficult than the first one
 
meh
 
Not spoiling anything.
 
mr5
Ugh
 
I've spent roughly 3 times as much time on the first task than on the 2nd on average
 
@User Because it's a convenient way to generate a Command that's already linked to that Connection.
 
mr5
2:00 PM
Can't do that challenges
 
@HéctorÁlvarez what is challenge 1?
 
@HéctorÁlvarez give me code.
 
mr5
I'm have no time
 
@Wietlol You have to add 1038 values.
 
@AvnerShahar-Kashtan But then it doesnt violate SRP?
 
2:01 PM
oh yea
the second task is not so easy to solve... using excel
 
Actually I always try to design class based on SRP principle
 
This must be the script kiddie entry level.
 
@User Probably, a bit.
 
Huehue, I'll see what I can do
 
But SRP is a guideline towards writing clearer code, not a checklist to blindly follow.
 
2:02 PM
@HéctorÁlvarez also, i feel like they get more difficult with each day
however, day 3 task 2 was quite easy compared to what I expected to have to do
 
This is also another class in .net framework:
 internal static class SqlConnectionHelper
 
I don't think it's violating SRP.. it's the interface for which you can query information from the database
 
Why this is marked as internal static?
 
@User The alternative would be to create an abstract factory class. Does it make things clearer, instead of having the IDbConnection also serve as a factory? Not necessarily.
 
if it wasn't in DBConnection, then there'd have to be a stupid class just for distributing a DbCommand
 
2:03 PM
Data examples:
+1, -1 first reaches 0 twice.
+3, +3, +4, -2, -4 first reaches 10 twice.
-6, +3, +8, +5, -6 first reaches 5 twice.
+7, +7, -2, -7, -4 first reaches 14 twice.
 
@User Because it's it's part of the internal implementation of the System.Data.SqlServer library, and not part of its external interface.
 
what am I missing here. "Reaches 10 twice" no combination reaches the same number twice.
 
Is there a guideline or something else of how to "sort" the actions in a controller? For example alphabetical, ... ?
 
@HéctorÁlvarez the sequence is repeating
> +3, +3, +4, -2, -4
is the sequence
 
2:04 PM
@HéctorÁlvarez 0, 3, 6, 10, 8, 4, 7, 10*
 
@SpedoDeLaRossa What, you mean in the code file?
 
that one is repeated
 
@AvnerShahar-Kashtan So does that mean i cannot use that class in my code because its internal to framework?
 
+3, +3, +4, -2, -4, +3, +3, +4, -2, -4, +3, +3, +4, -2, -4, +3, +3, +4, -2, -4...
then you end up with 10
 
2:05 PM
oh okay I understand
 
twice, in fact
 
Hello Guys
 
So what I have to look is for the repeating value, not the increment.
 
yep
repeating total
 
@AvnerShahar-Kashtan yes in the codefile in the Controller. Lets say I have 50 Actions. Index, CreateXy, GetFiles, UpdateXy, UpdateZz, Login, ...
 
2:06 PM
Below code give memory Exception

              Response.Clear();
              Response.Buffer = true;
              Response.AddHeader("content-disposition", "attachment;filename=1.csv");
              Response.Charset = "";
              Response.ContentType = @"application/text";
              Response.Output.Write(Helpers.Export());
              Response.Flush();
              Response.End();
Exception in this line
      Response.Output.Write(Helpers.Export());
 
remove one .
 
@HéctorÁlvarez the repeated sub-sum, yes
 
@SpedoDeLaRossa Well, chances are 50 is too much, and if you had more focused controllers, you wouldn't be asking yourself how to enforce order and strtucture in a huge code file.
@Bassem I see you're still loading all data into a single string, even though I told you to use Streams because you can't allocate such a huge string at once.
 
@AvnerShahar-Kashtan There aren't 50. ;) I just want to know if there is for example a styleguied of how to order actions.
 
Export return a stringWiter

while (rdr.Read())
{
object[] rowItems = new object[rdr.FieldCount];
rdr.GetValues(rowItems);

string[] strItems = rowItems.Select(x => x.ToString().Replace(',',';')).ToArray();
writer.WriteLine(string.Join(",", strItems));
}
 
2:10 PM
@Bassem A StringWriter creates a string.
You need a StreamWriter.
Also, passing the StringWriter to Write simply means that the code is taking this StringWriter, calling ToString on it, and passing that to Write.
What you need to do is pass the Output (which is, I believe a StreamWriter of some sort) to Export, and Export should write to that stream.
 
mr5
@Bassem you need to store the data every loop of streams and not stream all then store
 
You've just streamlined the creation of a gigantic string into the Export() method, but it's still creating the gigantic string.
 
generally a serializer method will take a StreamWriter instance
and it can be forwarded to other classes, etc
 
@mr5 No, you don't need to store at all. Just write it to the output stream, line by line.
 
no need to convert to String
 
mr5
2:13 PM
@AvnerShahar-Kashtan that's what I mean by store
 
@AvnerShahar-Kashtan do u have an example please
 
@Bassem Yes, I'm pretty sure I gave it to you the other day, and then linked to it again.
Instead of returning a StringWriter, have export take a TextWriter as a parameter and write to it.
public void Export(TextWriter writer)
{
// the exact same code you have, only that it writes to the Writer
}
 
ok , i am trying .. .
 
Protip: Bassem is a known vamp
 
Protip: Kendall is Frey
 
2:21 PM
Time for lunch, brb
 
@AvnerShahar-Kashtan I tried it but Response.output.write needs a param , it gives error because export return void
 
Ok. Now try to understand what the error is, what Write expects and where you should call it.
 
   using (MemoryStream m = new MemoryStream())
            {
                TextWriter result = new StreamWriter(m);
                Response.Clear();
                Response.Buffer = true;
                Response.AddHeader("content-disposition", "attachment;filename=TaxMailingData.csv");
                Response.Charset = "";
                Response.ContentType = @"application/text";
                Response.Output.Write(Helpers.TaxMailingExcelBuilder.Export(result));
                Response.Flush();
you mean memoryStream like this
 
When calling this:
            this.Object = new ReleasesFillUpExecutor(serviceName, this.ConfigReaderMock.Object, this.FillUpStateHandlerMock.Object, this.StorageServiceMock.Object, this.DeviceStatusEmitterMock.Object);
 
2:33 PM
Response.Output IS the stream writer.
 
I am getting the following exception:
System.TypeInitializationException: 'The type initializer for 'ReleaseService.FillUpMode.ReleasesFillUpExecutor' threw an exception.'
I put breakpoints inside the ReleaseFillUpExecutor(..) but they are not catched
 
@QuicoLlinaresLlorens TypeInitializtionExceptions are exceptions that occur during static initialization of your class. Catch it and see what the InnerException is - that's the real error.
 
so, I should do a catch ArgumentNullException?
In the constructor of ReleaseFillupExecutor?
 
@QuicoLlinaresLlorens Enable "break on exceptions" in VS to see what throws.
Don't use try/catch for debugging.
 
@AvnerShahar-Kashtan Thanks. I go!! :D
When I finish I will have to disable it?
 
2:41 PM
You should, otherwise your debugging experience will be less than ideal - every exception thrown, even if caught, will break execution.
 
OK , I am trying to figure it out.
I appreciate your help , you are a good person , Thank you @Avnershahar-kashtan
 
@AvnerShahar-Kashtan Perfect, thanks a lot. Did not know that
 
Hi All, I dont know whether this is a right place to ask this question. But i have no second thoughts. So im asking here.
May i know any best online tutorial to learn C# design patterns
 
learnmvvm.com
 
3:03 PM
Julia Silge & Jason Punyon on December 04, 2018

This past summer, we wrote our first blog post about comments on Stack Overflow, focusing on our initial work rating comments internally at Stack Overflow and what we learned. Since then, we’ve fielded this comment rating task more broadly in our community. This blog post shares some of what we are learning.

I (Jason) wrote a web application that presents a user with a comment thread from a post on Stack Overflow and asks the user to rate each comment in the thread as fine, unwelcoming, or abusive. Our first blog post shared results from when we asked employees at Stack Overflow, includin …

 
3:26 PM
@Sam1604 don't worry too much about patterns
write things as small and simple as possible
and design for actual use cases
 
@Sam1604 You'll write patterns whether you know their names or not
Sometimes it's nice to know what they're called in order to have proper terminology, but they're called patterns because they tend to emerge naturally when needed
 
Agree on the first part, patterns are mostly good for talking about code as it introduces names.
About the second part it is very common to see bloated unnatural solutions due to developer chasing patterns.
And things like mvvm tends to send people into pattern paralysis.
 
well hence the "naturally"
 
ok fair enough
but there is the unnatural part also :D
Learn the language, learn the tools, solve the problems in the simplest way you can think of and refactor when needed.
 
Study the antipatterns if anything.. avoid those like the plague
 
3:32 PM
patterns & antipatterns have overlap
 
There's a guy who comes here often who creates interfaces for every class
because he thinks it is good practice, despite me telling him otherwise
 
ew
yes, it is very common
 
his logic is that the day he needs it, it's already flexible, but I mean that's half of it
 
The rule there is be as concrete as possible.
 
You don't complicate a program "just in case"
 
3:34 PM
Use an interface when it solves a problem.
 
you do it when required, no more no less
 
> Design for simplicity and get flexibility for free. Design for flexibility and get complexity for ~free~. -- rightfold
 
3:58 PM
design to make it work and get spaghetti for free
@Neil i actually dont... but often times, I do, yes
adding interfaces dont make your program more complex
it helps keeping SLA and SOC, which make it much easier to understand and to modify
data classes often dont have interfaces
 
4:30 PM
@Neil also keep in mind, I don't make interfaces for flexibility, I make them for readability
 
:stare:
 
This advert is nuts

Mid-Senior .Net Developer

WiseTech Global Ltd.

At WiseTech, we think bold ideas and build bold products. Our company culture is something we are incredibly proud of.…

Posted on Stack Overflow Jobs on November 27, 2018

 
lol web forms
 
posted on December 04, 2018 by Scott Hanselman

Buckle up friends! Microsoft is open sourcing WPF, Windows Forms (winforms), and WinUI, so the three major Windows UX technologies are going open source! All this is happening on the same day as .NET Core 3.0 Preview 1 is announced. Madness! ;) .NET Core 3 is a major update which adds support for building Windows desktop applications using Windows Presentation Foundation (WPF), Windows Forms,

 
hmm... maybe that was why Johan linked wpf
I thought we were just linking random ui frameworks that I really dont like
 
 
3 hours later…
8:00 PM
@Feeds Was coming here to post this.
No need to apparently.
 
8:10 PM
how to extract folder name using regex from this file path ?
\IN0190\10\2011\fromPlant\10162018_20181025_080336_d28265c9-06ba-4961-86e5-bb94b‌​22a861f.txt
 
8:57 PM
@Kob_24 What folder? fromPlant? I bet $10 you're overengineering this solution.
 
10 and 2011
i solve it like that actually without using regex
`internal DirectoryInfo GetPlantCodeFromFullPath(string file)
{
var directoryName = Path.GetDirectoryName(file);
DirectoryInfo inf = new DirectoryInfo(directoryName);
return inf.Parent;
}`
 
Someone owes me $10.
 
i bet €10 that its an XY problem
 
hehe :P
this my frist time i use queue in C# any good tutorial that explains how to create a task to look into a queue if there is any available item?
 
9:13 PM
hands Wietlol €10
Also super relevant: Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
 
@Sinjai i dislike regex
actullay
 
Anywho, I'll try to help if you can give me something other than "look into a queue if there is any available item".
 
yeah thx,, i mean i have used FileSystemWatcher to check whether a new update has been made to file, and i add these changes to a queue
what i need to do, i need to keep looking in the queue for any new incoming changes
 
You can't just use the FileSystemWatcher.Changed event handler?
 
the problem is that the file directory is shared by many locations
i might miss some changes just use FileSystemWatcher.Changed (and i already use it to catch all new changes) hence i am using queue to saves it into it
 
9:40 PM
@Kob_24 you disappoint me, young pupil
regex is love
regex is life
regex is [r](?=e)..(?<=g)\u0065[^\u0000-\u0077\u0079-\uFFFF]
 
try it here
 
I'm partial to regex101.com
 
me too
 
However, I unfortunately don't understand [r](?=e)..(?<=g)\u0065[^\u0000-\u0077\u0079-\uFFFF] :C
 
it maches "regex"
 
9:47 PM
RegEx is black magic. When situations are dire enough, I sacrifice a virgin chicken to make a Stack Overflow question asking for what I need, and reluctantly drop the best answer into my code, vowing each time "never again".
Can we take a moment to appreciate that Chrome's user agent string is this nonsense: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
 
regex is izi pizi
interwebz is black magic
 
10:06 PM
True, the internet is absurdly complex and very much taken for granted by the average person.
 
my issue is that my internet connection doesnt work
in such a way that new connections cannot be made
but old connections still work
 
10:23 PM
Have you tried blood sacrifice?
 
11:01 PM
I'm trying to write a linq query to search through a set of entities
Consider the following entity
class A{
int id;
List<ALangStrings> languageStrings
}

class B{
int Bid
string language
string langString
}
I want to write a query to find all A entities that have a langString equal to some input value
 
00:00 - 13:0013:00 - 00:00

« first day (2971 days earlier)      last day (1969 days later) »