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. General Programming
  3. C#
  4. A Question Of Structure

A Question Of Structure

Scheduled Pinned Locked Moved C#
questionvisual-studiodebugginglearning
23 Posts 12 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.
  • P PIEBALDconsult

    :cough: Rive[^] :cough: Oh, hey, it's Thursday!

    R Offline
    R Offline
    Roger Wright
    wrote on last edited by
    #21

    Great. Now you tell me, after I spent two days on this. ;P Well actually, a couple of dull hours at work with nothing more interesting to fill them. Don't tell the boss...

    Will Rogers never met me.

    1 Reply Last reply
    0
    • L Lost User

      Roger Wright wrote:

      make a new class

      I usually create a "Utility" class that contains such functions.

      Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

      J Offline
      J Offline
      Jason McBurney
      wrote on last edited by
      #22

      While this is true, "Utility" class tend to morph into blob antipattern very quickly. Which is the problem he is now facing with the main form.

      You can only be young once. But you can always be immature. - Dave Barry

      R 1 Reply Last reply
      0
      • J Jason McBurney

        While this is true, "Utility" class tend to morph into blob antipattern very quickly. Which is the problem he is now facing with the main form.

        You can only be young once. But you can always be immature. - Dave Barry

        R Offline
        R Offline
        Roger Wright
        wrote on last edited by
        #23

        Fortunately, I anticipated the problem and asked the question here. The answers are about what I expected, but I wanted the experience of more seasoned programmers before I cast off on a new course. At this point, I've got a Utilities file containing the one routine I've been discussing here, but there will be others. Just to avoid what you're describing, I plan to limit this file to text-related functions, and add more files if I need other types of helper functions, like database functions.

        Will Rogers never met me.

        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