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. Dynamic typing

Dynamic typing

Scheduled Pinned Locked Moved The Lounge
databasecsharpc++javascriptpython
30 Posts 21 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.
  • N Offline
    N Offline
    Nemanja Trifunovic
    wrote on last edited by
    #1

    For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...): how do you deal with typos? I misspelled a table name in a SQL query ("tranlsation" instead of "translation" :-O ) and spent almost 15 minutes trying to figure out why I get no results. If I do that in a statically typed language, the compiler just throws the syntax error right into my face.


    Programming Blog utf8-cpp

    B J C M J 11 Replies Last reply
    0
    • N Nemanja Trifunovic

      For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...): how do you deal with typos? I misspelled a table name in a SQL query ("tranlsation" instead of "translation" :-O ) and spent almost 15 minutes trying to figure out why I get no results. If I do that in a statically typed language, the compiler just throws the syntax error right into my face.


      Programming Blog utf8-cpp

      B Offline
      B Offline
      Bassam Abdul Baki
      wrote on last edited by
      #2

      UltraEdit[^].


      "You can lead a horse to Vista, but it won't get in stall." - Bassam Abdul-Baki Web - Blog - RSS - Math - LinkedIn - BM

      N 1 Reply Last reply
      0
      • N Nemanja Trifunovic

        For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...): how do you deal with typos? I misspelled a table name in a SQL query ("tranlsation" instead of "translation" :-O ) and spent almost 15 minutes trying to figure out why I get no results. If I do that in a statically typed language, the compiler just throws the syntax error right into my face.


        Programming Blog utf8-cpp

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

        Syntax errors? We don't need no stinking syntax errors!

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: The "Church" at Mt. Sinai The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

        1 Reply Last reply
        0
        • B Bassam Abdul Baki

          UltraEdit[^].


          "You can lead a horse to Vista, but it won't get in stall." - Bassam Abdul-Baki Web - Blog - RSS - Math - LinkedIn - BM

          N Offline
          N Offline
          Nemanja Trifunovic
          wrote on last edited by
          #4

          So you say UltraEdit is smart enough to recognize a non-existing table in a database? :)


          Programming Blog utf8-cpp

          B 1 Reply Last reply
          0
          • N Nemanja Trifunovic

            For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...): how do you deal with typos? I misspelled a table name in a SQL query ("tranlsation" instead of "translation" :-O ) and spent almost 15 minutes trying to figure out why I get no results. If I do that in a statically typed language, the compiler just throws the syntax error right into my face.


            Programming Blog utf8-cpp

            C Offline
            C Offline
            Chris Losinger
            wrote on last edited by
            #5

            OPTION EXPLICIT !

            image processing toolkits | batch image processing | blogging

            B 1 Reply Last reply
            0
            • N Nemanja Trifunovic

              So you say UltraEdit is smart enough to recognize a non-existing table in a database? :)


              Programming Blog utf8-cpp

              B Offline
              B Offline
              Bassam Abdul Baki
              wrote on last edited by
              #6

              No, but it does build an intellisense every time you add something new (I think). As long as you write it correct the first time, it should show you the correct keyword. Again, I think it does this because I see it in my files from time to time.


              "You can lead a horse to Vista, but it won't get in stall." - Bassam Abdul-Baki Web - Blog - RSS - Math - LinkedIn - BM

              1 Reply Last reply
              0
              • C Chris Losinger

                OPTION EXPLICIT !

                image processing toolkits | batch image processing | blogging

                B Offline
                B Offline
                Bassam Abdul Baki
                wrote on last edited by
                #7

                No need to yell. Use your inner VB voice. :) However, as Austin Powers would say, yeah baby! :-D


                "You can lead a horse to Vista, but it won't get in stall." - Bassam Abdul-Baki Web - Blog - RSS - Math - LinkedIn - BM

                C 1 Reply Last reply
                0
                • N Nemanja Trifunovic

                  For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...): how do you deal with typos? I misspelled a table name in a SQL query ("tranlsation" instead of "translation" :-O ) and spent almost 15 minutes trying to figure out why I get no results. If I do that in a statically typed language, the compiler just throws the syntax error right into my face.


                  Programming Blog utf8-cpp

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

                  I'm still trying to figure out how the "pubic" attribute affects method access. Marc

                  Thyme In The Country
                  Interacx

                  People are just notoriously impossible. --DavidCrow
                  There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                  People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                  C D T 3 Replies Last reply
                  0
                  • M Marc Clifton

                    I'm still trying to figure out how the "pubic" attribute affects method access. Marc

                    Thyme In The Country
                    Interacx

                    People are just notoriously impossible. --DavidCrow
                    There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                    People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                    C Offline
                    C Offline
                    Colin Angus Mackay
                    wrote on last edited by
                    #9

                    Marc Clifton wrote:

                    how the "pubic" attribute affects method access

                    I think it is synonymous with private access.


                    Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

                    1 Reply Last reply
                    0
                    • N Nemanja Trifunovic

                      For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...): how do you deal with typos? I misspelled a table name in a SQL query ("tranlsation" instead of "translation" :-O ) and spent almost 15 minutes trying to figure out why I get no results. If I do that in a statically typed language, the compiler just throws the syntax error right into my face.


                      Programming Blog utf8-cpp

                      J Offline
                      J Offline
                      Jimmanuel
                      wrote on last edited by
                      #10

                      For Perl: use strict; This forces you to "declare" variables before usage.

                      1 Reply Last reply
                      0
                      • N Nemanja Trifunovic

                        For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...): how do you deal with typos? I misspelled a table name in a SQL query ("tranlsation" instead of "translation" :-O ) and spent almost 15 minutes trying to figure out why I get no results. If I do that in a statically typed language, the compiler just throws the syntax error right into my face.


                        Programming Blog utf8-cpp

                        N Offline
                        N Offline
                        NealAB
                        wrote on last edited by
                        #11

                        The problem is that you want static typing and hard syntax rules about 97% of the time. But occasionally you crave the fluid freedom of dynamic typing, usually in high-level abstract pattern-like situations. And once in a very great while you even need an interpreter, so you can construct and run snippets of code from within your program. But usually you want strict and static typing; you know you're a bad boy and cannot be trusted.

                        M 1 Reply Last reply
                        0
                        • M Marc Clifton

                          I'm still trying to figure out how the "pubic" attribute affects method access. Marc

                          Thyme In The Country
                          Interacx

                          People are just notoriously impossible. --DavidCrow
                          There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                          People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                          D Offline
                          D Offline
                          Douglas Troy
                          wrote on last edited by
                          #12

                          Not sure, but I bet if you use the wrong method, it'll throw an access violation exception but quick ... :rolleyes:


                          :..::. Douglas H. Troy ::..
                          Bad Astronomy |VCF|wxWidgets|WTL

                          1 Reply Last reply
                          0
                          • N Nemanja Trifunovic

                            For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...): how do you deal with typos? I misspelled a table name in a SQL query ("tranlsation" instead of "translation" :-O ) and spent almost 15 minutes trying to figure out why I get no results. If I do that in a statically typed language, the compiler just throws the syntax error right into my face.


                            Programming Blog utf8-cpp

                            D Offline
                            D Offline
                            Dario Solera
                            wrote on last edited by
                            #13

                            Nemanja Trifunovic wrote:

                            For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...)

                            I don't like them because they are not strongly typed.

                            ________________________________________________ Personal Blog [ITA] - Tech Blog [ENG] - My Photos ScrewTurn Wiki 2.0.2

                            B 1 Reply Last reply
                            0
                            • N Nemanja Trifunovic

                              For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...): how do you deal with typos? I misspelled a table name in a SQL query ("tranlsation" instead of "translation" :-O ) and spent almost 15 minutes trying to figure out why I get no results. If I do that in a statically typed language, the compiler just throws the syntax error right into my face.


                              Programming Blog utf8-cpp

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

                              Snytax Errors, that's VB and gay.

                              .net is a box of never ending treasures, every day I get find another gem.

                              L 1 Reply Last reply
                              0
                              • M Marc Clifton

                                I'm still trying to figure out how the "pubic" attribute affects method access. Marc

                                Thyme In The Country
                                Interacx

                                People are just notoriously impossible. --DavidCrow
                                There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                                People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                                T Offline
                                T Offline
                                Todd Smith
                                wrote on last edited by
                                #15

                                #define private public my favorite C++ hack

                                Todd Smith

                                M 1 Reply Last reply
                                0
                                • N NealAB

                                  The problem is that you want static typing and hard syntax rules about 97% of the time. But occasionally you crave the fluid freedom of dynamic typing, usually in high-level abstract pattern-like situations. And once in a very great while you even need an interpreter, so you can construct and run snippets of code from within your program. But usually you want strict and static typing; you know you're a bad boy and cannot be trusted.

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

                                  I must live on another planet. I frequently want to construct and run snippets of code within my program, I'm always craving the fluid freedom of dynamic typing because I use high-level abstraction, and 3% of the time I'm wanting strong typing. :sigh: Clearly, I'm at odds with the approved approaches for programming! :-D Marc

                                  Thyme In The Country
                                  Interacx

                                  People are just notoriously impossible. --DavidCrow
                                  There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                                  People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                                  N S 2 Replies Last reply
                                  0
                                  • N NormDroid

                                    Snytax Errors, that's VB and gay.

                                    .net is a box of never ending treasures, every day I get find another gem.

                                    L Offline
                                    L Offline
                                    l a u r e n
                                    wrote on last edited by
                                    #17

                                    :laugh:

                                    "there is no spoon" {me}

                                    N 1 Reply Last reply
                                    0
                                    • T Todd Smith

                                      #define private public my favorite C++ hack

                                      Todd Smith

                                      M Offline
                                      M Offline
                                      Miszou
                                      wrote on last edited by
                                      #18

                                      I think Mr. Mackay[^] best summarises my thoughts on this.


                                      Sunrise Wallpaper Project | The StartPage Randomizer | A Random Web Page

                                      1 Reply Last reply
                                      0
                                      • B Bassam Abdul Baki

                                        No need to yell. Use your inner VB voice. :) However, as Austin Powers would say, yeah baby! :-D


                                        "You can lead a horse to Vista, but it won't get in stall." - Bassam Abdul-Baki Web - Blog - RSS - Math - LinkedIn - BM

                                        C Offline
                                        C Offline
                                        Chris Losinger
                                        wrote on last edited by
                                        #19

                                        Bassam Abdul-Baki wrote:

                                        No need to yell.

                                        you have to be forceful when casting the Spell of Explicitude. otherwise, the magic doesn't work, and you might turn your computer into a toaster. haven't you ever read a Harry Potter book?

                                        image processing toolkits | batch image processing | blogging

                                        C B 2 Replies Last reply
                                        0
                                        • N Nemanja Trifunovic

                                          For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...): how do you deal with typos? I misspelled a table name in a SQL query ("tranlsation" instead of "translation" :-O ) and spent almost 15 minutes trying to figure out why I get no results. If I do that in a statically typed language, the compiler just throws the syntax error right into my face.


                                          Programming Blog utf8-cpp

                                          V Offline
                                          V Offline
                                          Virtual Coder
                                          wrote on last edited by
                                          #20

                                          Nemanja Trifunovic wrote:

                                          For the people who like dynamic programming languages (Python, Ruby, JavaScript, PHP, Perl...): how do you deal with typos? I misspelled a table name in a SQL query ("tranlsation" instead of "translation" ) and spent almost 15 minutes trying to figure out why I get no results. If I do that in a statically typed language, the compiler just throws the syntax error right into my face.

                                          That's the price you pay for the flexibility of 'dynamic' languages. No risk, no fun!

                                          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