Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. So the web is pretty advanced...

So the web is pretty advanced...

Scheduled Pinned Locked Moved The Lounge
csharpjavascripthtmlasp-netdatabase
31 Posts 15 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W W Balboos GHB

    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.

    Ravings en masse^

    "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

    Sander RosselS Offline
    Sander RosselS Offline
    Sander Rossel
    wrote on last edited by
    #21

    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

    W 1 Reply Last reply
    0
    • B Bruce Patin

      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"); }

      Sander RosselS Offline
      Sander RosselS Offline
      Sander Rossel
      wrote on last edited by
      #22

      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

      1 Reply Last reply
      0
      • Sander RosselS Sander Rossel

        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

        W Offline
        W Offline
        W Balboos GHB
        wrote on last edited by
        #23

        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.

        Ravings en masse^

        "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

        D 1 Reply Last reply
        0
        • Sander RosselS Sander Rossel

          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

          S Offline
          S Offline
          Super Lloyd
          wrote on last edited by
          #24

          I dunno about Angular 2, but Angular 1 is needlessly complicated... The end results is that you have bugs and issue in relatively common component that are left unfixed for quite a long time... I get if the business wants it well you probably can't do much about it and just suck it up and move on. Anyway, just to I told you so, I would argue the following. What does AngularJS bring that is worth? - MVVM. VueJS does it much better, simpler and better performance - Auto downloading of component (HTML) template and related component's javascript. Ok this one is nice. Probably can be written from scratch without too much effort or replicated with requirejs, or maybe bundle everything ASP.NET MVC style - dependency injection. While this is a nice technical achievement it's not that big a deal. And then what Angular drag you down with: Complexity, foloows by long standing bug in main components....

          A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

          Sander RosselS 1 Reply Last reply
          0
          • S Super Lloyd

            I dunno about Angular 2, but Angular 1 is needlessly complicated... The end results is that you have bugs and issue in relatively common component that are left unfixed for quite a long time... I get if the business wants it well you probably can't do much about it and just suck it up and move on. Anyway, just to I told you so, I would argue the following. What does AngularJS bring that is worth? - MVVM. VueJS does it much better, simpler and better performance - Auto downloading of component (HTML) template and related component's javascript. Ok this one is nice. Probably can be written from scratch without too much effort or replicated with requirejs, or maybe bundle everything ASP.NET MVC style - dependency injection. While this is a nice technical achievement it's not that big a deal. And then what Angular drag you down with: Complexity, foloows by long standing bug in main components....

            A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

            Sander RosselS Offline
            Sander RosselS Offline
            Sander Rossel
            wrote on last edited by
            #25

            Yeah, you may have convinced me... Angular 4 is a drag. I've lost two nights trying to get that friggin' datepicker to work. I'm not a big fan of TypeScript either, appears I favor less typing over type safety in JavaScript. I'll have a look at ReactJS as well.

            Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly

            S 1 Reply Last reply
            0
            • Sander RosselS Sander Rossel

              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

              N Offline
              N Offline
              Nathan Minier
              wrote on last edited by
              #26

              It's the noisiest part of it. I don't know, it's as if increasingly interdependent tool chains have become a status symbol of sorts. It's a pity, because Angular 1 is absolutely fantastic, as are a lot of the first generation frameworks that we've seen, but as they become an "industry standard" the developers begin losing their minds. I'm beginning to suspect that this is happening because so much of the open source monetization strategy is rooted in training.

              "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

              1 Reply Last reply
              0
              • Sander RosselS Sander Rossel

                Yeah, you may have convinced me... Angular 4 is a drag. I've lost two nights trying to get that friggin' datepicker to work. I'm not a big fan of TypeScript either, appears I favor less typing over type safety in JavaScript. I'll have a look at ReactJS as well.

                Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly

                S Offline
                S Offline
                Super Lloyd
                wrote on last edited by
                #27

                nice! :) Yeah I had problem in Angular with a datetime picker too, haha. I quite like TypeScript, I thought it really doesn't constrain me much at all. But if it does bother you occasionally just make your variable any type. If it bother you often drop it. But I am surprised that it does... Although if you are the one that brings it to the company I could understand that you have learning curve issues.... godspeed!

                A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                1 Reply Last reply
                0
                • M Marc Clifton

                  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

                  Graeme_GrantG Offline
                  Graeme_GrantG Offline
                  Graeme_Grant
                  wrote on last edited by
                  #28

                  Marc Clifton wrote:

                  ex-wife is "far friendlier."

                  I would expect a comment like this from an old WinForm programmer... In what reality??? ;)

                  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

                  1 Reply Last reply
                  0
                  • N Nathan Minier

                    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

                    J Offline
                    J Offline
                    Jeremy Falcon
                    wrote on last edited by
                    #29

                    Nathan Minier wrote:

                    Enjoy the hipster stuff!

                    :-D :-D :-D :thumbsup:

                    Jeremy Falcon

                    1 Reply Last reply
                    0
                    • W W Balboos GHB

                      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.

                      Ravings en masse^

                      "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

                      D Offline
                      D Offline
                      dazinator
                      wrote on last edited by
                      #30

                      This is how frameworks arise. Reusable libraries (often opinionated) to accomplish things with less effort. So you are basically advocating framework usage, even if its your own in this instance. Perhaps you should document and release it, get it unit tested, open sourced and peer reviewed and then it might be up to standard with some of the other more modern frameworks that are already out there!

                      W 1 Reply Last reply
                      0
                      • D dazinator

                        This is how frameworks arise. Reusable libraries (often opinionated) to accomplish things with less effort. So you are basically advocating framework usage, even if its your own in this instance. Perhaps you should document and release it, get it unit tested, open sourced and peer reviewed and then it might be up to standard with some of the other more modern frameworks that are already out there!

                        W Offline
                        W Offline
                        W Balboos GHB
                        wrote on last edited by
                        #31

                        dazinator wrote:

                        Perhaps you should document and release it, get it unit tested, open sourced and peer reviewed and then it might be up to standard with some of the other more modern frameworks that are already out there!

                        It's mine - mine- all mine . . . and unlike the frameworks you appear to (implicitly) champion , they are totally obedient to my needs - always. Why would I want to become part of the problem, feeding the crowd of the ill equipped posting to Q&A ?

                        Ravings en masse^

                        "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

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups