« first day (3385 days earlier)      last day (1546 days later) » 

12:00 AM
winform to WPF .Net Core is stressful
 
WPF is just a way to kill braincells
Aug 21, 2019:

> Microsoft has maintained and improved WinForms (and there are some cool new features coming down the road
 
but I got paid to learn it sooo.... -90% stress
 
That was announced recently
its not dead
Its like HTML5
Old, but still useful in a sense, well in HTML5's sense, not much would be possible without it
 
using WPF makes me miss charts
 
you were paid to learn wpf -__-
well lucky you bub
Im sitting over here with winforms enjoying infinite TableLayoutPanels
 
12:03 AM
of course, the company I'm at now wanted to do an 'update' so everyone got free training
 
while WPF users struggling with broken designs
I will admit though
wpf is more fun and customizable.
In a sense .-,
 
UI is everything
 
Lol the big problem I had, was WPF's rendering engine cuts off borders and corners in some locations due to "pixel perfect problems"
and apparently, you need like a billion tables inside of tables to make it function correctly??
 
you can make the most useful app that'll be dead in the water if it doesn't look pretty
wym
?
 
I just constaintly had issues with WPF
design versus the actual program that opened were very different, I found issues where borders of the program and buttons were being cut off, colors would disapear
and not to mention I had to re-learn a lot of window's built in methods (the WPF alternative ones)
well, if you ignore all the problems for newbies, its interesting
 
12:07 AM
yeah but winform eats up processing power
 
like HTML5 Canvas, but more interactible, and doesnt run on a webpage
@CupOfJava Um... yeah... if your using a PC from 2001
 
check your debugger, you'll see the difference
 
my 2007 pc (the one im typing on now) has 16gb ram and is barely using 3% cpu/gpu power atm with winforms and 2 visual studio sesions
 
interesting
 
Think of it this way: Might perform worse, but both program's performance has so little impact on the entire computer
that comparing the two would be like trying to compare the height of 2 people in front of a 50 meter wall
:P
pretty soon with quantum computing and multiatomic threading, such a thing as "performance" wont exist anymore anyways XD
not to mention sub-cellular organic computing... 0-0

If you get what im saying: Running a computer inside of a living creature
 
12:11 AM
oh yeah, quantum computing is totally coming, just like AI, and flying cars.
 
flying... cars... noooo uhhh
flying cars wont be a thing porbably until around 2200
just guessing
 
that was the point
 
zero-point energy (make things float :P and make anything possible really) is like nowhere near "researchable"
lol just imagine the day we inconsiderate humans understand how to modify ions
 
read what I wrote in a sarcastic voice
 
Pretty much gods at that point :P
@CupOfJava Write /s for sarcasm... its an internet thing :L
 
12:13 AM
nah
 
have fun in 2016
 
at least I don't still use winforms
 
https://www.iamtimcorey.com/blog/137742/winforms-dead

Have a nice day @CupOfJava
 
I am having a really nice day, thank you.
 
 
1 hour later…
1:41 AM
Emulated HTML5 Canvas API on WinForms?
You could make one by referring w3.org/TR/2dcontext
And then use something like System.Drawing or Skia as backend for output
 
2:11 AM
@TaylorS ^
 
mr5
2:30 AM
@TaylorS err, shouldn't be wysiwyg only applies to printing documents?
 
 
1 hour later…
3:43 AM
I dunno, I'd call Word a wysiwyg editor compared to something like LaTeX
or even those rich text boxes that keep you from having to know HTML
 
 
3 hours later…
6:53 AM
@Grace Is latex worth it?
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
 
7:11 AM
@Squirrelintraining Out of context, that's a great question!
 
@RoelvanUden Thanks for noticing that roel :D
 
8:05 AM
Is PostScript worth it?
 
Worth what?
 
mr5
Is Rust worth it?
 
Worth what?
 
8:27 AM
o/
how would I make visual studio perform a click on a custom element like Winium is able to do so?
 
top o the mornin to ya laddies
@MwBakker probably yes but I haven't tried that yet
 
V.7
8:48 AM
Hey all
Why it shows there's no Telerik dependency in Release mode, but in Debug works!?
 
9:00 AM
I'm back bois
back in my normal office
 
@CaptainObvious wb gl
 
@V.7 Because telerik bits are garbo
 
V.7
I mean, what might this mean?
 
Depends on what your release config is set up to do
 
V.7
This reference exists and added in References tree in Project
How to check, @CaptainObvious?
 
9:09 AM
Tbh I'm shooting in the dark. I haven't had a brew yet, can't even see properly and also have never experienced the issue
 
mr5
9:22 AM
@RoelvanUden do you use Rg.Plugins.Popup?
 
mr5
Have you even consider making it as a page instead of the built-in ContentPage?
 
mr5
Rg.Plugins.Popup is fast. I was thinking, we could make a library from it.
 
But it's already a library
 
mr5
9:26 AM
Yeah but it's not entirely supported as a "Page"
 
V.7
Don't care about that. Just make a new one.
 
mr5
it only acts as a modal for now or dialogs
 
Wait hold on
 
mr5
An app built with its pages would be amazingly fast plus, you can control the page transition animations
 
9:27 AM
My popups are Rg.Plugins.Popup.PopupPage
 
mr5
that's what I'm referring to
 
Ohh
I do like its stuff though, some really nice bits of my otherwise fairly dull app come from the popups
Even if the entire app is dark mode only #
 
mr5
It's also supported by Prism.Popup so it's much easier to do navigation using MVVM
 
How do I perform a click on an element that is not really a button
 
mr5
We're also thinking creating the next app from it.
@MwBakker which platform is this?
 
9:30 AM
I have the element object, but I want visual studio to .Click() on it
@mr5 WPF
 
LIterally never heard of prism before
 
I googled but all results require an actual button object
 
@MwBakker MouseLeftButtonUp
 
@CaptainObvious but on an element which is not a button
 
Yeah that event is on all UIElements
 
mr5
9:31 AM
@MwBakker does it have behaviors?
 
Oh wait
 
mr5
<Label>
	<Label.Behaviors>
		<b:TapBehavior Command="{Binding TapCommand}" />
	</Label.Behaviors>
</Label>
 
You're programmatically clicking the button?
 
Yes
 
100% do not do that
 
9:32 AM
Like Winium is doing
 
mr5
should be a "PerformClick()" of some sort. That's how it is for Android.
 
var labMenu = menu.FindElementByName("Laboratorium");
labMenu.Click();
labMenu.FindElementByName("Onderhoud").Click();
var labOnderhoudMenu = labMenu.FindElementByName("Aanvraag");
labOnderhoudMenu.Click();
 
Except I don't need to find anything, there is already an element
 
mr5
9:33 AM
@CaptainObvious you should start learning it. It's semi-official Microsoft
 
So what actually is the element
 
The above part of scipt works btw, except now the input is not to require Winium to find an element, the element is alrwady there
I just want to perform a click on that present element
 
Because it looks like you're clicking a Menu, when tou want to click a MenuItem
 
@CaptainObvious A MenuItem, it's custom
 
MenuItems do have click methods
Real ones do
Because I believe they're descendants of buttons anyway
 
9:35 AM
good morning
 
Never fear, looks like I'm talking shit
They do have click events, but not click methods. But you shouldn't use click methods anyway
 
At least something that performs the click
It has automated testing purposes
Winium is great except I don't need to find all the elements, I want Winium to 'take' the element as is and work with it
Rather than performing an XPath search or whatever while the element is already at presence
Because the automated test is based on a script coming from an intern recording tool on the framework itself, and delivers me the objects as is
 
Why not try recording a test with VS and see what it spits out
 
foreach (MouseClickEvent eventf in logSession.MouseClickEvents)
            {
                if (eventf.ElementId == 26)
                {
                    // Button btn = eventf.Element.View.GetEditable() as Button;         doesn't work
                    //CruciatusElement menu = eventf.Element as CruciatusElement;         nope
@CaptainObvious because I already have the recorded session
 
Which package should I use: Microsoft.Azure.KeyVault or Azure.Security.KeyVault.Keys?
 
9:39 AM
Well the recorded test should have the code to invoke the click already then
 
I agree, but they don't have that
 
Alternatively, there's something else in the docs
 
It's my responsibility to create that
 
Has Azure.Identity replaced Microsoft.IdentityModel.Clients.ActiveDirectory?
 
If you can focus the menu item, you can send an ENTER keypress and that should invoke it too
 
9:41 AM
so first some sort of setFocus()?
 
I think there should just be a method called "Focus()"
@Blue Unliekly, AzureAD and proper AD are very different
 
I can perform InvokeSetPropertyChanged()
 
That wouldn't help at all
 
well anything Focus() related doesn't exist for the property
I tried casting, gives null
 
@CaptainObvious thanks
 
9:44 AM
I think it's something to do with that dodgy UI automation library
Which is just a wrapper for the built in one anyway
 
I couldnt do these things before working with UI automation library
 
I can't tell though because the docs in all russian or something
 
Winium is not my main target, I could only work with Winium if it could immediatly cast my Element to a CruciatusElement
 
But what the hell is a CruciatusElement
 
It's an Element that Winium uses to perform Click() or DoubleCLick() or whatever on
Just like Visual Studio would do with a Button object
 
9:47 AM
But standard UIElements ahve those methods anyway
 
I do not in this case
 
mr5
winium, cruciatus... are these names of greek gods?
 
Ofc I could try to cast this custom element to a UI element
@mr5 I dk but I do have new names for certain parts of my body
 
@mr5 No, never heard of it.
 
mr5
You don't do Xamarin Forms?
 
9:56 AM
Maybe he just doesn't need fancy modals
DisplayAlert() may be enough for him
 
@mr5 no, not as it seems
 
10:31 AM
o-
 
mr5
-o
 
\o
 
V.7
\O/
 
10:53 AM
how rude of me, GOOD MORNING SQUIRRELS AND NON SQUIRREL HUMANS
We don't say good morning to roaches
as @Harry is rude and barely shows up anymore
me heart is break
 
JESUS CHRIST how late are you
Bloody part timer
It's because @Harry is scared of his new overlords in whatever dodgy company he now works at
I suppose that's what happens when children enter the working world though
 
mr5
It's 7PM. Office about to close
 
Negative, it's 11AM
 
@CaptainObvious I've been in since 9:45, i just forgot to come say hi lmao
 
Also what the fuck why does your office work until 7
9:45? That's still part timer shit
 
11:03 AM
@CaptainObvious not really, i'll be here until 6ish
 
I've been here since half 8
 
8 hour days 😭
well, 40 hour weeks
week before last i did 10 hours because i had to make up time
 
40.5 hour weeks :(
 
i hadn't realised that the new work week hours had kicked in
 
mr5
I actually went on office at 9:59am lol
1 minute before late
 
11:04 AM
I did 10 hours on thursday because at least 2 of them were driving
 
Yeah, so long as im here before 10 its not bad
 
oh fuck I still need to do my expenses
 
Damn it you being late was helpful
 
success!
You should be like me when i submit my on-call sheets
do it literally the earliest you can
cuz otherwise you'll forget and miss out on that sweet sweet holla dolla
 
11:05 AM
@CaptainSquirrel :(
he is so rude
 
Lets try something
@Harry if you appear before 11:20, i'll make you an RO
for 5 minutes
 
@CaptainObvious all dreams and hopes shatter
 
Nah fuck it
He's not gonna do it, give it him for the day
 
Well the 5 minutes bit won't show in his notif
soooooo
#Loophole
 
Jack, hmmm
 
11:07 AM
Is that even English?
 
oh wait o
 
I don't understand how he's so broken
I might take a look at him tonight
 
You should, you wrote him
 
Yeah, but i've not touched the code in god knows how long
 
he probably became friends with wietbot
now hes messed up
 
11:07 AM
Seems legit
 
There's probably an escape character somewhere, because even the commands command doesn't work
like at all
Jack, commands
see?
 
Why not just open the json in notepad++ or something
 
because i have to remote onto the server
and figure that shit out
 
I HAVE WORK TO DO OK
 
11:09 AM
soz abar you
 
excuse me?
did you sneeze?
 
great..
 
@CaptainObvious what does this even mean
 
Wow
I thought you lived in Liverpool (and surrounding areas)
 
I thought you understood the scousisms
 
And i've never heard that
 
You're more plastic than me
 
I mean you say that, but there are also scousers that don't know what "Paddys Wigwam" is
@CaptainObvious you are not allowed to google that
 
11:13 AM
Wut
I know paddys wigwam
We were talking about it a few weeks back
 
gud
But yeah, there are people that have lived in liverpool all their lives
and never heard that phrase
 
Weirdos
@Harry the RO carrot is about to go out of reach
we can't dangle it forever. You gotta bite
What a willy
 
11:33 AM
@CaptainSquirrel i came earlier but left bc you were boring me
not you specifically but in general
 
He wasn't even here
What an absolute weapon
 
your mum
 
Im the wat man
 
11:34 AM
nana nana nana nana
nana nana nana nana
WAT MAN
 
:D
Jack,~ "test"
Hm...
@CaptainSquirrel can jack eval and execute jabascribt?
 
Jack is a lil broken
 
Hello guys, I have been trying to spawn a form with backgroundworker, but its GUI freeze. I have been making some errors that I don't know, any suggestions about the proper usage of backgroundworker?
 
@Squirrelintraining no
I planned to add something like that but i've not got round to it
 
@Alper WinForms?
 
11:36 AM
AKA i'm lazy
 
@Harry And you are too late to claim your RO
 
In fairness he has no reason to touch jacascript
 
@Squirrelintraining Yes, winForms
 
@Alper You're fucked :D
 
11:36 AM
Did you makme sure to do the longrunning task on the DoWork event of the worker
 
But seriously, I have no idea, there is to little information on your behalf.
It could be that you UI Thread is waiting for the BW or anything in that direction.
 
In fairness, the backgroundworker is part of System.ComponentModel so you can use it wherever you like
 
@Squirrelintraining I know, right? I just simply want a loading screen and cancel button for a big ugly Form. Previous owner of this tool have no idea about c# and proper coding so it is complete spaghetti code. Code has goto in it :D
 
@CaptainSquirrel oh no...what a shame
 
@Harry listen her u lil shit
2
 
11:39 AM
He's a bad boi
 
I mean, it is to be expected of a yung boi
 
ouch
Welp good luck with that my friend :D
 
bad bois bad bois
what you gonna do
what you gonna do
when the roach come for you
2
 
am doin' a hunger bois
this is not gud
 
Damn programs flow is so funky, I cant do a proper backgroundworker. It is actually very easy for simple program.
 
11:40 AM
I've just had some special K so I'm not hungers
 
ive just had a load of fruit
 
@Alper if the program wasn't written with multithreading in mind, you're wasting your time trying to jam it in
 
banana
grapes
plum
 
What about apl
 
lovely lovely
no apl
 
11:41 AM
y no apl
 
i dont like apl
 
y u no apl
 
i lik apl
 
banan
i like banan
 
11:41 AM
@CaptainObvious Dude has goto in code, Might he have multithread in his mind?
 
apl is gud
u shud hav
 
brb
eatin apl
 
we hav apl
 
bad bois rollin
 
i lik banan nd grap
 
11:43 AM
lil bby apl
 
@CaptainObvious lel
 
we hav thos bby apl
 
how is that ebay repricing go
 
Mate
Fucking ebay APIs
 
11:44 AM
u werk for ebay?
 
God no
 
gud
 
|WHERE DO YOU WORK
 
birmingham
 
lol
Imagine working with a load of bummies
 
11:45 AM
the best thing about working in birmingham is being able to leave it every day
 
:D
Every and any day ?
 
i like leaving birmingham
i dont like being in birmingham
 
But you also have to enter it everyday
 
You are a wizard harry
 
@CaptainObvious that is a sad thing, yes
 
11:49 AM
God, I hate c# so much sometimes, I hope I get a decent Python job and will switch to it
God praise the creator of Python
 
nono
you hate the person who wrote what you're working on
There's nothing wrong with C#
 
I would describe the person with its nation but it would be racism so I cant
 
I hate the awful coders
It was 17k code line in the Form1.cs
 
11:51 AM
What the fuck
 
@CaptainObvious Exactly
 
something something indian coders
 
Mostly generated code?
 
@DKDhilip Awful things about this, it is not generated
 
11:52 AM
Most of my worst code has been refactored and rewritten now
 
mr5
@CaptainObvious ur monitor have autism
 
@CaptainSquirrel Yes, that is right
 
@Alper 17k lines in one class wtf
 
mr5
"ebayrepricer" does it mean retail?
 
The worst one I can think of right now is a 2600line hand written vb.net form. It's fucntional but not great
It means ebay repricer. Or a repricer, for ebay (listings)
 
mr5
11:53 AM
@Alper that's called God Form1.cs. it knows too much
 
There is no God
 
@MwBakker It is currently 15.5k, thanks to me. It is still awful though. It has a lot of classes inside same files, a lot of different class files, a lot of Forms and god knows what the fuck is going on. It is actually working too :D
17.5k to 15.5k
I think I have made 10k changes on whole project from the start
 
My worst thing is something which was used very often
It was a really simple select data from sql database and get it. Except the way it returned was horrible
It's since been removed but oh boy was it gabage
 
Now I am trying to wrap all the actions to make a runtime loading screen with cancel button :D
 
Good luck
 
11:56 AM
I think I might quit
 
I have a 50+ full partial god object of program.cs
 
Be a hero, fight the monster...
 
creator claim this is most excellent architecture in the world
 
Best architecture is no architecture at all
 
@nyconing Suggest his mightiness a decent design pattern book to read lmao
 

« first day (3385 days earlier)      last day (1546 days later) »