Strong Typing
-
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.
I'm waiting for strongly typed JS. Bring on the code complete!
------------------------------- Carrier Bags - 21st Century Tumbleweed.
-
I'm waiting for strongly typed JS. Bring on the code complete!
------------------------------- Carrier Bags - 21st Century Tumbleweed.
-
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.
Doesn't look like it's cross platform. :S
------------------------------- Carrier Bags - 21st Century Tumbleweed.
-
"Don't bother with it, waste of time." :wtf:
------------------------------- Carrier Bags - 21st Century Tumbleweed.
-
"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
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) -
"Don't bother with it, waste of time." :wtf:
------------------------------- Carrier Bags - 21st Century Tumbleweed.
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.
-
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.
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) -
"Don't bother with it, waste of time." :wtf:
------------------------------- Carrier Bags - 21st Century Tumbleweed.
My boss is pretty hard on his keyboard. (Must be compensation.)
-
Doesn't look like it's cross platform. :S
------------------------------- Carrier Bags - 21st Century Tumbleweed.
-
"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
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:
-
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.
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
-
"Don't bother with it, waste of time." :wtf:
------------------------------- Carrier Bags - 21st Century Tumbleweed.
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
-
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
John R. Shaw wrote:
What are you talking about?
I am not sure either...
-
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
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.
-
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.
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...
-
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.
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
-
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.
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
-
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
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.
-
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.
Lol I think I was using C# for about 4 months before I realized I didn't have to do it. Its a tough choice though, all declarations at the top make it much easier for someone to come in and read your code, whereas its easier to code when I can make a variable whenever I need one. You can definitely look at my code and see the days on which I was lazy, because there is nothing in our coding guidelines about where to put variable declarations.
-
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...
Paul Conrad wrote:
browse through the code
But you did know about the existence of the CTRL-F feature of your editor? Or (with any modern IDE) even the context menus 'Go to Declaration' feature? :~
Failure is not an option - it's built right in.