P
P
parafin112016-03-19 13:54:36
Python
parafin11, 2016-03-19 13:54:36

Python. From theory to practice?

Good time of the day! Please do not "throw stones" ... Background: I have been studying Python for some time (about 4 months), I have been trained at codecademy, codeschool, I read and read Lutz "Learning Python" thoughtfully enough, I really want to start making some of my own project, but due to my nubism, I can’t figure out how to tie it all together. I read on various forums that you can try to write your blog, business card site, store, web application, etc. But how knowing data types, iterators, generators, a bit of OOP and some other things apply this knowledge to create something real. Tell me where to move on, pulling towards the web.
PS sorry for so much confusion in my head...

Answer the question

In order to leave comments, you need to log in

9 answer(s)
S
Saboteur, 2016-03-19
@saboteur_kiev

The essence of your misunderstanding lies in the fact that now programming consists not only of knowing the programming language, but of knowing the stack of technologies from which you can build a product.
For example, to make a website in python, you need to understand how http works in principle, learn html, understand how to attach python to a web server (cgi?), figure out how authorization works, how to store data (sql?). Often frameworks are used for this, therefore, deal with them, and frameworks already need OOP.
Therefore, just try to find tasks that you can do right now - simple automation scripts. Calculations of any useful things for you. Learn the technology stack for something more.
Try writing your own tic-tac-toe.
In general, keep learning.

A
aRegius, 2016-03-22
@aRegius

If you are drawn towards the web, then Django / Flask is in your hands (as for me personally, I work with Django). And the best option for your own, first, interesting, full-fledged and relevant project is your website / blog.
In order to load yourself as useful as possible and do it all from scratch, more or less presentable, but without ready-made templates a la Wordpress, I recommend that you additionally study HTML and CSS .
In order to realize all this, you will need 4 books, desire and self-discipline. In terms of time - everything is very individual and will depend on how much of it you have for this job, plus the degree of your learning ability.
Books:
1. Django. Detailed guideAdrian Holovaty, Jacob Kaplan-Moss
Yes, the book is really 2009 edition (original). But don't let that bother you. Its value exceeds the fact that some of the information contained in it is outdated. Moreover, it is written by the direct creators of Django - first-hand information.
2. Django Girls Tutorial Django Girls non-profit organization
Can be read online, PDF can be downloaded.
3.HTML5 . The Missing Guide by Matthew McDonald
4. The Big Book of CSS3 by David McFarland
All of the above is available in both Russian and English and is freely available.
Book 1 will introduce you to Django.
Book 2 will show you, step by step, how to create your own blog/website with Django.
Books 3 and 4 are needed in order to bring the appearance of the resource into a more or less noble form.
Enough to get started. As an operational reference, use the official manual (or djbook.ru - if there is no English yet).
If your choice is Flask, I won't tell you.
If you speak English at the level of reading literature, pay attention to this book (after the first, instead of the second).

V
Vadim Yakovlev, 2016-03-19
@1nn0

I'll put my 5 cents in:
I started learning Python for all kinds of atomization scripts (simple and expressive syntax, OOP, PEP8 after all). At first, I wrote a small crutch script for sending Push notifications, then I rewrote the scripts that I use in my work from Bash to Python. Learned a lot about the standard library and third-party modules (requests, workerpool). Then the enterprise needed to replace the old telephone directory (internal site). Wrote it based on Flask. So, from simple to complex, eerily trite, but it works.
And yet, Lutz's book is more of an academic guide to the language (He also has "Programming in Python", this is closer to practice). In order to start coding, they helped me more:
Zed Shaw - Learn Python The Hard Way
Programming in Python (Michael Dawson)
and as a workout: checkio.org

A
alexandershelupinin, 2016-03-20
@alexandershelupinin

The easiest way to structure the confusion in your head is to start doing real practical projects, then the result (working / not working) will tell you exactly whether you understood this or that material on python.
The easiest way to start doing projects is to start doing something that interests you and that, in theory, can bring some money (this is to always have the motivation to finish it to the end).
The most realistic approach is to start either with small projects, or with a complex project that can be structurally broken down into many small ones, so small that they are interesting and useful in their own right.
Just as an example from my life - you can try to promote a twitter/instagram/fb/vk account by automating everything and everything, including searching / parsing / posting content, searching / adding / liking friends, etc. For example, I automated all promotion tasks https://twitter.com/jokeforeveryone , Twitter has a simple API and a bunch of modules for python, for example tweepy, twithon.

C
Cyber_bober, 2016-03-19
@Cyber_bober

https://www.djangoproject.com

Q
quux, 2016-03-24
@quux

Here's free wise advice for you: don't do anything of your own yet, because you're a native coder. Find a good open source project, join the community and build on it.

I
Ilya, 2016-03-19
@FireGM

To implement one of the projects that is already spinning on the Internet. Google what raises questions, in a year you will be able to google less, everything you need will already be in your bookmarks :)
Just kidding, of course, but you just have to do it. Stay motivated and write code.
Ps Such a question seems to be written every day.

N
nothingmore, 2016-03-19
@nothingmore

So yes, frameworks. Various third party libraries. And more OOP.
Still, it's better to start with some kind of grabber or a simple bot there. IMHO, you should not immediately take on a relatively large and serious project. It is better to come to it through a series of small projects.
Well, the rest of the "gentleman's set" for the web to master, as it were desirable: HTML, CSS, JS. Chances are PHP won't hurt either. You can't get very far on a single YP ...

V
Vov Vov, 2016-03-19
@balamut108

To begin with, I recommend that you still strengthen your skills in pure Python, otherwise it will be like in one course on Django, where the author called the standard string method lower() the Django method. Here is an example of a course: propercourse.ru/courses/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question