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 tired of programming the same crap

So tired of programming the same crap

Scheduled Pinned Locked Moved The Lounge
csharp
24 Posts 20 Posters 0 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.
  • V Vasily Tserekh

    yes the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework :((

    S Offline
    S Offline
    Sentenryu
    wrote on last edited by
    #2

    Please, don't. i had enough of frameworks by here, there's even a framework to create frameworks :sigh:

    I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

    OriginalGriffO Y C 3 Replies Last reply
    0
    • S Sentenryu

      Please, don't. i had enough of frameworks by here, there's even a framework to create frameworks :sigh:

      I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #3

      Ah! So we need a Framework for creating framework creating framework creators. Good. Can you do the validation code?

      If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      J 1 Reply Last reply
      0
      • V Vasily Tserekh

        yes the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework :((

        N Offline
        N Offline
        NormDroid
        wrote on last edited by
        #4

        I'm just finishing an app which allows you to drop files from the Noun Project, allows to customize foreground and background colours and allows you to export as an image. Interesting yes, I'll be publishing the app free of charge on my website soon.

        Software Kinetics - Dependable Software news

        1 Reply Last reply
        0
        • V Vasily Tserekh

          yes the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework :((

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #5

          Doing the same old same old can be mind numbingly tedious. Sounds like it's about time for you to look for an opportunity in a completely different field. I'm not talking about leaving coding, I'm talking about working in a company doing a different type of work.

          *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

          "Mind bleach! Send me mind bleach!" - Nagy Vilmos

          CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

          D 1 Reply Last reply
          0
          • P Pete OHanlon

            Doing the same old same old can be mind numbingly tedious. Sounds like it's about time for you to look for an opportunity in a completely different field. I'm not talking about leaving coding, I'm talking about working in a company doing a different type of work.

            *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

            "Mind bleach! Send me mind bleach!" - Nagy Vilmos

            CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

            D Offline
            D Offline
            dexterama
            wrote on last edited by
            #6

            Agreed - I did the same - looked for a better gig (and found it). My new boss just told me yesterday, "your job is to create intellectual property." Sure beats redundant tasks. Let your boss know you're bored - they'd rather keep you in a new role (most likely) than lose you.

            Think of how stupid the average person is, and realize half of them are stupider than that. - George Carlin

            1 Reply Last reply
            0
            • V Vasily Tserekh

              yes the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework :((

              M Offline
              M Offline
              Marc Clifton
              wrote on last edited by
              #7

              Vasily Tserekh wrote:

              the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework

              [toot] Well, what I ended up doing, since the fields are bound to DB fields, is generating the UI automatically from the view schema and using native validation supported by the DataTable class and regex validation or custom validation for things not supported by the native DataTable/DataColumn class. One place (the schema) defines all the validation and I never have to do this "by hand" again. The generated UI serializes to XML so I can then go into a form designer and do any customization to the UI. [/toot] :jig: Marc

              Reverse Engineering Legacy Applications
              How To Think Like a Functional Programmer
              My Blog
              Computational Types in C# and F#

              1 Reply Last reply
              0
              • V Vasily Tserekh

                yes the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework :((

                T Offline
                T Offline
                thrakazog
                wrote on last edited by
                #8

                “Oh, you hate your job? Why didn't you say so? There's a support group for that. It's called EVERYBODY, and they meet at the bar.” Drew Carey. Every day job I've had that was new and exciting at one point always ended up being just the boring old day job later on. The annoyances may change but always show up eventually. The only exception I ever found was working for my self. I should really give that another try :-D

                Play my game Gravity: IOS[^], Android[^], Windows Phone 7[^]

                D B 2 Replies Last reply
                0
                • V Vasily Tserekh

                  yes the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework :((

                  R Offline
                  R Offline
                  Ravi Bhavnani
                  wrote on last edited by
                  #9

                  Vasily Tserekh wrote:

                  I am about to build a validation framework :((

                  Can you use this[^] existing framework? /ravi

                  My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                  1 Reply Last reply
                  0
                  • OriginalGriffO OriginalGriff

                    Ah! So we need a Framework for creating framework creating framework creators. Good. Can you do the validation code?

                    If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

                    J Offline
                    J Offline
                    Judah Gabriel Himango
                    wrote on last edited by
                    #10

                    Don't do that, please! Use the factory pattern instead.

                    AbstractFrameworkFactory.Create(new FrameworkFactoryCreatorFactory>());

                    My Messianic Jewish blog: Kineti L'Tziyon My software blog: Debugger.Break() Judah Himango

                    G J 2 Replies Last reply
                    0
                    • J Judah Gabriel Himango

                      Don't do that, please! Use the factory pattern instead.

                      AbstractFrameworkFactory.Create(new FrameworkFactoryCreatorFactory>());

                      My Messianic Jewish blog: Kineti L'Tziyon My software blog: Debugger.Break() Judah Himango

                      G Offline
                      G Offline
                      Gary R Wheeler
                      wrote on last edited by
                      #11

                      Well, there goes my desire to eat dinner.

                      Software Zen: delete this;

                      1 Reply Last reply
                      0
                      • T thrakazog

                        “Oh, you hate your job? Why didn't you say so? There's a support group for that. It's called EVERYBODY, and they meet at the bar.” Drew Carey. Every day job I've had that was new and exciting at one point always ended up being just the boring old day job later on. The annoyances may change but always show up eventually. The only exception I ever found was working for my self. I should really give that another try :-D

                        Play my game Gravity: IOS[^], Android[^], Windows Phone 7[^]

                        D Offline
                        D Offline
                        devvvy
                        wrote on last edited by
                        #12

                        thrakazog wrote:

                        Every day job I've had that was new and exciting at one point always ended up being just the boring old day job later on.

                        Those which don't typically entails much lower job security - for example, Campaign Manager for ... (whoever). New situations get thrown at you at random time and if campaign failed, which is decided by voters not you, your arse is on the line. Much more stimulating but only if job security isn't important to you.

                        dev

                        1 Reply Last reply
                        0
                        • J Judah Gabriel Himango

                          Don't do that, please! Use the factory pattern instead.

                          AbstractFrameworkFactory.Create(new FrameworkFactoryCreatorFactory>());

                          My Messianic Jewish blog: Kineti L'Tziyon My software blog: Debugger.Break() Judah Himango

                          J Offline
                          J Offline
                          Judah Gabriel Himango
                          wrote on last edited by
                          #13

                          Judah Himango wrote:

                          AbstractFrameworkFactory<FrameworkFactory>.Create(new FrameworkFactoryCreatorFactory<Framework<Factory>>());

                          Boom[^]

                          My Messianic Jewish blog: Kineti L'Tziyon My software blog: Debugger.Break() Judah Himango

                          1 Reply Last reply
                          0
                          • V Vasily Tserekh

                            yes the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework :((

                            G Offline
                            G Offline
                            grralph1
                            wrote on last edited by
                            #14

                            We all know where you are coming from. I wish that I had someone who I could delegate to perform the ad nausea ad tedium. ...but I don't. ...but if I did, then I would feel a bit guilty as well... Coding is so much fun, but it is spoilt by a lot of mundane and tedious tasks, that my dog could do equally well. Either automate it or... Just do it...Write a frameWORK... Post it on CP and you could be a hero. or Sell it to all of us and be hero like. Support it and be back to the same old mundane stuff. Lifes a beach and as the old saying goes "It wasn't meant to be easy" God I hate saying that.. Generally I find that the annoyance of the mundane is over shadowed by the interesting bits.

                            1 Reply Last reply
                            0
                            • T thrakazog

                              “Oh, you hate your job? Why didn't you say so? There's a support group for that. It's called EVERYBODY, and they meet at the bar.” Drew Carey. Every day job I've had that was new and exciting at one point always ended up being just the boring old day job later on. The annoyances may change but always show up eventually. The only exception I ever found was working for my self. I should really give that another try :-D

                              Play my game Gravity: IOS[^], Android[^], Windows Phone 7[^]

                              B Offline
                              B Offline
                              BobJanova
                              wrote on last edited by
                              #15

                              I had the same problem with working for myself after a while, too.

                              1 Reply Last reply
                              0
                              • S Sentenryu

                                Please, don't. i had enough of frameworks by here, there's even a framework to create frameworks :sigh:

                                I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

                                Y Offline
                                Y Offline
                                YvesDaoust
                                wrote on last edited by
                                #16

                                They say that one key benefit of OOP is code reuse. Should work for you too. Won't it be a refreshing experience to carefully craft that dream framework for data validation and all possible extra tools to make it integrable in a snap of the fingers ?

                                1 Reply Last reply
                                0
                                • V Vasily Tserekh

                                  yes the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework :((

                                  Y Offline
                                  Y Offline
                                  YvesDaoust
                                  wrote on last edited by
                                  #17

                                  Another approach is the philanthropic one: on every single keypress on your keyboard when you code, think of the benefit of this data validation for your end-users, possibly sparing them hours of perplexity/frustration in front of unexpected results or program crash. Also think of the smart, informative, helpful and humorous error messages you can design. And all of this in a totally gratuitous spirit. Don't code for yourself, code for them.

                                  C 1 Reply Last reply
                                  0
                                  • V Vasily Tserekh

                                    yes the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework :((

                                    C Offline
                                    C Offline
                                    ClockMeister
                                    wrote on last edited by
                                    #18

                                    Vasily Tserekh wrote:

                                    yes the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework :((

                                    Vasily, That's just one of the mundane parts of the job. Every job has some repetitive aspect to it. Try to make it cool by figuring out ways to boilerplate the process. Your validation framework is one idea. Over the years I've just used it as a challenge to figure out more efficient ways to go about it. It can still be fun if you try. -cb

                                    1 Reply Last reply
                                    0
                                    • Y YvesDaoust

                                      Another approach is the philanthropic one: on every single keypress on your keyboard when you code, think of the benefit of this data validation for your end-users, possibly sparing them hours of perplexity/frustration in front of unexpected results or program crash. Also think of the smart, informative, helpful and humorous error messages you can design. And all of this in a totally gratuitous spirit. Don't code for yourself, code for them.

                                      C Offline
                                      C Offline
                                      ClockMeister
                                      wrote on last edited by
                                      #19

                                      YvesDaoust wrote:

                                      Another approach is the philanthropic one: on every single keypress on your keyboard when you code, think of the benefit of this data validation for your end-users, possibly sparing them hours of perplexity/frustration in front of unexpected results or program crash. Also think of the smart, informative, helpful and humorous error messages you can design. And all of this in a totally gratuitous spirit. Don't code for yourself, code for them.

                                      I really like the way you put that! That's exactly the way I look at it when I'm coding up yet ANOTHER field validation event. My main coding is to a rules engine that builds employee time cards. I just remind myself that several million employees get a paycheck as a result of my work and it stays cool, even when it might otherwise be a bore. -CB :)

                                      Y 1 Reply Last reply
                                      0
                                      • C ClockMeister

                                        YvesDaoust wrote:

                                        Another approach is the philanthropic one: on every single keypress on your keyboard when you code, think of the benefit of this data validation for your end-users, possibly sparing them hours of perplexity/frustration in front of unexpected results or program crash. Also think of the smart, informative, helpful and humorous error messages you can design. And all of this in a totally gratuitous spirit. Don't code for yourself, code for them.

                                        I really like the way you put that! That's exactly the way I look at it when I'm coding up yet ANOTHER field validation event. My main coding is to a rules engine that builds employee time cards. I just remind myself that several million employees get a paycheck as a result of my work and it stays cool, even when it might otherwise be a bore. -CB :)

                                        Y Offline
                                        Y Offline
                                        YvesDaoust
                                        wrote on last edited by
                                        #20

                                        :thumbsup:

                                        1 Reply Last reply
                                        0
                                        • V Vasily Tserekh

                                          yes the usual C# form collecting data and validate if the user inputed all the fields and that the data is correct, pleeease I am about to build a validation framework :((

                                          B Offline
                                          B Offline
                                          BrainiacV
                                          wrote on last edited by
                                          #21

                                          Why don't you do what I do? Look down at the code from Olympian heights and then to discern the patterns that exist in your fields? I once took a system that had 25 fields I had to validate and decided that for 22 of them they only differences were if they were numeric or alpha, allowed truncation or not, and then I wrote a single Macro (this being back in the days of S/370 Assembler) that would generate the code for the 22, leaving only 3 I had to write custom code for. Another time I took a 15 page flowchart my manager had given me to implement and reduced it to 1 page by pushing all the custom parameters out to a database. This really helped a lot because I was able to code a default behavior that the program would use if it couldn't find the special conditions it was looking for. Instead of crashing and burning, requiring an all hands, this has got to be fixed yesterday response, I was able to add new records to the database that fixed it, weeks after the problem cropped up (because I didn't discover the problem was occurring for those weeks since it did not halt and catch fire.) It sounds like you've written this code a few times so you show be able to factor the behavior. I took multiple conveyor designs and finally distilled them down to a single system that was table driven that could handle any number of diverters, any types of diverters, and an infinite geometry, leaving only the accounting side to be custom coded. I assumed after doing enough accounting systems I'd finally be able to factor that as well. Currently I'm doing web screens where the fields are all defined in a database table and the screen is dynamically built on demand. Adding fields used to take days because there were multiple screens (a design that preceded me) that needed to be modified. Now it can be done in about 15 minutes (with testing). Come on, you're supposed to be a programmer - a hard working lazy person who never wants to do the same thing twice.

                                          Psychosis at 10 Film at 11 Those who do not remember the past, are doomed to repeat it. Those who do not remember the past, cannot build upon it.

                                          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