Join us at IRC!
The important thing is not to stop questioning. - Albert Einstein
Friday, May 25, 2012
Navigation
Members Online
Total Online: 36
Web Spiders: 14
Guests Online: 35
Members Online: 1

Registered Members: 70209
Newest Member: KalareShou
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Page 1 of 2 1 2 >
Author

Python: Is there something I'm missing?

kenneth_nap
Member

Posts: 62
Location: United States
Joined: 06.12.08
Rank:
God
Posted on 13-10-09 22:05
I decided to see what python was about. I downloaded a development environment, and then started playing. At first glance, I noticed there are no switch statements in python.
This seems pretty shitty since they already had three major releases. Ok, that’s crap, but maybe there is a workaround that I’m not aware of.

Later on when I ran my newly created newbie scblockedript, I noticed something about indentions! WTF is that all about?

Given that I’ve only looked over the language for a few hours. Obviously, I could have missed out on a lot of good with the language, but I would like other people’s opinion. What is your take on the language?



Forum Posts + Points

Guest - 0
Newbie - 20
Apprentice - 200
Moderate - 350
Wiseman - 500
Active User - 700
Mad User - 950
Monster - 1200
Hacker Level 1 - 1500
Hacker Level 2 - 1700
Hacker Level 3 - 1900
Elite - 2100
Uber Elite - 2450
HBH Guru - 2700
God - 3500
kenneth_napaluch
Author

RE: Python: Is there something I'm missing?

Futility
Member



Posts: 715
Location: USA
Joined: 17.12.07
Rank:
God
Posted on 13-10-09 22:29
kenneth_nap wrote:
At first glance, I noticed there are no switch statements in python.

Your quick assumption is, unfortunately, correct. Python doesn't support any kind of special switch statement, which I found annoying, too. Although it's simple enough to make up for that with a couple if/elses.

Later on when I ran my newly created newbie scblockedript, I noticed something about indentions! WTF is that all about?

That's Python. Did you happen to notice and total and utter lack of { } while writing your scblockedript? Yes? So how could the interpreter possibly know when, say, an if phrase ends? Indentations, my good friend.

But why, you ask? How many times when coding in C/++ did you catch yourself forgetting a bracket? Not many, huh? Well then I guess you're amazing, because it happened to me all the time. Here you don't have to worry about it. The indentations also force you to keep your scblockedripts crisp, clean, and uniform.

Obviously, I could have missed out on a lot of good with the language, but I would like other people’s opinion. What is your take on the language?

I like it. I like the simplicity, I like the cleanliness, I like the fact that it's very well-documented. I also like the fact tat every little scblockedript you write makes you feel super-manly because it only took 14 seconds and ran on your first try.


Futility91@hotmail.com Futility91 http://mycampearth.com/
Author

RE: Python: Is there something I'm missing?

kenneth_nap
Member

Posts: 62
Location: United States
Joined: 06.12.08
Rank:
God
Posted on 13-10-09 22:41
Nice response. I like "{}", but I do see how indentions force neatness. I don't like indentions because you may have inconsistent spacing in the indentions which will prompt a bug.


Forum Posts + Points

Guest - 0
Newbie - 20
Apprentice - 200
Moderate - 350
Wiseman - 500
Active User - 700
Mad User - 950
Monster - 1200
Hacker Level 1 - 1500
Hacker Level 2 - 1700
Hacker Level 3 - 1900
Elite - 2100
Uber Elite - 2450
HBH Guru - 2700
God - 3500
kenneth_napaluch
Author

RE: Python: Is there something I'm missing?

Defience
Member



Posts: 16
Location: #! /usr/bin/python
Joined: 22.09.09
Rank:
God
Warn Level: 25
Posted on 13-10-09 22:41
I personally love using python, I find it easy to move around in and I like that you can try portions of code in the IDLE while writing longer programs. If you don't indent properly you'll get an error message that an indent was expected so that should be an easy fix. I think the indents make it a little easier to read as well.
None None None http://www.hackthissite.org/user/view/Defience
Author

RE: Python: Is there something I'm missing?

ynori7
Future Emperor of Earth



Posts: 1481
Location: #valhalla
Joined: 08.10.07
Rank:
Diabolical
Posted on 13-10-09 22:48
IDLE has an option to "tabify" a region if your tab spacing is inconsistent.




ynori7 http://halls-of-valhalla.org
Author

RE: Python: Is there something I'm missing?

kenneth_nap
Member

Posts: 62
Location: United States
Joined: 06.12.08
Rank:
God
Posted on 13-10-09 22:53
hmm I now see the indention a good way, one that I'm not use to, but good.


Forum Posts + Points

Guest - 0
Newbie - 20
Apprentice - 200
Moderate - 350
Wiseman - 500
Active User - 700
Mad User - 950
Monster - 1200
Hacker Level 1 - 1500
Hacker Level 2 - 1700
Hacker Level 3 - 1900
Elite - 2100
Uber Elite - 2450
HBH Guru - 2700
God - 3500
kenneth_napaluch
Author

RE: Python: Is there something I'm missing?

COM
Banned



Posts: 800
Location:
Joined: 31.08.07
Rank:
God
Posted on 13-10-09 23:11
Python is too neat and tidy for my taste, don't really like it.
The indentations would be the main reason for that and I reckon that they are more good esthetically than they are practically. It's much easier to miss a whitespace and end up without an error or warning for it than it is if you use something that has to be there specifically for it to function, such as curly brackets. Thus I generally dislike a language that relies so heavily upon how whitespaces are used.
To me, indentations are like sex; it's cool as long as it's not forced upon me.


K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth!
Author

RE: Python: Is there something I'm missing?

ynori7
Future Emperor of Earth



Posts: 1481
Location: #valhalla
Joined: 08.10.07
Rank:
Diabolical
Posted on 13-10-09 23:18
Since every editor I've used to write python in auto-indents for you, it's pretty hard to screw that up. As far as the curly bracket thing not being hard either, that's not the point. I hate reading unindented code. It's ugly and hard to debug.




ynori7 http://halls-of-valhalla.org
Author

RE: Python: Is there something I'm missing?

kenneth_nap
Member

Posts: 62
Location: United States
Joined: 06.12.08
Rank:
God
Posted on 13-10-09 23:20
I prefer Java. I know... its slow, but I like the speed for portability trade/off. I also like not having to deal with pointers. Oh, it also supports switch statement!!! :)


Forum Posts + Points

Guest - 0
Newbie - 20
Apprentice - 200
Moderate - 350
Wiseman - 500
Active User - 700
Mad User - 950
Monster - 1200
Hacker Level 1 - 1500
Hacker Level 2 - 1700
Hacker Level 3 - 1900
Elite - 2100
Uber Elite - 2450
HBH Guru - 2700
God - 3500
kenneth_napaluch
Author

RE: Python: Is there something I'm missing?

Futility
Member



Posts: 715
Location: USA
Joined: 17.12.07
Rank:
God
Posted on 13-10-09 23:27
COM wrote:
Python is too neat and tidy for my taste, don't really like it.

Well then you're dumb. Your opinion is wrong and if you think anything contrary to me you deserve to be brutally beaten to death with your own severed limbs. Moron.

The indentations would be the main reason for that and I reckon that they are more good esthetically than they are practically. It's much easier to miss a whitespace and end up without an error or warning for it than it is if you use something that has to be there specifically for it to function, such as curly brackets. Thus I generally dislike a language that relies so heavily upon how whitespaces are used.

You guys act like adding white spaces is difficult. Like pressing tab every line or so somehow hinders your work. Hell, IDLE even autoindents for you in most circumstances. Just press tab once and you'll be good. Or you could even go ahead and not indent once until the very end and make use of the 'tabification' to do it for you.

Or you could have your own opinion and continue doing what you feel most comfortable with. Stupid.


To me, indentations are like sex; it's cool as long as it's not forced upon me.

Obviously you haven't had sex forced upon you. After you stop hurting, it's actually quite simple to think back and remember how fun it was- getting pinned down and brutally beaten by your neighbor on a cool winter's eve- birds happily chirping outside with a faint breeze seeping through the door. Fond memories...


Futility91@hotmail.com Futility91 http://mycampearth.com/
Author

RE: Python: Is there something I'm missing?

c4p_sl0ck
Member



Posts: 380
Location: Sweden‮‭
Joined: 17.09.06
Rank:
God
Posted on 13-10-09 23:27
I've never used Python until today when I saw the optimization competition, and it's really easy to use it. If you can read pseudo code, you can read Python (almost). Python seems good in my opinion so far.



c4p_sl0ck@hotmail.com
Author

RE: Python: Is there something I'm missing?

COM
Banned



Posts: 800
Location:
Joined: 31.08.07
Rank:
God
Posted on 13-10-09 23:29
kenneth_nap wrote:
I prefer Java. I know... its slow, but I like the speed for portability trade/off. I also like not having to deal with pointers. Oh, it also supports switch statement!!! :)

Oh joy, then on the other hand it doesn't support a whole lot of other shit. Like the basic data types for instance, which I find a little very weak and shitty from a language in need of compilation.


K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth!
Author

RE: Python: Is there something I'm missing?

COM
Banned



Posts: 800
Location:
Joined: 31.08.07
Rank:
God
Posted on 13-10-09 23:37
Futility wrote:
Obviously you haven't had sex forced upon you.

Actually I have. I've had to move to another town because of it and I can't talk to my family anymore because it was a friend of the family. You have no idea how horrible it is to not be able to look your parents in the eyes or even be in the same room as them because you know that they're aware of what things their friend did to you. Hope you're happy with yourself for bringing up the most painful event in my life and thinking it's so funny, you insensitive prick.


K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth!
Author

RE: Python: Is there something I'm missing?

Futility
Member



Posts: 715
Location: USA
Joined: 17.12.07
Rank:
God
Posted on 13-10-09 23:52
COM wrote:
Actually I have. I've had to move to another town because of it and I can't talk to my family anymore because it was a friend of the family. You have no idea how horrible it is to not be able to look your parents in the eyes or even be in the same room as them because you know that they're aware of what things their friend did to you. Hope you're happy with yourself for bringing up the most painful event in my life and thinking it's so funny, you insensitive prick.

I can't possibly find the words to express the extreme guilt that has gripped me. I'm so sorry, man. I had absolutely no idea. I... I can't believe myself.

Of course the signs were everywhere- your wit and cynicism is merely a ruse you must put up so that you can feel normal when you know that you'll always be 'that freak'. After being driven away from your family and your friends, you looked here, to us, and I've completely ruined that. Every day must be a struggle for you to overcome the intense urge to just rid the world of yourself and, by doing so, cure it of the hideous infection that you've come to embody. You- with your disgustingly skinny body and rage driven emotions. You- who must take out his anger on those of us that actively contribute to this community in the form of a newsletter by tearing apart every sentence; every word- and then arguing about it when you're clearly incorrect. You- who feels the overwhelming urge to hide your shame and disgust behind a transparent acronym monomer, despite the obvious signs that it is no longer needed.

So I'm sorry. So very very sorry for bringing up your terrible past and making you relive those moments of extreme suffering. A suffering which, I might add, could have easily been prevented by a weekly visit outside of your dingy household to wander the world; to get fresh air. These things are precious, my friend, and I'm glad to see that you're no longer taking advantage of them.

I only hope that you can accept my most sincerest of apologies. Godspeed, dear COM, and may the future bring you nothing but happiness.


Futility91@hotmail.com Futility91 http://mycampearth.com/
Author

RE: Python: Is there something I'm missing?

COM
Banned



Posts: 800
Location:
Joined: 31.08.07
Rank:
God
Posted on 14-10-09 00:10
Futility wrote:
I can't possibly find the words to express the extreme guilt that has gripped me. I'm so sorry, man. I had absolutely no idea. I... I can't believe myself.

Of course the signs were everywhere- your wit and cynicism is merely a ruse you must put up so that you can feel normal when you know that you'll always be 'that freak'. After being driven away from your family and your friends, you looked here, to us, and I've completely ruined that. Every day must be a struggle for you to overcome the intense urge to just rid the world of yourself and, by doing so, cure it of the hideous infection that you've come to embody. You- with your disgustingly skinny body and rage driven emotions. You- who must take out his anger on those of us that actively contribute to this community in the form of a newsletter by tearing apart every sentence; every word- and then arguing about it when you're clearly incorrect. You- who feels the overwhelming urge to hide your shame and disgust behind a transparent acronym monomer, despite the obvious signs that it is no longer needed.

So I'm sorry. So very very sorry for bringing up your terrible past and making you relive those moments of extreme suffering. A suffering which, I might add, could have easily been prevented by a weekly visit outside of your dingy household to wander the world; to get fresh air. These things are precious, my friend, and I'm glad to see that you're no longer taking advantage of them.

I only hope that you can accept my most sincerest of apologies. Godspeed, dear COM, and may the future bring you nothing but happiness.

Well thank you so much for all the sarcasm, you just don't know when to quit. You were actually right at the beginning though when you said I've tried to hide it. It's taken me a very long time to cope with this but even though it happened a long time ago I haven't managed yet. You think you would? I've tried and managed to live a somewhat normal life these past years and it hasn't been easy. I can't manage any relationships and physical contact with others is hell for me. You've got no idea of how it is.
You happened to push me a bit too far with that comment of yours. If you don't want to apologize then fine, I can't demand that, but you don't have to be an asshole about it. Not everything is as you perceive it, you don't know everything about me, so there's no need to be such a presumptuous dick.


K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth!
Author

RE: Python: Is there something I'm missing?

stdio
Member

Posts: 375
Location: omnipresent
Joined: 06.04.08
Rank:
God
Posted on 14-10-09 00:11
Back on topic:

Python is great for quick scblockedripts. Plus there are loads of modules and APIs that people have created for use.

I also prefer the "{}" as it allows for easy code collapsing in my editors. However I love not having the ';' at the end of each line. That single character has caused me more headaches then I care to admit. Actually second most hated character, "*", is the first. Dealing with pointers has caused me more, but thats another issue entirely




I'm sorry, I cant hear you over the sound of how awesome I am!
www.thewebsiteisdown.com
Author

RE: Python: Is there something I'm missing?

f16e7
Banned

Posts: 89
Location:
Joined: 21.09.09
Rank:
Apprentice
Warn Level: 100
Posted on 14-10-09 00:14
You can't pull a "back on topic" on a conversation like this man. That's just not classy, stdio.
Author

RE: Python: Is there something I'm missing?

stdio
Member

Posts: 375
Location: omnipresent
Joined: 06.04.08
Rank:
God
Posted on 14-10-09 00:19
f16e7 wrote:
You can't pull a "back on topic" on a conversation like this man. That's just not classy, stdio.


Hey I wanted to type my input, but walked away and in 15 min, and that conversation started. A conversation that I dont want to touch with a 10ft pole.





I'm sorry, I cant hear you over the sound of how awesome I am!
www.thewebsiteisdown.com
Author

RE: Python: Is there something I'm missing?

c4p_sl0ck
Member



Posts: 380
Location: Sweden‮‭
Joined: 17.09.06
Rank:
God
Posted on 14-10-09 00:20
f16e7 wrote:
You can't pull a "back on topic" on a conversation like this man. That's just not classy, stdio.


Yeah, because everyone is so nice here at HBH. You've got to have manners here. You can't just post something that is on topic when something this dramatic is happening in a random thread.



c4p_sl0ck@hotmail.com
Author

RE: Python: Is there something I'm missing?

Futility
Member



Posts: 715
Location: USA
Joined: 17.12.07
Rank:
God
Posted on 14-10-09 01:05
COM wrote:
Well thank you so much for all the sarcasm, you just don't know when to quit. You were actually right at the beginning though when you said I've tried to hide it. It's taken me a very long time to cope with this but even though it happened a long time ago I haven't managed yet. You think you would? I've tried and managed to live a somewhat normal life these past years and it hasn't been easy. I can't manage any relationships and physical contact with others is hell for me. You've got no idea of how it is.
You happened to push me a bit too far with that comment of yours. If you don't want to apologize then fine, I can't demand that, but you don't have to be an asshole about it. Not everything is as you perceive it, you don't know everything about me, so there's no need to be such a presumptuous dick.

Alright, man. I admit defeat. You win. The longer this charade goes on, the more I take on the part of a complete and total asshole while you continue to look pathetic. I have nothing to gain, and you've got nothing to lose. Sounds like a good deal for me, eh? I guess that's what I get for bringing the whole thing up.

Oh wait, I didn't bring it up, did I? If you were truly as traumatized as you're letting on, you wouldn't have made the crude sexual reference in the first place, would you?. All I know is that you're not the emotiony touchy feely kind and can't help but suspect your usual tomfoolery. But hey, what does that mean coming from me? I'm just an inconsiderate prick looking to make someone feel bad over the internet.

So yes, congratulations- wallow in your victory. Respond to this with another whiny sob story. If the masses believe you, well, you've earned it. Pretending to be scarred for life is just as good as the real thing, right, Elisabeth?


Futility91@hotmail.com Futility91 http://mycampearth.com/
Page 1 of 2 1 2 >
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.