|
raddevus wrote: I've found this to be true on Win Forms I happen to like it on WinForms.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: I happen to like it on WinForms
Well, I'm trying to be controversial.
I will continue that here.
I've found it to be quite buggy. I think that problem where if you set the datasource and displayname and displayvalue in the wrong order then your form crashes.
Also, I do have some droplist controls that are bound to data that comes back from sql queries and they get filled, but it is not a very elegant solution. but I guess it works.
The last thing though is...it's winforms. WinForms are dead. These controls were last updated in Win95 (maybe WinNT 4) Stop developing them.
I'm just joking around, but I'm kind of serious too.
Plus, I'm just saying that databinding hasn't been solved anywhere (except maybe Angular -- two-way binding is very smooth) very nicely.
I'm sure I've convinced you now that databinding is garbage and you'll join the movement, right?
|
|
|
|
|
raddevus wrote: I've found it to be quite buggy. I think that problem where if you set the datasource and displayname and displayvalue in the wrong order then your form crashes. I have that with ADO. Put the ExecuteNonQuery before the addition of the parameters, and it won't even crash.
raddevus wrote: The last thing though is...it's winforms. WinForms are dead. These controls were last updated in Win95 (maybe WinNT 4) Stop developing them. It's not dead where I'm standing; WPF is not available on Linux, and there's no other rich GUI to equal it. The common controls have been updated in every version of Windows, which is why the common controls do not show the big fat bevel we had in Win3.0.
raddevus wrote: I'm just joking around, but I'm kind of serious too. Lots of people came with expressions that X is dead and being seriously jokers.
raddevus wrote: I'm sure I've convinced you now that databinding is garbage and you'll join the movement, right? Except in WinForms and Angular. Which are the only places that matter
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I've been using data binding on web forms for a dozen years or so. Works perfectly fine for me.
So no, I won't join your movement. I wouldn't join any club that would accept me as a member.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
I upvoted you, because if you're talking about ASP.NET MVC you are right.
Model binding does work quite well.
If you're not talking about that, let me know and I will mark your message as spam.
|
|
|
|
|
Do I lose points if I'm talking about web forms, not MVC?
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
TNCaver wrote: Do I lose points if I'm talking about web forms, not MVC?
Yes, in that case, you lose major points.
Better just keep it quiet.
|
|
|
|
|
Buggy? Not at all. I'm sure it's a feature, whatever you may have seen.
Like a checkbox not being bound when you initialy have set Visible to false and not being able to bind the same flag in the data to visible to make the checkbox reappear for old datarows that have this checkmark set. I'm sure this behavior has some useful purpose, even if I can't really say which.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Works well enough in Xaml!
|
|
|
|
|
I've used it with WinForms, Knockout.js, AngularJS, and Vue.js.
It works fine most of the time.
Sure beats having to do everything manually!
Maybe you're the problem?
|
|
|
|
|
Sander Rossel wrote: I've used it
Sander Rossel wrote: It works fine
Yes, yes, for the cookie cutter basics of amateur code it does seem to work fine. I agree.
It's the professional code that is a bit more than copy/paste that I'm talking about.
Maybe you haven't experienced any of that?
Am I funny yet?
|
|
|
|
|
raddevus wrote: Am I funny yet? "Sad" is the word you're looking for...
Seriously though, data binding isn't some magic bullet that solves all your problems, but it's a lot better, in WinForms and HTML, to have your input data being synced with your back-end "automagically" rather than having to do it all by hand.
And yes, there are rules, and in some edge cases you're better off not data binding at all.
If used wrong your application can turn into a binding mess that forces your application to a grinding halt.
But once you've got it down it's really not that difficult and it can really save you a lot of time and effort.
Especially in the easy forms it's a must-have.
|
|
|
|
|
Sander Rossel wrote: Seriously though, data binding isn't some magic bullet that solves all your problems
Oh, but it is sold that way by every framework.
Sander Rossel wrote: but it's a lot better, in WinForms
And that's not saying much. But it's just kind'a ugly.
Sander Rossel wrote: And yes, there are rules, and in some edge cases you're better off not data binding at all.
That's a very good point and actually one I was attempting to point out that most of the frameworks and training related to binding does not point out. They generally pass the knowledge like it is a panacea.
Sander Rossel wrote: But once you've got it down it's really not that difficult and it can really save you a lot of time and effort.
I do agree with that. I just wished it worked a bit better and was implemented a bit better in most places.
Maybe I got spoiled from the way two-way binding works so well in Angular?? Probably.
|
|
|
|
|
|
I knew there was somebody out there!! I knew it!!!
My real point is that every (so many) framework acts like databinding works perfectly, but then it doesn't.
|
|
|
|
|
My problem with Angular is that I don't know why they call it Angular since it is something entirely different and how long it will last until the next ground-breaking roll out. Emphasis on breaking.
modified 20-Oct-19 21:02pm.
|
|
|
|
|
Yeah, we were getting very close to doing angular when it was at rev 1.x or 2.x or whatever. Then they had that "4.x Will Change Everything" announcement and we left it behind.
|
|
|
|
|
We have today discovered that there are three well-known bit positions within any binary value:
LSB - Least Significant Bit
MSB - Most Significant Bit
RSB - Random Sh<nobr>it Bit
Software Zen: delete this;
|
|
|
|
|
My eyes are playing tricks on me! I read that last one as Random Shift Bit! Now it makes sense!
"Go forth into the source" - Neal Morse
|
|
|
|
|
kmoorevs wrote: Random Shift Bit That one works too at times.
Software Zen: delete this;
|
|
|
|
|
Those newsletter taglines are hilarious, this is my favorite:
Quote: This robotic finger attachment for your smartphone will gently caress your hand
Right. That's definitely what it's for.
HAHA! Now I wanna buy the robotic finger so it can "caress my hand"
Here's the other golden one:
Quote: Microsoft says they can recover files deleted by Windows 10 October 2018 Update
They'll post them all to a SharePoint file share. Please only download your files.
I can honestly imagine someone going into another person's folder trying to download their files
"Dreams really do come true."
|
|
|
|
|
All Day Coder wrote: HAHA! Now I wanna buy the robotic finger so it can "caress my hand"
In reality, it's designed for the coming Siri-Apple Health integration; No need to embarass yourself in front of a human being when getting a prostate exam.
I only have a signature in order to let @DalekDave follow my posts.
|
|
|
|
|
0) Got a used Intel NUC (i3 dual core, 4GB DDR, 60GB SSD), swapped in a new 250GB SSD and doubled the RAM), installed Lubuntu 18.04 and Kodi, and have started configuring Kodi to see/use the Windows box that hosts the media (soon to be a linux box).
1) Installed Ubuntu on three laptops of various ages. Wireless doesn't work on the two oldest ones, so I'm still working on that.
2) Have two Raspberry Pi booting Raspian from a 32GB thumb drive, used as Pi-Hole DNS servers to block ads (and doing a bang-up job I might add)
3) One Kubuntu linux desktop box just sitting there on my server rack. I'm going to reinstall an OS on it - probably ubuntu minimal...
4) Will migrate my desktop to Ubuntu in the next week, followed by the wife's desktop, and finally the two media servers.
I'll end up with only one Windows box for SQL Server and intranet IIS duties.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
You don't need Windows for Sql Server...we use Sql Server 2017, which is the version that runs on Linux. Much faster install than on Windows.
|
|
|
|
|
Talking about SQL Server, we don't need it anymore, except some stubborn customers who refuse to use PostgreSQL
|
|
|
|