I feel whole idea of hackathon is to build stuff over night or a day or two. All the outcome of the hackathon is for good. As a beginner it could be useful to get started to technology/language. I am biased towards prizes in hackathon.
What GNU/Linux Operating System lacks ?
I am GNU/Linux user for almost 4 years, saying that I don’t switch back to windows for any day to day activities, being said that GNU/Linux operating system’s lacks lot of * applications *. There are lot superior command line applications but those are intended for religious command line humans.
I have been using mac osx 10.6. for 3-4 weeks, it seems to have all applications but I don’t feel at ~.
[Read More]
What I like about Python
Lynn Root asked in twitter what you like and like to improve in python https://twitter.com/roguelynn/status/259338864664125440. Following are my observation
Likes
Importance to documentation.. Clean syntax. Easy to get started for non CS background people. lot of smart programmers. Libraries like IPython, requests, flask. Creating libraries like pygments, sphinx, readthedocs to solve * REAL * problem. I would like/want to improve
python.org site While programmers are reading docs.python.org, code snippets should be executable right from the page(I have plans to start this as personal project).
[Read More]
How Python makes learning simpler
Python is a simple language and developed with programmer’s productivity and code readability in mind. Learning new language would be simple to complicated depending on language syntax, wierdness and many other factors.
Its universally accepted best way to learn programming language is to write programs and rewrite again.
Python makes learning curve easier. Python has certain features which makes easier to learn inside interpreter.
help(object) ,help is function which takes a object or function and tells what exactly the object documentation.
[Read More]
How I got into HasGeek Crew
Background about me I am kracekumar, graduated from Amrita school of Engineering, Coimbatore in B.Tech IT (2007-2011). I am working with IBM India Pvt Ltd, Bangalore as Associate System Engineer from 14th July, 2011 til 16th July, 2012.(C# developer but never wrote single line of code in c# in IBM).
I am GNU/Linux user for 3 years and developed application in PHP, Rails, Flask(all are hobby projects).
Scene I was not happy with job at IBM and I had training bond for one year(14th July, 2011 to 13th July 2012), decided to resign from my job once bond period is over whether I have new job offer or not.
[Read More]
Fake Python switch statement
Python has no switch statement.
what is switch statement ? switch statement is an alternate to if - elseif - else statement.
Example in C
int payment_status=1; switch(payment_status){ case 1: process_pending_payment(); break; case 2: process_paid(); break; case 3: process_trans_failure(); break; default: process_default(); } In python we can achieve same behaviour using dict.
Fake switch statement in python
payment_functions = { 1: process_pending_payment, 2: process_paid, 3: process_trans_failure } try: status =2 payment_functions[status]() except KeyError: process_default() In above code payment_functions is dict, where key is the one of the value of status and corresponding value is function to be invoked(but () is not present immediately).
[Read More]
python `in` operator use cases
Python *in* operator is membership test operator.*Examples:*List—-
In [1]: python_webframeworks = ['flask', 'django', 'pylons', 'pyramid', 'brubeck'] In [2]: 'flask' in python_webframeworks Out[2]: True In [3]: 'web.py' in python_webframeworks Out[3]: False in operator iterates over the list of elements and returns True or False.
What about nested list?
In [4]: webframeworks = [['flask', 'django', 'pyramid'],['rails', 'sintara'],['zend', 'symfony']] In [5]: 'flask' in webframeworks Out[5]: False in isnt handy for nested list, unless it is overriden.
[Read More]