« first day (3384 days earlier)      last day (1557 days later) » 

2:00 PM
@mr5 is MVVM and Prism your business logic?
how nice
 
that spaghetti is so short
 
I mean, you will probably be sued for being a proxy of MVVM and Prism, but if you can earn your money with it, sure, go ahead
 
@DKDhilip hide
 
mr5
@Wietlol we wrap every business logic in I<name of technical business logic>Service/Provider/Manager
 
2:01 PM
I feel sick enough as it is, that just looks weird and horrible
 
@mr5 so, how are those designed?
MVVM and Prism?
 
I want spaghetti now
 
also, what does a manager do?
Service, I get, Provider? hmm perhaps as well... but manager?
 
@AlRey you infects others
 
It manages things
 
2:02 PM
according to Direct Mapping, it should do a task similar to what a manager should do
 
mr5
@Wietlol I mean, Prism is an MVVM framework. I didn't carefully chose my words here
 
... is it a no-op service?
 
I consider it as a form of art...
 
@nyconing how am I infecting others?? ;~;
I just want spaghetiiii
 
mr5
@Wietlol it depends on what it does. If it provides something, we named it I*Provider, if it manages something, we named it I*Manager, if it's an API or a device-specific component, we named it I**Service
 
2:03 PM
Why there's nobody mention about EntLib?
 
mr5
@Wietlol we have IDownloadManager which have a dependency to IDownloadService
another service for IBackgroundService if we want that IDownloadManager to run in the background
 
screw spaghetti
give me pizza instead !
 
mr5
IDownloadService have a dependency to IHttpService
IHttpService have a dependency to IDomainProvider which provides which domain it should connects to
 
@mr5 Overengineering?
 
mr5
2:06 PM
Nope
Why would it be over engineering?
We also use IDomainProvider outside of IHttpService
and every API service also depends to IHttpService so it's not just IDownloadService
 
user11867329
Ok. Learning C#.
 
Too much interfaces, some impl classes never change for many years
 
user11867329
What's important C# stuff I'd benefit from knowing early on?
 
mr5
Also, every API service could have a dependency to ICachingService since each APIs needs to be cached depends to business logic
 
@OakDev Managed vs Unmanaged
CLR, CIL
JIT
 
user11867329
2:09 PM
@DKDhilip Listening.
 
A listener
 
user11867329
Can I use Notepad++ as an IDE?
 
And a lot of things...
struct and class
Stack, Heap
Generic
 
user11867329
I assume C# is fairly different from C++?
 
Generic with constraints
 
user11867329
2:11 PM
Hence, I should skip C++ tutorials and go to C# ones?
 
mr5
@OakDev not really if you know how C++ works
 
It look somewhat similar
 
It's... very different. Concepts are the same, but C# is vastly easier than C++'s weird bullshit.
 
user11867329
I merely opened visual studio 2016
 
user11867329
Oh that's good then
 
mr5
2:11 PM
If you want to have a deep understanding how C# works, I highly suggest you start at low level such as C++
 
@OakDev close it and update to 2019
 
You can compare C++ template with C# generic to see the differences
 
user11867329
@nyconing no >:|
 
@OakDev SOLID principles, dependency injection, interfaces... it's different from C++
 
user11867329
2:12 PM
I got this SDK/Plugin but it's insane, a small plugin has sooooo much code in it.
 
user11867329
Making me freakout on the actual amount of coding required even for small packages like a plugin/module or something
 
@OakDev What other programming languages do you know?
 
@OakDev Ignore everything that others think that you "should know". Write code. Learn. Experiment. Try everything. And when you're thinking "Hey why is this...", THEN look it up. There's no point in stuffing your head full of theory when you don't use it.
 
user11867329
Is it dense?
 
user11867329
@RoelvanUden Thanks, still need to decide which first road to take.
 
user11867329
2:13 PM
Lots of roads...
 
@OakDev I'd start with a goal.
What are you trying to do
And what do you need to get there
If you figure those two out, you're good to go.
 
@mr5 we generally always name it IService, because the interface doesnt know what it does
 
mr5
@DKDhilip we extensively use DependencyInjection. Creating a class which have a business logic tied to it is a no go for me.
 
only a provider is something special
 
user11867329
Create a plugin with VS & my company's software SDK
 
2:14 PM
a service has specific methods
a provider's api is basically one get method
 
user11867329
I already have a template
 
user11867329
but i'd basically be bombarding you guys for every single line
 
the implementation could be a client object
 
user11867329
"what's this / what's that"
 
or a service object
or whatever
oh, ye, we also use an IRepository for direct database stuff
 
user11867329
2:15 PM
@RoelvanUden So I think watching a tuto and "DIY" tuto
 
if it is indirect database stuff, we again use an IService
 
SOLID principles only good for LOB apps
 
implemented with a client object
LOB?
 
mr5
We barely use Repository pattern these days. Our implementation is similar to nosql
 
Line of business
 
2:16 PM
SOLID principles are probably good for all applications
 
@OakDev We can't answer questions that are specific to your companies plugin system. We don't use that, we don't know how it works, and we don't know what it does. You'll have to figure those out yourself. How does one write and run a plugin? Where do I put code to do something when I do a particular thing? How does it all interact with each other? Figure that out and then you'll have a foundation to build on.
 
user11867329
I know
 
@mr5 what is your database api then?
 
It is not good for high performance engine
 
user11867329
@RoelvanUden That's what I'm saying. So I'm just asking about generic stuff.
 
2:17 PM
You can't really apply many design patterns there
 
@DKDhilip why not?
 
mr5
@Wietlol for local database, it's similar to Avacache
 
Performance lol
 
high performance systems should still not violate liskov
 
user11867329
2:18 PM
@RoelvanUden Do you use CodeBlocks?
 
high performance systems still should have a design based on Dependency Inversion
 
Holy shit why are you guys so busy today
 
high performance systems should still have interface segregation
 
my coworker brought in the best donuts ever
 
2:18 PM
@CaptainObvious ikr
 
I mean the core of the high performance system
 
so goodbye guys; I'll see you all in hell cause my blood sugar's about to kill me
rip AlRey 1997 - 2020
 
I have to google the other two :D
 
Other part still good to apply
 
Oh wiet is arguing with someone
 
2:19 PM
ah, open closed and single responsibility
 
@AlRey Me too thanks
 
You probably don't do that in hot code path like handling high amount of sockets connections
You most probably want it as close to the metal possible
 
mr5
yeah don't do OOP in high perf critical systems
also, I'm about to play DOTKA2
 
You most probably want to avoid GC too
 
mr5
I'm slowly losing interest in D3 :(
 
2:22 PM
@DKDhilip I guess that is more of an SLA topic
I suppose that you wouldnt see it that often in "high performance" applications
but that mostly depends on the platforms and sdks
 
mr5
So I have this script in my Desktop
can you guess what it does?
 
echo NO!!!
 
mr5
nope but closer
 
@mr5 that be a question of skill and knowledge
wether you can or can not "play" could be interpreted as wether you are good at it or not
I would say, echo "no"
 
mr5
imagine if it goes to check your success rate and the current meta + checking the PING and the toxicity level of game right now
but no, it just ping the two singapore servers haha
 
2:27 PM
My current project is filled with a lot of static methods with [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)]
@mr5 lol
I'm still not fully understand Reflection.Emit lol
 
@mr5 so, echo "no"
 
idk why I've never felt the need to make a .bat
 
Working on updates 100%
VM Restarts
Working on updates 26%
 
not even in high school was I taught how those work
 
excuse me what the fuk
 
2:36 PM
yeah that's how Windows 10 rolls
 
I wouldn't be that bothered, but I didn't even click update and shutdown
I just shutdown the vm
 
@CaptainSquirrel Hail to Windows 10
It sometimes just restart without my consent...
 
o boi
now Visual Studio is taking a millenia
 
I made a change to a view in the database, adding another field, and I deleted it from the EDMX file and tried to re-add it. It didn't show up in the model, but it doesn't appear in the add list in "Update from database" any more either.
 
Happy Squirrel Appreciation Day!!!!
 
2:49 PM
omfg my coworker just brought in a brick laptop with Windows XP on it
it looks like it had win98 on it originally
 
laptops were expensive at the win98 era. I had no friend who had laptop I think.
 
@AlRey I avoid bats
and rats
and snakes
 
no?
you play at those
youre big cat
 
I do use .kts files tho
kotlinscript
 
let's play cat and mouse
 
2:59 PM
Why cats are so cute?
 
you're the mouse; I'm the lion
 
they're cute cause they always got that smile
 
Why cockroaches aren't cute at all?
 
cause they're sticky and they continue to live 9 days after they're beheaded
 
lol
But why
 
mr5
@nyconing what breed is this?
 
persian
 
mr5
ugh
It's not similar
Mirana has always been a safe pick for me
 
lol
they have variants
not all persian have peke face
 
3:06 PM
user image
2
 
@nyconing won't load
 
@DKDhilip I WANT THE SCRATCHY!!!
 
oh it's another kitty
(had to open on my phone)
 
I wish I can have a original persian long hair...
But all the way I can buy the cat is usually illegal breeding
 
3:11 PM
illegal breeding?
where is the cat police?
we need to capture those illegally breeding cats
put em in prison
 
3:22 PM
Damn it I fucking hate Ebay's APIs
 
is there a way to obtain the value of the return of a method which is decorated by a custom attribute?
 
that graphic is wrong; cats only wanna be petted in two or three spots
meanwhile a dog is happy if you touch them anywhere
 
@tahtoh what kind of attribute is it?
 
mr5
[NotReturningAttribute]
 
i want to create a custom attribute [Cache]
which if it is above a method is caches the return of it
@Wietlol
 
3:32 PM
ok
@tahtoh
 
thats because cats dont like humans in general
they despise them
 
I havent done a lot of attribute development, last time I checked, they were extremely limited in power
 
I once again have that urge to go collect all the lego things I didn't get during my childhood
 
but you can easily make it without attributes tho
 
i know i can without attributes its much easier
but it is what is asked for me in work
 
3:34 PM
Anyone remember Dino Attack? The 2005 theme that takes place in the futuristic year of 2010?
Dinosaurs have invaded the city and so you must take your heavy artillery and kill them before they breed
 
ye, if you really want attributes, I dont really know how
actually, it isnt that easy to do it without attributes, since in C#, methods or functions cannot be decorated easily, so applying a stateful trait based solution is a bit more difficult
 
@tahtoh hmm. Usually attributes are used in static context and through reflection. I don't think you can cache like that for each instance. But each type maybe...
 
3:49 PM
does anyone know why my pictures here are weirdly left indented and how to fix
 
your pictures aren't left-indented; the text below them is -- and there's not much I can do without seeing the css
 
@ntohl okok
whats the easiest way to check the cache, should i put a debugger after to check the memory cache of the httpcontext?
 
I just found out there's an HIV muppet
I think I stopped watching Sesame Street around the time they were introduced
 
@tahtoh I don't know
 
have a good evening everyone see yall tomorrow
 
4:02 PM
\o
 
@tahtoh the easiest way of caching is making properties to store the cached values in
perhaps even using a Lazy<T>
 
I think @human deleted his account
 
why do you think so?
 
@Wietlol i lost about 100 reputation due to user acount was removed
 
lol
> No service for type 'XYZ' has been registered.: InvalidOperationException
is there any nice way to make sure these wont happen?
there are so many implications right now that it is extremely difficult to keep track of what can go wrong
I feel like I am using Javascript
 
mr5
4:21 PM
How about a method attribute that would yell at compiler for it not being called anywhere
 
ye... that already exists
which is quite annoying
since that one has higher priority than all other warnings
for reasons like "why fix weird naming if this function isnt used anyway?"
which is fine normally...
but when you just wrote a new function... not so much
 
mr5
or a container extension that would check for all the required services?
 
something like that
 
mr5
maybe assert is more fitted in this situation?
oh I forgot, it behaves differently in C#
 
what kind of assert?
 
mr5
4:31 PM
I was talking about an assert that would halt the compiler
not sure how to do that in C#
 
I need to release Wietcompiler
 
Prashanth Chandrasekar on January 21, 2020

As we enter a new decade, there are tremendous forces converging—cloud computing, big data, AI, ML, and an increasingly diverse group of young coders from around the world. Every day, millions of developers visit Stack Overflow to find information they need as they push these exciting new technologies forward. There has been a massive shift since my days as a computer engineering graduate. I was fascinated by the power of languages like Perl, but had only my teachers, classmates, and a few small web forums and mailing lists as a community to support my learning. The numbers below really put into perspective the impact that our community generates and the opportunities that lie ahead: …

 
4:48 PM
Do you ever get an error that makes literally zero sense
 
Do I ever get an error that makes sense?
actually, Spring makes sensible error messages...
 
I mean
Normally, yes
But i have an error that is basically saying that a value is null when passed to a function
 
How would I generate a Click on a custom control that is not defined as a button?
 
yet there's a message that was logged prior to the error that has the value that would have been passed to the function
Which doesn't explain at all why its complaining about not having a value, because i can see that it should have one
 
@CaptainSquirrel ok
 
4:53 PM
IT'S MAKING ME LOOSE MY MIND
 
do you ensure that you actually pass that value?
 
yes
The only thing that's different
 
I mean, you could do Where(it => it.Person != null).First().Person and it will give you null
 
Is the logs from before this was happening and the value is NULL & there's no errors
And now the value ISN'T null and there are errors complaining about it being null
But i can clearly see its not
 
maybe the value must be null
 
4:55 PM
There's no check for a null value
the error is
Exception: System.ArgumentNullException
Message: Value cannot be null.
But that can't be correct, because i can see the value
 
what is the code?
 
The code basically uses this value to ascertain information about the account in order to process a payment
 
and?
 
pls dont make Lee's mistake
 
4:58 PM
Which was?
 
Jan 14 at 13:41, by Captain Obvious
oh my fucking god
he was busy with that for like 2 hours straight iirc
 
I've been on this for basically most of yesterday and today
This isn't something that was caused by a code change (that we know of at least anyway)
from our end, nothing has changed
 
ok
 
the client might have changed something, but I've asked them that Again to clarify if they changed anything and what it was they chagned
It's an intergration with a shudders custom microsoft dynamics crm
 
I WANT THE SCRATCHY!!! CODE!!!
 
5:03 PM
Unfortunately it's not that simple
 
oh it is
you just copy and paste
 
it's really not
 
Jack isnt looking so he wont remove it
 
Yeah, as much as i would love to copy pasta, there's a few different methods and classes i'd have to copy
and i'm not sure how i feel about posting client code that handles payments onto a public chatroom :P
#sorrynotsorry
 
client doesnt care about your log and calling a function
i dont care what the function does with it
or what happens before that log
I want to see that you make an assumption that guarantees that the value passed to the log is equal to the value passed to the function
 
5:05 PM
and more to the point, i'm not even sure where i could paste
 
I dont care about payments or accounts or clients
 
I know you don't
but there are people that do
scary people
spooky people
 
I mean, I dont care about that bit of code
so, you dont post that bit of code
 
mkai
I should also probably point out
my corporate overlord training for ethics
explicitly states i shouldn't be posting client code on public forums ever
 
then dont
 
5:07 PM
which is the most backwards ass shit i've ever heard
 
I heard better shit
like Javascript
you cant beat that
 
Log.Info($"response of {validationResult.Status} for application: {application.GetLoggableReference()}", this);
that's the code that shows the log
application.GetLoggableReference is a method inside the application class
 
pls tell me it is not the reference that is returning the null
 
it's not
 
status?
 
5:09 PM
the getloggablereference uses the username string variable from the application class
we then get the transaction data and check if the payment result is = to complete
We transfer some values from the transaction object to the application object
save the application object and then move to complete the order
 
and on complete, the username is null?
 
When we call the complete function
which has the application & some other stuff passed to it
 
such spaghetti
 
This then tries to get the data via the application.username
and its at that point according to this exception, the username is now null
and we get the value cannot be null message
 
and your log "guarantees" that it is not null?
check the values in your transaction object
check the writing to the application object
check the application object scope
 
5:12 PM
There's no change to the application.username value before it tries to get the data via the username
which is why i'm confused
 
check the application object mutation api
> We transfer some values from the transaction object to the application object
this could be the problem
 
that's application.foo = transaction.bar;
 
being able to mutate it at all could be the problem
log on writes on the important properties to find out if any hidden writes are done
check that writing the values into the application object actually happen properly
and check where that application object is used and that you keep using the same instance
that is all I can think of based on this description
if the problem is anything else, I'd love to hear it
but for now, time to head home
 
@Wietlol did i mention that this issue only occurs in production and works fine locally?
because that
 
Hey do you guys know of an emulated canvas API for winforms or WPF
like an HTML5 canvas api, but for C#
If I cant get that working, Ill just make another WYSIWYG editor in winforms ffs lol
 
 
1 hour later…
6:29 PM
@mr5 it always displays yes?
 
I have never heard of any emulated canvas APIs, sorry
 
6:53 PM
alright, gave up the canvas thing fast, but I already made a whole adaptable WYSIWYG with importing, exporting, and soon syntax highlighting
anyways
I need help, because my fontsize isnt adaptable XD
using pt in font size doesnt work, and as far as I know, .net doesnt have like viewport height that I can use to adjust the font size based on width/height
 
found this hilarious article from like 1996
this guy who hates Daggerfall almost became Vice President of the US
 
7:32 PM
Hey could someone help me make a OpenFileDialog Filter for .html .css and .js files? I still dont really understand how to do this lol
 
8:01 PM
When I set content of my textbox from a file, it seems to remove all the newlines, could anyone help me with it?
I tried switching replacing \n with \r\n in the string after its been returned
nothing changes
Im just outright confused
 
8:27 PM
@AlRey It was probably because of the nudity
 
if anyone here knows oData and aspnetcore attribute routing, take a look at my question here: stackoverflow.com/questions/59832561/…
 
9:20 PM
Here's a nifty idea. If they want to pop up a modal window on an application, and not let you interact with the app until you deal with the modal, how about they make sure the modal appears IN FUCKING FRONT of the app instead of BEHIND it!
 
user47589
9:33 PM
Modals should be opened off-screen. This is the way.
 

« first day (3384 days earlier)      last day (1557 days later) »