trallard / shef_codefirst_python Goto Github PK
View Code? Open in Web Editor NEWCourse materials for the Advanced Python course in Sheffield π€πͺπΌπ©π»βπ»
Home Page: http://bitsandchips.me/Shef_CodeFirst_Python/
Course materials for the Advanced Python course in Sheffield π€πͺπΌπ©π»βπ»
Home Page: http://bitsandchips.me/Shef_CodeFirst_Python/
As the course progresses, if there are enough questions all asking similar things, maybe we could maintain a course FAQ section as we go along? Thoughts?
We are running an installathon session on 12th of October @Diamond
Please try to be there (confirm here your attendance)
Once you have chosen your sessions (see #3 ) the workflow will be as follow:
Remember we will be encouraging regular use of GitHub hence the adoption of a central material content
On previous programming courses with my team we have used a 'sticky note' approach to identify those attendees that need help with something.
At the beginning of the course we give them two sticky notes (e.g. one green one red) and ask them to use them as follow: stick the green on to of their laptop if everything is ok and they have completed the 'assigned task' stick the red if they need help/are stuck. That way the instructors acting as helpers know who to help without distracting the main instructor or the class. Also if most of the girls are struggling the main instructor would be able to see this and allow for extra time, clarification, slowing down... etc
Thoughts????
Sheffield meeting to take place on October 6th @6pm venue to be confirmed later
choose venue
inform others
create material
Here's a rough structure of how I'm thinking the session and a half should go:
Before we go into the technical details on how to use Flask, cover:
Now, the technical part:
Live code together the very first, basic Flask app
python app.py
command in the terminal (assuming we named our file app.py
)localhost:5000
and they should be able to see "Hello, #ShefCodeFirst students" in their browserlocalhost:5000/ihf
to show that it will lead to an error, since we haven't defined how to handle requests for ihf
Follow up with an example which takes a URL parameter (similar to "arguments" mentioned in Python). E.g. a function with @app.route("/<name>")
above will capture "darren" in the variable name
if localhost:5000/darren
is typed in the browser
Ignore the part in the curriculum note which says that we need to control-c and restart our server. It's wrong. With debug=True
, Flask restarts the server automatically when it detects code changes.
Set up a typical Flask app folder structure together
static
folder where CSS, JavaScript and other resources (images, videos) are placedtemplates
folder, where the HTML files goLinking up a basic HTML template together
render_template
functionrender_template
function from Python in the templatesPicking up from where we left off from the previous session, before we dive into the technical details:
What is a template engine? Why do we use it?
Routing?
/hello
therefore can be accessed by <hostname>:<port_number>/hello
POST requests
Now, the technical details:
request
from Flask
!request.value
convenience CombinedMultiDict
from Flask to grab data from requests to ease confusion!{% include "header.html" %}
etc to load it into main page HTML templateBooked pizza at Interval Bar on the 7th of November.
uick git sheetPlease indicate if you won't be able to make any of the sessions.
Make sure to comment with your name and dates π
Will add it to the Sheffield repo and then import them directly here (check this issue)
This process needs to be done better this year because we have the ShefCodeFirst.com that showcases all of the previous work. Any suggestions on how we can improve this? The only thing I can think of is mentioning the project early on and making it an objective during a session to deploy their apps etc. onto Heroku.
Could you please write down here a mini bio of your self for me to put in our site π ???
It should contain:
Just add it as a comment here
Also if you have a picture of yourself add it to the repo please!
We have 4 instructors now! so each should decide on 1-2 sessions to lead and prepare the material accordingly
Make sure the material is added here **before ** the sessions and assign a reviewer (another instructor not leading the session)
Due to the limited time we have to cover so much content, we thought that it may be a good idea to mention in the intro/welcome email to the girls that they should do the exercises up to a certain chapter in the LPTHW e-book before the first session.
I'll have a look through and decide what that certain chapter should be soon!
Need to create main content on the course materials
Also need to create the super useful quick git sheet
Hi everyone,
I'd like to invite some quick talks to the classes. I know you'd rather crack on with the lessons but to switch it up a bit I think having talks once in a while would be good.
I will make sure to add the course content and display this as a GitBook as suggested by my buddy
This will ensure everything is online w/nice rendering
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.