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. Other Discussions
  3. The Weird and The Wonderful
  4. WriteOnly

WriteOnly

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharpjavadotnetvisual-studio
43 Posts 22 Posters 4 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.
  • T The Cake of Deceit

    Who would use it? A coding horror in VB. And if you use it, it turns your code into a coding horror. X|

    CLR: Removes tough Java-based stains fast!

    M Offline
    M Offline
    MarkB777
    wrote on last edited by
    #4

    Did you also know VB is straight up just an ugly language? VB itself is a coding horror.

    Mark Brock Click here to view my blog

    B M 2 Replies Last reply
    0
    • T The Cake of Deceit

      Who would use it? A coding horror in VB. And if you use it, it turns your code into a coding horror. X|

      CLR: Removes tough Java-based stains fast!

      B Offline
      B Offline
      Brady Kelly
      wrote on last edited by
      #5

      Alpha Nerd wrote:

      And if you use it, it turns your code into a coding horror.

      Surely if you use it, you have a reason, and thus your code will not be a horror?

      Pits fall into Chuck Norris.

      T 1 Reply Last reply
      0
      • M MarkB777

        Did you also know VB is straight up just an ugly language? VB itself is a coding horror.

        Mark Brock Click here to view my blog

        B Offline
        B Offline
        Baixinho
        wrote on last edited by
        #6

        This is the type of comment that only can be written by someone that doesnt know the language. I work on c# but i worked on VB.Net a few years before. The two main diferences i noticed on the transition was that intelisence is a lot better on VB, and on vb i don't have to compile the code to see errors.

        M D J J 4 Replies Last reply
        0
        • B Baixinho

          This is the type of comment that only can be written by someone that doesnt know the language. I work on c# but i worked on VB.Net a few years before. The two main diferences i noticed on the transition was that intelisence is a lot better on VB, and on vb i don't have to compile the code to see errors.

          M Offline
          M Offline
          MarkB777
          wrote on last edited by
          #7

          Hey - I never said that VB is not a functional language, merely that it is an ugly language. I find myself constantly missing the "{}"'s that make C based code so elegant to look at ;).

          Mark Brock Click here to view my blog

          1 Reply Last reply
          0
          • T The Cake of Deceit

            Did you know VB.NET has a WriteOnly property to make properties into /dev/nulls? :wtf: It even offers IntelliSense to remove the Get accessors!

            CLR: Removes tough Java-based stains fast!

            E Offline
            E Offline
            Ed Poore
            wrote on last edited by
            #8

            So does C# from what I can remember.

            T 1 Reply Last reply
            0
            • B Baixinho

              This is the type of comment that only can be written by someone that doesnt know the language. I work on c# but i worked on VB.Net a few years before. The two main diferences i noticed on the transition was that intelisence is a lot better on VB, and on vb i don't have to compile the code to see errors.

              D Offline
              D Offline
              Dan Neely
              wrote on last edited by
              #9

              Member 2411327 wrote:

              and on vb i don't have to compile the code to see errors.

              I don't know what that isn't an IDE option. It's good for smaller projects but will hammer the CPU and slow the IDE down significantly on larger projects.

              You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4.... -- El Corazon

              A 1 Reply Last reply
              0
              • T The Cake of Deceit

                Did you know VB.NET has a WriteOnly property to make properties into /dev/nulls? :wtf: It even offers IntelliSense to remove the Get accessors!

                CLR: Removes tough Java-based stains fast!

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #10

                Uhh, no. WriteOnly only turns off the gettor of a property. A /dev/null is a completely different concept.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008

                T 1 Reply Last reply
                0
                • D Dan Neely

                  Member 2411327 wrote:

                  and on vb i don't have to compile the code to see errors.

                  I don't know what that isn't an IDE option. It's good for smaller projects but will hammer the CPU and slow the IDE down significantly on larger projects.

                  You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4.... -- El Corazon

                  A Offline
                  A Offline
                  Anton Afanasyev
                  wrote on last edited by
                  #11

                  dan neely wrote:

                  It's good for smaller projects but will hammer the CPU and slow the IDE down significantly on larger projects.

                  Doesn't matter. Its impossible to make a large project in VB anyway: you'll go crazy from the language itself;P

                  "impossible" is just an opinion.

                  W 1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    Uhh, no. WriteOnly only turns off the gettor of a property. A /dev/null is a completely different concept.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007, 2008

                    T Offline
                    T Offline
                    The Cake of Deceit
                    wrote on last edited by
                    #12

                    Who would turn off the gettor of a property? It turns them into black holes, and a /dev/null is one too.

                    CLR: Removes tough Java-based stains fast!

                    D D 2 Replies Last reply
                    0
                    • A Anton Afanasyev

                      dan neely wrote:

                      It's good for smaller projects but will hammer the CPU and slow the IDE down significantly on larger projects.

                      Doesn't matter. Its impossible to make a large project in VB anyway: you'll go crazy from the language itself;P

                      "impossible" is just an opinion.

                      W Offline
                      W Offline
                      Werries
                      wrote on last edited by
                      #13

                      Hi all of you that think VB are such a horrible language to use for coding. I’ve notice some of you think a large project can’t be done in VB. Well, I’ve got news for you. I work for a company that develops Point of Sale software for the last 14 years, and we are currently working on a new version for the Point of Sale that has at least 2 million lines of source code in it! It is a full client-server application and can be used on a single PC and up to thousands of computers all with a breeze. Programming some parts of the application in C and other languages, VB still is the most organised and understandable code there is. Call a project with more than 2 million lines of source code small? The project contains about 121 dll’s written in VB6 and about 67 dll’s written in VB.Net. Currently we are converting all the VB6 dll’s to VB.Net dll’s. After all, it is not the language that makes an application what it is, but the programmer’s ability to develop good and reliable code, regardless of the language. ;)

                      A programmer's life is good... or is it?? Ek dink nie so nie!

                      T M 2 Replies Last reply
                      0
                      • T The Cake of Deceit

                        Who would turn off the gettor of a property? It turns them into black holes, and a /dev/null is one too.

                        CLR: Removes tough Java-based stains fast!

                        D Offline
                        D Offline
                        Dan Neely
                        wrote on last edited by
                        #14

                        Someone writing software to control an unbuffered output device? If there's no buffer, you can't change anything that was written out, so the getter is utterly pointless.

                        You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4.... -- El Corazon

                        1 Reply Last reply
                        0
                        • T The Cake of Deceit

                          Who would turn off the gettor of a property? It turns them into black holes, and a /dev/null is one too.

                          CLR: Removes tough Java-based stains fast!

                          D Offline
                          D Offline
                          Dave Kreskowiak
                          wrote on last edited by
                          #15

                          Alpha Nerd wrote:

                          It turns them into black holes, and a /dev/null is one too.

                          Not quite. It turns a property into something akin to a voting box. You put your vote in, and there's no way to get it out. The class the property is defined in gets to do whatever it needs to with the data that comes in. In a "blackhole" null device, there isn't any processing allowable on the bits that end up in there...

                          A guide to posting questions on CodeProject[^]
                          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                               2006, 2007, 2008

                          L T 3 Replies Last reply
                          0
                          • D Dave Kreskowiak

                            Alpha Nerd wrote:

                            It turns them into black holes, and a /dev/null is one too.

                            Not quite. It turns a property into something akin to a voting box. You put your vote in, and there's no way to get it out. The class the property is defined in gets to do whatever it needs to with the data that comes in. In a "blackhole" null device, there isn't any processing allowable on the bits that end up in there...

                            A guide to posting questions on CodeProject[^]
                            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                                 2006, 2007, 2008

                            L Offline
                            L Offline
                            Luc Pattyn
                            wrote on last edited by
                            #16

                            you're familiar with the software that runs in a black hole? I want you to write an article on this, that is assuming you can get it out of there.

                            Luc Pattyn [Forum Guidelines] [My Articles]


                            This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


                            D CPalliniC 2 Replies Last reply
                            0
                            • B Brady Kelly

                              Alpha Nerd wrote:

                              And if you use it, it turns your code into a coding horror.

                              Surely if you use it, you have a reason, and thus your code will not be a horror?

                              Pits fall into Chuck Norris.

                              T Offline
                              T Offline
                              The Cake of Deceit
                              wrote on last edited by
                              #17

                              There is no reason for an excuse of using that thing.

                              CLR: Removes tough Java-based stains fast!

                              R 1 Reply Last reply
                              0
                              • T The Cake of Deceit

                                There is no reason for an excuse of using that thing.

                                CLR: Removes tough Java-based stains fast!

                                R Offline
                                R Offline
                                Robert Surtees
                                wrote on last edited by
                                #18

                                Maybe the property is part of a quantum computer and so write only to spare the possible life of a cat.

                                T 1 Reply Last reply
                                0
                                • R Robert Surtees

                                  Maybe the property is part of a quantum computer and so write only to spare the possible life of a cat.

                                  T Offline
                                  T Offline
                                  The Cake of Deceit
                                  wrote on last edited by
                                  #19

                                  Robert Surtees wrote:

                                  Maybe the property is part of a quantum computer and so write only to spare the possible life of a cat.

                                  You would need 9 WriteOnly properties then. Remember; they have 9 lives! LOL. :laugh: (who would build a supercomputer in VB? the language is slightly crippled, but this WriteOnly thing gives a advantage over C# or the awful C++)

                                  CLR: Removes tough Java-based stains fast!

                                  R 1 Reply Last reply
                                  0
                                  • D Dave Kreskowiak

                                    Alpha Nerd wrote:

                                    It turns them into black holes, and a /dev/null is one too.

                                    Not quite. It turns a property into something akin to a voting box. You put your vote in, and there's no way to get it out. The class the property is defined in gets to do whatever it needs to with the data that comes in. In a "blackhole" null device, there isn't any processing allowable on the bits that end up in there...

                                    A guide to posting questions on CodeProject[^]
                                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                                         2006, 2007, 2008

                                    T Offline
                                    T Offline
                                    The Cake of Deceit
                                    wrote on last edited by
                                    #20

                                    Unless you do this: Public WriteOnly Property example As Object Set(ByVal value As Object) ' Do Nothing Here, Process Nothing Here End Set End Property

                                    CLR: Removes tough Java-based stains fast!

                                    1 Reply Last reply
                                    0
                                    • E Ed Poore

                                      So does C# from what I can remember.

                                      T Offline
                                      T Offline
                                      The Cake of Deceit
                                      wrote on last edited by
                                      #21

                                      But you do it manually. (and I think it complains.) CLR: Removes tough Java-based stains fast!

                                      1 Reply Last reply
                                      0
                                      • L Luc Pattyn

                                        you're familiar with the software that runs in a black hole? I want you to write an article on this, that is assuming you can get it out of there.

                                        Luc Pattyn [Forum Guidelines] [My Articles]


                                        This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


                                        D Offline
                                        D Offline
                                        Dave Kreskowiak
                                        wrote on last edited by
                                        #22

                                        Yes, I have SEEN the other side! Nothing much to see, it's pretty dark...

                                        A guide to posting questions on CodeProject[^]
                                        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                                             2006, 2007, 2008

                                        L 1 Reply Last reply
                                        0
                                        • L Luc Pattyn

                                          you're familiar with the software that runs in a black hole? I want you to write an article on this, that is assuming you can get it out of there.

                                          Luc Pattyn [Forum Guidelines] [My Articles]


                                          This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


                                          CPalliniC Offline
                                          CPalliniC Offline
                                          CPallini
                                          wrote on last edited by
                                          #23

                                          I'm familiar, hence I'm going to write few lines explaining..., but, wait, maybe I'm too close to, s**t.................................... :)

                                          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                                          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                                          In testa che avete, signor di Ceprano?

                                          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