Dynamic typing
-
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.
-
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.
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
-
So you say UltraEdit is smart enough to recognize a non-existing table in a database? :)
-
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.
OPTION EXPLICIT !
image processing toolkits | batch image processing | blogging
-
So you say UltraEdit is smart enough to recognize a non-existing table in a database? :)
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
-
OPTION EXPLICIT !
image processing toolkits | batch image processing | blogging
-
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.
I'm still trying to figure out how the "pubic" attribute affects method access. Marc
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 -
I'm still trying to figure out how the "pubic" attribute affects method access. Marc
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 SmithMarc 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
-
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.
-
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.
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.
-
I'm still trying to figure out how the "pubic" attribute affects method access. Marc
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 SmithNot 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 -
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.
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
-
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.
-
I'm still trying to figure out how the "pubic" attribute affects method access. Marc
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#define private public my favorite C++ hack
Todd Smith
-
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.
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
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 -
Snytax Errors, that's VB and gay.
.net is a box of never ending treasures, every day I get find another gem.
:laugh:
"there is no spoon" {me}
-
#define private public my favorite C++ hack
Todd Smith
I think Mr. Mackay[^] best summarises my thoughts on this.
Sunrise Wallpaper Project | The StartPage Randomizer | A Random Web Page
-
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
-
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.
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!
-
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
Chris Losinger wrote:
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?
Microsoft have tried this in Windoes 3.11, but get a lot of flying toasters... :-D [edit] Ops, look that who have the credits is AfterDark[^] and not Microsoft. [/edit]
Engaged in the learning of English grammar. ;)
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.(John 3:16) :badger: