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. Strong Typing

Strong Typing

Scheduled Pinned Locked Moved The Weird and The Wonderful
42 Posts 17 Posters 9 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 Tristan Rhodes

    "Don't bother with it, waste of time." :wtf:

    ------------------------------- Carrier Bags - 21st Century Tumbleweed.

    M Offline
    M Offline
    Marcus J Smith
    wrote on last edited by
    #2

    Uhhhh, no?


    CleaKO

    "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
    "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

    1 Reply Last reply
    0
    • T Tristan Rhodes

      "Don't bother with it, waste of time." :wtf:

      ------------------------------- Carrier Bags - 21st Century Tumbleweed.

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #3

      Sometimes, IMHO, it is... (Javascript strong typing is a crap; eveyone here will disagree, I know, but I don't bother about...). :)

      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.

      T 1 Reply Last reply
      0
      • C CPallini

        Sometimes, IMHO, it is... (Javascript strong typing is a crap; eveyone here will disagree, I know, but I don't bother about...). :)

        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.

        T Offline
        T Offline
        Tristan Rhodes
        wrote on last edited by
        #4

        I'm waiting for strongly typed JS. Bring on the code complete!

        ------------------------------- Carrier Bags - 21st Century Tumbleweed.

        C 1 Reply Last reply
        0
        • T Tristan Rhodes

          I'm waiting for strongly typed JS. Bring on the code complete!

          ------------------------------- Carrier Bags - 21st Century Tumbleweed.

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #5

          Then you don't need to wait anymore. They [^] have already done it. :-D

          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.

          T 1 Reply Last reply
          0
          • C CPallini

            Then you don't need to wait anymore. They [^] have already done it. :-D

            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.

            T Offline
            T Offline
            Tristan Rhodes
            wrote on last edited by
            #6

            Doesn't look like it's cross platform. :S

            ------------------------------- Carrier Bags - 21st Century Tumbleweed.

            C 1 Reply Last reply
            0
            • T Tristan Rhodes

              "Don't bother with it, waste of time." :wtf:

              ------------------------------- Carrier Bags - 21st Century Tumbleweed.

              T Offline
              T Offline
              Tom Welch
              wrote on last edited by
              #7

              "Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."

              A severed foot is the ultimate stocking stuffer. - Mitch Hedberg

              M P 2 Replies Last reply
              0
              • T Tom Welch

                "Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."

                A severed foot is the ultimate stocking stuffer. - Mitch Hedberg

                M Offline
                M Offline
                Marcus J Smith
                wrote on last edited by
                #8

                Tom Welch wrote:

                "Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."

                "All things strings can become, code that way why not should we, hmmmmmmmmmmmmmmmmmmm?" :jig:


                CleaKO

                "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
                "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

                1 Reply Last reply
                0
                • T Tristan Rhodes

                  "Don't bother with it, waste of time." :wtf:

                  ------------------------------- Carrier Bags - 21st Century Tumbleweed.

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

                  There's no such thing as strong typing. It's all just a bunch of 1s and 0s.

                  Deja View - the feeling that you've seen this post before.

                  M J 2 Replies Last reply
                  0
                  • P Pete OHanlon

                    There's no such thing as strong typing. It's all just a bunch of 1s and 0s.

                    Deja View - the feeling that you've seen this post before.

                    M Offline
                    M Offline
                    Marcus J Smith
                    wrote on last edited by
                    #10

                    Pete O`Hanlon wrote:

                    There's no such thing as strong typing. It's all just a bunch of 1s and 0s.

                    Blah blah blah...Im really old...blah blah blah...mainframe mainframe mainframe...:rolleyes: :jig: -- modified at 8:50 Monday 7th May, 2007 Wow I marked it as a joke...:doh:


                    CleaKO

                    "I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
                    "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

                    1 Reply Last reply
                    0
                    • T Tristan Rhodes

                      "Don't bother with it, waste of time." :wtf:

                      ------------------------------- Carrier Bags - 21st Century Tumbleweed.

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #11

                      My boss is pretty hard on his keyboard. (Must be compensation.)

                      1 Reply Last reply
                      0
                      • T Tristan Rhodes

                        Doesn't look like it's cross platform. :S

                        ------------------------------- Carrier Bags - 21st Century Tumbleweed.

                        C Offline
                        C Offline
                        CPallini
                        wrote on last edited by
                        #12

                        You cry for the moon! :)

                        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.

                        1 Reply Last reply
                        0
                        • T Tom Welch

                          "Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."

                          A severed foot is the ultimate stocking stuffer. - Mitch Hedberg

                          P Offline
                          P Offline
                          Paul Conrad
                          wrote on last edited by
                          #13

                          Tom Welch wrote:

                          it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean

                          :laugh::laugh::laugh:

                          1 Reply Last reply
                          0
                          • P Pete OHanlon

                            There's no such thing as strong typing. It's all just a bunch of 1s and 0s.

                            Deja View - the feeling that you've seen this post before.

                            J Offline
                            J Offline
                            John R Shaw
                            wrote on last edited by
                            #14

                            Wrong! Unless you are talking about how hard you hit the keys on your keyboard.

                            INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

                            P 1 Reply Last reply
                            0
                            • T Tristan Rhodes

                              "Don't bother with it, waste of time." :wtf:

                              ------------------------------- Carrier Bags - 21st Century Tumbleweed.

                              J Offline
                              J Offline
                              John R Shaw
                              wrote on last edited by
                              #15

                              What are you talking about? If you are talking about variable type checking in C++, then you are wrong. I wish C was as tight with its type checking. Then again I wish C would allow me to declare a variable where ever I wanted too, instead of forcing me to create a new scope. P.S. I liked C, but I love C++.

                              INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

                              P P T 3 Replies Last reply
                              0
                              • J John R Shaw

                                What are you talking about? If you are talking about variable type checking in C++, then you are wrong. I wish C was as tight with its type checking. Then again I wish C would allow me to declare a variable where ever I wanted too, instead of forcing me to create a new scope. P.S. I liked C, but I love C++.

                                INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

                                P Offline
                                P Offline
                                Paul Conrad
                                wrote on last edited by
                                #16

                                John R. Shaw wrote:

                                What are you talking about?

                                I am not sure either...

                                1 Reply Last reply
                                0
                                • J John R Shaw

                                  What are you talking about? If you are talking about variable type checking in C++, then you are wrong. I wish C was as tight with its type checking. Then again I wish C would allow me to declare a variable where ever I wanted too, instead of forcing me to create a new scope. P.S. I liked C, but I love C++.

                                  INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

                                  P Offline
                                  P Offline
                                  PIEBALDconsult
                                  wrote on last edited by
                                  #17

                                  John R. Shaw wrote:

                                  Then again I wish C would allow me to declare a variable where ever I wanted

                                  I prefer to have all the declarations in one place (the top) so in C# I still do that by choice. But requiring such isn't very friendly, flexibility is good.

                                  P J S E C 5 Replies Last reply
                                  0
                                  • P PIEBALDconsult

                                    John R. Shaw wrote:

                                    Then again I wish C would allow me to declare a variable where ever I wanted

                                    I prefer to have all the declarations in one place (the top) so in C# I still do that by choice. But requiring such isn't very friendly, flexibility is good.

                                    P Offline
                                    P Offline
                                    Paul Conrad
                                    wrote on last edited by
                                    #18

                                    PIEBALDconsult wrote:

                                    I prefer to have all the declarations in one place (the top) so in C# I still do that by choice.

                                    Same here, sure beats having to browse through the code looking for the declarations...

                                    J 1 Reply Last reply
                                    0
                                    • P PIEBALDconsult

                                      John R. Shaw wrote:

                                      Then again I wish C would allow me to declare a variable where ever I wanted

                                      I prefer to have all the declarations in one place (the top) so in C# I still do that by choice. But requiring such isn't very friendly, flexibility is good.

                                      J Offline
                                      J Offline
                                      John R Shaw
                                      wrote on last edited by
                                      #19

                                      I agree requiring such is not varying friendly, and is a real pain int the <blank>. Here are some thoughts to consider when writing you code.: 1) In C you can wrap a variable declaration in a scope and if that scope is not entered then no space is allocated on the stack for it (saves cycles and memory). This applies to languages other than C, including C#. 2) In C++ you can wrap a class (variable) declaration in a scope and if that scope is not entered then the constructor and destructor are not called.

                                      INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

                                      1 Reply Last reply
                                      0
                                      • P PIEBALDconsult

                                        John R. Shaw wrote:

                                        Then again I wish C would allow me to declare a variable where ever I wanted

                                        I prefer to have all the declarations in one place (the top) so in C# I still do that by choice. But requiring such isn't very friendly, flexibility is good.

                                        S Offline
                                        S Offline
                                        Shog9 0
                                        wrote on last edited by
                                        #20

                                        PIEBALDconsult wrote:

                                        I prefer to have all the declarations in one place (the top) so in C# I still do that by choice.

                                        I hate that. Although it probably doesn't help that most of the functions i see doing it are hundreds of lines long, making it a real chore to track down declarations and ensure variables are being used correctly.

                                        ----

                                        It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

                                        --Raymond Chen on MSDN

                                        P 1 Reply Last reply
                                        0
                                        • S Shog9 0

                                          PIEBALDconsult wrote:

                                          I prefer to have all the declarations in one place (the top) so in C# I still do that by choice.

                                          I hate that. Although it probably doesn't help that most of the functions i see doing it are hundreds of lines long, making it a real chore to track down declarations and ensure variables are being used correctly.

                                          ----

                                          It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

                                          --Raymond Chen on MSDN

                                          P Offline
                                          P Offline
                                          PIEBALDconsult
                                          wrote on last edited by
                                          #21

                                          Yeah, if you can't the declaration then your method is too big (size matters). On the other hand, if they're all at the top, they're easy to find.

                                          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