So the web is pretty advanced...
-
So highly advanced even that after 24 years of HTML and who knows how many versions and framework after framework and the second full installment of Angular that is developed and supported by one of the biggest tech companies in the world with the first major update A FRIGGIN DATE INPUT STILL DOESN'T WORK!!! :mad: :wtf: :omg: So I'm doing a simple web site using Angular 4. The following just does not work.
And in my TypeScript:
this.myDate = someInitialDate;
This is pretty basic stuff if you ask me :wtf: I've been looking for a fix for over an hour, but I've come across sketchy solutions that seem to work until you enter some value manually. It seems the only solution is to use some third party date input control. If I knew how to import one using .NET Core, npm, WebPack, TypeScript and Angular imports... Sounds easy, but it gets downloaded to node_modules/some_datepicker, but also needs node_modules/something_else, it's all in TypeScript, I need to move it using WebPack because node_modules isn't public, but WebPack makes bundles, so I'd lose my single file, which I need in the TypeScript import to register it in Angular... :sigh: I miss WinForms! :((
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
So highly advanced even that after 24 years of HTML and who knows how many versions and framework after framework and the second full installment of Angular that is developed and supported by one of the biggest tech companies in the world with the first major update A FRIGGIN DATE INPUT STILL DOESN'T WORK!!! :mad: :wtf: :omg: So I'm doing a simple web site using Angular 4. The following just does not work.
And in my TypeScript:
this.myDate = someInitialDate;
This is pretty basic stuff if you ask me :wtf: I've been looking for a fix for over an hour, but I've come across sketchy solutions that seem to work until you enter some value manually. It seems the only solution is to use some third party date input control. If I knew how to import one using .NET Core, npm, WebPack, TypeScript and Angular imports... Sounds easy, but it gets downloaded to node_modules/some_datepicker, but also needs node_modules/something_else, it's all in TypeScript, I need to move it using WebPack because node_modules isn't public, but WebPack makes bundles, so I'd lose my single file, which I need in the TypeScript import to register it in Angular... :sigh: I miss WinForms! :((
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
Come back to WinForms. (We all float down here.)
-
Come back to WinForms. (We all float down here.)
PIEBALDconsult wrote:
Come back to WinForms.
Yes, with winforms, at least all the bad stuff is _known_! :laugh: That's why we (older) devs really love winforms. Because, when we were using winforms we were complaining about winforms too. As a matter of fact, I (and I'm not kidding) submitted a bug on the Date/Calendar control for WinForms. EDIT - It's MonthCalendar control - couldn't remember name of that thing. Here's how it went. WinForm DatePicker Bug (undocumented feature) When my winform was sitting there doing nothing, I found out an event was being fired every 15 seconds. As I investigated I discovered (an undocumented feature) a bug where the Calendar datepicker in WINFORMS! actually created a timer that would run the OnDateChanged() event every 15 seconds. The crazy thing was that it wasn't really OnDateChanged() because the date hadn't changed. But think about this ===> What if the winform app is running and the date changes? Well, that means the little icon that you can click that takes you to "Today" would be incorrect. EDIT 3 -- Found an old report of this problem (MonthCalendar -> automatic execution of dateChanged event-VBForums[^]) So the Microsoft control devs, went ahead and added a timer (unbeknownst to most devs) that would run every 15 120 seconds in an effort to determine if the date had changed. However, that would be okay, if it were the : OnCHECKForChangedDate() event, but it wasn't. That meant that even though the date did not change my code for DateChanged() would run. EDIT 2 -- looks like they have fixed it now...well, 8 years ago!! :-D It was quite terrible and on WinForms DatePicker(). It's still there too. I had to then check if the date had actually changed. Alas. Alas... Winforms bit us often too. :rolleyes:
-
PIEBALDconsult wrote:
Come back to WinForms.
Yes, with winforms, at least all the bad stuff is _known_! :laugh: That's why we (older) devs really love winforms. Because, when we were using winforms we were complaining about winforms too. As a matter of fact, I (and I'm not kidding) submitted a bug on the Date/Calendar control for WinForms. EDIT - It's MonthCalendar control - couldn't remember name of that thing. Here's how it went. WinForm DatePicker Bug (undocumented feature) When my winform was sitting there doing nothing, I found out an event was being fired every 15 seconds. As I investigated I discovered (an undocumented feature) a bug where the Calendar datepicker in WINFORMS! actually created a timer that would run the OnDateChanged() event every 15 seconds. The crazy thing was that it wasn't really OnDateChanged() because the date hadn't changed. But think about this ===> What if the winform app is running and the date changes? Well, that means the little icon that you can click that takes you to "Today" would be incorrect. EDIT 3 -- Found an old report of this problem (MonthCalendar -> automatic execution of dateChanged event-VBForums[^]) So the Microsoft control devs, went ahead and added a timer (unbeknownst to most devs) that would run every 15 120 seconds in an effort to determine if the date had changed. However, that would be okay, if it were the : OnCHECKForChangedDate() event, but it wasn't. That meant that even though the date did not change my code for DateChanged() would run. EDIT 2 -- looks like they have fixed it now...well, 8 years ago!! :-D It was quite terrible and on WinForms DatePicker(). It's still there too. I had to then check if the date had actually changed. Alas. Alas... Winforms bit us often too. :rolleyes:
I use TreeViews quite a bit. Awesome things TreeViews. And I like to have a timer to refresh them (database query in the background, then update the TreeNodes' Color, Text, etc.). Cross-thread issue not a problem. BUT! Two things... Scrolling problems. Resolved after a brief online search. Setting the SelectedNode ensures that the node is visible. So, if the user selects a node, then collapses that branch, the next refresh uncollapses the branch! That took a bit of pounding to nail down.
-
I use TreeViews quite a bit. Awesome things TreeViews. And I like to have a timer to refresh them (database query in the background, then update the TreeNodes' Color, Text, etc.). Cross-thread issue not a problem. BUT! Two things... Scrolling problems. Resolved after a brief online search. Setting the SelectedNode ensures that the node is visible. So, if the user selects a node, then collapses that branch, the next refresh uncollapses the branch! That took a bit of pounding to nail down.
-
Come back to WinForms. (We all float down here.)
PIEBALDconsult wrote:
Come back to WinForms.
No thanks... WPF is far friendlier, flexible, and more universal... ;)
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
-
PIEBALDconsult wrote:
Come back to WinForms.
No thanks... WPF is far friendlier, flexible, and more universal... ;)
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
Graeme_Grant wrote:
WPF is far friendlier
That I can agree with but
Graeme_Grant wrote:
more universal
where does that come from?
Never underestimate the power of human stupidity RAH
-
Graeme_Grant wrote:
WPF is far friendlier
That I can agree with but
Graeme_Grant wrote:
more universal
where does that come from?
Never underestimate the power of human stupidity RAH
Mycroft Holmes wrote:
where does that come from?
Standards across all .Net platforms: 1. Xaml - whilst not identical (currently) across all platforms that use Xaml, it is tansferrable. 2. MVVM pattern - see point 1. WinForm is a unicorn when compared to WPF... ;P
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
-
Angular! Say no more! To be fair most web stuff is crap... It's not their fault, developing interacting app on stuff that only render text almost like one want is not that easy... Anyway try that: [Vue.js](https://vuejs.org/) you might be pleasantly surprised! :)
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
Super Lloyd wrote:
Anyway try that: Vue.js you might be pleasantly surprised! :)
Yep, the best way to solve the internet issues is to focus on the next Framework.
Paulo Gomes Measuring programming progress by lines of code is like measuring aircraft building progress by weight. —Bill Gates Everything should be made as simple as possible, but not simpler. —Albert Einstein
-
So highly advanced even that after 24 years of HTML and who knows how many versions and framework after framework and the second full installment of Angular that is developed and supported by one of the biggest tech companies in the world with the first major update A FRIGGIN DATE INPUT STILL DOESN'T WORK!!! :mad: :wtf: :omg: So I'm doing a simple web site using Angular 4. The following just does not work.
And in my TypeScript:
this.myDate = someInitialDate;
This is pretty basic stuff if you ask me :wtf: I've been looking for a fix for over an hour, but I've come across sketchy solutions that seem to work until you enter some value manually. It seems the only solution is to use some third party date input control. If I knew how to import one using .NET Core, npm, WebPack, TypeScript and Angular imports... Sounds easy, but it gets downloaded to node_modules/some_datepicker, but also needs node_modules/something_else, it's all in TypeScript, I need to move it using WebPack because node_modules isn't public, but WebPack makes bundles, so I'd lose my single file, which I need in the TypeScript import to register it in Angular... :sigh: I miss WinForms! :((
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
I am so glad that I'm out of web dev for the moment...
-
So highly advanced even that after 24 years of HTML and who knows how many versions and framework after framework and the second full installment of Angular that is developed and supported by one of the biggest tech companies in the world with the first major update A FRIGGIN DATE INPUT STILL DOESN'T WORK!!! :mad: :wtf: :omg: So I'm doing a simple web site using Angular 4. The following just does not work.
And in my TypeScript:
this.myDate = someInitialDate;
This is pretty basic stuff if you ask me :wtf: I've been looking for a fix for over an hour, but I've come across sketchy solutions that seem to work until you enter some value manually. It seems the only solution is to use some third party date input control. If I knew how to import one using .NET Core, npm, WebPack, TypeScript and Angular imports... Sounds easy, but it gets downloaded to node_modules/some_datepicker, but also needs node_modules/something_else, it's all in TypeScript, I need to move it using WebPack because node_modules isn't public, but WebPack makes bundles, so I'd lose my single file, which I need in the TypeScript import to register it in Angular... :sigh: I miss WinForms! :((
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
I just use straight javaScript. No frills. Just roll my own. Try it - you'll like it. Just think of it as craftsmanship vs. hobbyist. As wood vs. particle board.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
-
PIEBALDconsult wrote:
Come back to WinForms.
No thanks... WPF is far friendlier, flexible, and more universal... ;)
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
Graeme_Grant wrote:
WPF is far friendlier
Yeah, like an ex-wife is "far friendlier." ;)
Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
I just use straight javaScript. No frills. Just roll my own. Try it - you'll like it. Just think of it as craftsmanship vs. hobbyist. As wood vs. particle board.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
W∴ Balboos wrote:
I just use straight javaScript.
Amen to that! :)
Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
So highly advanced even that after 24 years of HTML and who knows how many versions and framework after framework and the second full installment of Angular that is developed and supported by one of the biggest tech companies in the world with the first major update A FRIGGIN DATE INPUT STILL DOESN'T WORK!!! :mad: :wtf: :omg: So I'm doing a simple web site using Angular 4. The following just does not work.
And in my TypeScript:
this.myDate = someInitialDate;
This is pretty basic stuff if you ask me :wtf: I've been looking for a fix for over an hour, but I've come across sketchy solutions that seem to work until you enter some value manually. It seems the only solution is to use some third party date input control. If I knew how to import one using .NET Core, npm, WebPack, TypeScript and Angular imports... Sounds easy, but it gets downloaded to node_modules/some_datepicker, but also needs node_modules/something_else, it's all in TypeScript, I need to move it using WebPack because node_modules isn't public, but WebPack makes bundles, so I'd lose my single file, which I need in the TypeScript import to register it in Angular... :sigh: I miss WinForms! :((
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
See http://momentjs.com/docs/ for formatting codes. Moment is now installed by default with the Angular 2 quickstart. To use moment with Angular 2, you must do the following: 1. Add the following line to the top of any *.ts file that uses moment: import * as moment from 'moment'; 2. Add the following line to the map object of systemjs.config.js: 'moment': 'node_modules/moment/moment.js', OR (using a predefined path in systemjs): 'moment': 'npm:moment/moment.js' Example: var d: string; var m = moment(d); if (m.isValid()) { return m.format("YYYY-MM-DD hh:mm a"); }
-
Look at that: the tool chain that made me drop Angular like a bad habit. Enjoy the hipster stuff!
"There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli
Yeah, that's front-end development in 2017 I guess... :doh:
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
Angular! Say no more! To be fair most web stuff is crap... It's not their fault, developing interacting app on stuff that only render text almost like one want is not that easy... Anyway try that: [Vue.js](https://vuejs.org/) you might be pleasantly surprised! :)
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
Yeah, I've heard good things about Vue.js. I actually recommended it to a coworker who wanted to introduce some JS framework in a fairly complicated and existing project. I mainly chose Angular because I'm expecting my software to become more complicated. And because businesses want Angular and it's a good learning experience.
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
Quote:
So I'm doing a simple web site using Angular 4
If it's a simple website, why use Angular at all? Sledgehammes and nuts, and all that....
I'm expecting the app to grow bigger :) Besides, it's a nice learning experience!
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
I just use straight javaScript. No frills. Just roll my own. Try it - you'll like it. Just think of it as craftsmanship vs. hobbyist. As wood vs. particle board.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
Yeah, great idea... Do all the DOM work manually. If typing boilerplate code is what you'd like to spend waste your time on :~ Besides, that isn't really managing your complexity, it's just adding more! (syncing events and all that). Well, ok, I'm wasting it on some simple DatePicker, but I'm pretty sure "vanilla" JS has date issues too :)
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
See http://momentjs.com/docs/ for formatting codes. Moment is now installed by default with the Angular 2 quickstart. To use moment with Angular 2, you must do the following: 1. Add the following line to the top of any *.ts file that uses moment: import * as moment from 'moment'; 2. Add the following line to the map object of systemjs.config.js: 'moment': 'node_modules/moment/moment.js', OR (using a predefined path in systemjs): 'moment': 'npm:moment/moment.js' Example: var d: string; var m = moment(d); if (m.isValid()) { return m.format("YYYY-MM-DD hh:mm a"); }
Yeah, I know of Moment.js, great library! The issue isn't so much with the date as it is with the input element and binding though ;)
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
Yeah, great idea... Do all the DOM work manually. If typing boilerplate code is what you'd like to spend waste your time on :~ Besides, that isn't really managing your complexity, it's just adding more! (syncing events and all that). Well, ok, I'm wasting it on some simple DatePicker, but I'm pretty sure "vanilla" JS has date issues too :)
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
Sander Rossel wrote:
Do all the DOM work manually.
You could say that about any type of coding. You create little script libraries - purposed for whatever you need - and call them in your header, as needed. So - you don't keep reinventing the wheel - you just do a really good job of it and keep reusing it - AND - since you made it yourself - you can modify it, derive from it, and all that neat stuff at your leisure.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010