Second place! I'm going to state!
Offline
Awww... Thanks guys.
Offline
bharvey wrote:
BornAgainAtheist wrote:
I get extremely defensive of python, I love python
Python's okay, except for the whitespace thing and except for using = to mean assignment. But what big idea does it add that's different from, say, Javascript or Objective C? Or, maybe I should just say, what do you like about it?
(Don't say "import antigravity.")
Wide spread support, readability, lambda functions , short hand syntax. I realize you have an extreme interest in new paradigms and something fresh, but I find that as long as you have functions, classes, and complex data structure support, you can do that stuff on your own... a concept I learned from BYOB. You know assembly is called an any paradigm language on Wikipedia? http://en.wikipedia.org/wiki/Comparison_of_programming_languages Its because it has full potential... it just doesn't do allot of the work for you like some paradigms will. When it comes down to the essentials, all languages are the same except for speed and how comfortable you are with it... I am very comfortable with python
Offline
Python is pretty cool. I made my first own implementation of Morphic in Python using PyGame and the code was more concise than my JavaScript implementation of the same thing. Personally, I think the indentation syntax is an anachronistic disgrace, but I have to admit (grudgingly) that it does help readability. I'm getting increasingly confused, though, by the whole 2.x vs. 3.x debate in Python and which one works with PyGame (or its successor) under which OS, and which one doesn't.
Offline
Jens wrote:
Python is pretty cool. I made my first own implementation of Morphic in Python using PyGame and the code was more concise than my JavaScript implementation of the same thing. Personally, I think the indentation syntax is an anachronistic disgrace, but I have to admit (grudgingly) that it does help readability. I'm getting increasingly confused, though, by the whole 2.x vs. 3.x debate in Python and which one works with PyGame (or its successor) under which OS, and which one doesn't.
yeah, the community takes long to switch to 3.x
most of the libraries only work with 2.x, so you can't really develope real apps on 3.x
Offline
BornAgainAtheist wrote:
I find that as long as you have functions, classes, and complex data structure support, you can do that stuff on your own... a concept I learned from BYOB.
Interesting. I'm surprised how much Python spirit there is in this group! Maybe I should learn to like it, although I've had too much experience of different editors disagreeing about how many spaces equals one tab to have much faith in whitespace carrying meaning.
But, in response to the sentence quoted, you don't even need classes or data structures! As long as you have lambda (and lexical scope) you can build all the rest. And, yeah, I spent the first couple of decades of my programming career in assembler, and managed to get work done.
And, similarly, people manage (somehow) to get work done in Java, without lambda. It's not that one set of features is the only possible way.
But I guess I'm saying that it's not worth my time to learn another language that just gives me a slightly different notation for the same old ideas. If I'm going to learn a language, it's going to be one that gives me a whole different way of thinking -- Prolog, say. Not my favorite notation, but it's a notation for a very cool idea you don't see in most languages.
Or, looking at the same idea backwards, everyone who teaches Scheme comes across students regularly who write C programs in Scheme notation, and they work, but those students hate Scheme (which isn't a very good notation for C programs), and don't learn to think functionally.
Offline
bharvey wrote:
But, in response to the sentence quoted, you don't even need classes or data structures! As long as you have lambda (and lexical scope) you can build all the rest. And, yeah, I spent the first couple of decades of my programming career in assembler, and managed to get work done.
Well if you want to get super low level all you need is a Turing machine.
Offline
BornAgainAtheist wrote:
Well if you want to get super low level all you need is a Turing machine.
But I don't want to get super low level. I paid my dues, thank you, and now what I want is a language that helps me think, not just one that exposes the computer's digestive system.
EDIT: Even for proving theorems about the capabilities and limitations of computers, which is what Turing had in mind, I'd rather use Church's lambda calculus, which is equivalent in power and much less annoying in its details.
EDIT 2: Don't misunderstand, Turing is one of my top heros; he basically won World War II by breaking the German code system, and he invented theoretical computer science when there were maybe half a dozen computers in the world. (And we're not allowed to talk about how his life ended, but look it up if you don't know.)
Last edited by bharvey (2012-02-25 18:10:48)
Offline
Would you mind adding one line of code?
document.body.style.overflow="hidden";
You don't know how much this means to us FF Snappers. The scroll bar hides lots of stuff. That one line of code prevents that.
I'm currently managing with a Userscript.
Last edited by Hardmath123 (2012-02-27 05:50:29)
Offline
Hi Hardmath123,
I've heard of this problem before but so far have never been able to reproduce it with any version of Firefox either under Windows or OS X. Is it perhaps some kind of user-specific setting you're applying to Firefox which might cause the scrollbar to appear even if there is nothing to scroll?
Thanks!
Offline
That problem doesn't happen to me either...
Also, in FF, the green flag and stop sign are great, but in Chromium, they show as green and red boxes. In IE9, the flag shows but the stop sign doesn't.
Offline
It's just one line of code.
Last edited by Hardmath123 (2012-02-27 08:19:14)
Offline
Hardmath123 wrote:
http://www.imgpaste.com/jtil.png
It's just one line of code.
Are you zoomed in? Try pressing Ctrl+0.
Offline
scimonster wrote:
Hardmath123 wrote:
http://www.imgpaste.com/jtil.png
It's just one line of code.Are you zoomed in? Try pressing Ctrl+0.
Do you mean alt+o?
Offline
slinger wrote:
scimonster wrote:
Hardmath123 wrote:
http://www.imgpaste.com/jtil.png
It's just one line of code.Are you zoomed in? Try pressing Ctrl+0.
Do you mean alt+o?
Whatever the reset zoom keyboard shortcut is on a Mac.
Offline
slinger wrote:
Oh then maybe it's command+O
It's 0, not O. O is for opening a file.
Offline
cmd+ and cmd- zoom/unzoom, and to reset zoom just open a new window. But it's not zoomed. What's interesting is clicking triggers the scrollbar, otherwise it's fine. But what use is Snap! without the ability to click?
PS Is "Snapper" an acceptable term for one who uses Snap!?
Last edited by Hardmath123 (2012-02-27 09:00:45)
Offline
Hardmath123 wrote:
PS Is "Snapper" an acceptable term for one who uses Snap!?
I'd assume so.
Offline