Sam Smith

Computer Science Student
London, United Kingdom
About
I am a content writer and Computer Science student. I have for a number of years as both a writer and web developer and I am now studying Computer Science to build up my skills and expertise even furt... See more
Stats
Article views 18,348
Followers 2
Following 0
Skills
HTML
CSS
Python
Java

Creating games with JavaScript - Part 3

In part two of this tutorial, we focused on getting our images to move on the canvas. This meant getting our bird to move up and down and our pipes to move from right to left. We also created a loop that allows new pipes to appear on the canvas.This is the final part of the tutorial and focuses on f...

Creating games with JavaScript - Part 2

In the last article, we figured out the rules and conditions for our game and focused on getting the foundations in place, that will allow us to build a fully functioning Flappy Bird game. In this article, we will now work on creating some of that functionality and by the end of it, our Flappy Bird ...

Creating games with JavaScript - Part 1

In recent years, JavaScript has become one of the most popular programming languages there is. Thanks to developments in frameworks, JavaScript can now be used to create entire websites and even native apps. However, this diversity also makes learning JavaScript a daunting prospect for some, as they...

How to build a Django App - Part 5: Finishing the Django App

Up until now, we haven’t really given any consideration to the user of this application. As it stands, they can’t actually use the app for themselves. We will finish the app by addressing this and creating a web page that allows users to add To-dos for their own personal use.Now, we could add the fu...

How to build a Django App - Part 4: Creating the front-end

Now that we know our back-end is working, we can turn our attention to the front-end. Currently localhost:8000/todos/ gives us a page with nothing but a piece of text. So, let’s begin by heading back to the file containing the code for that piece of text. Navigate to the views.py file and then to th...

How to build a Django App - Part 3: Creating the database

This article covers how to set up a database and admin panel for a Django site. This section is arguably the most complicated part of the tutorial, but it is integral that this done correctly as it provides the backbone to our project.To start, we need to go to settings.py and scroll through the fil...

How to build a Django App - Part 2: Setting up the server

In part one, we had a look at what makes Django a good option for web development. Now, we are going to put it to use and create a simple website by building a Django app. This tutorial has been designed to be followed as a demo, showing the basics of how Django works. Therefore, it will not explain...

How to build a Django App - Part 1: What is Django?

When it comes to learning web development, it can sometimes be quite difficult to know where to start. As the web grows and evolves, so too does the technology that drives it. This is partly the reason we now have so many options available as to how we can go about building a website.First of all, i...

A Guide To Starting Your Programming Journey

It’s no secret that programming is the most popular it’s ever been. The rapid rise and development of technology since the turn of the millennium have made programming arguably the most in-demand skill in the world right now, a statistic that doesn’t look set to change any time soon.This rise in pop...

An Introduction To Test Driven Development

One of the most popular techniques used for writing programs is Test Driven Development (TDD). This disciplined approach to developing software involves writing the test for a piece of functionality before the actual implementation.Essentially what you are doing with TDD is writing a test and then w...

How To Write Tests For Python

An important part of development in any Python project is testing. Testing is used to help define the intent of your code and provide a more decoupled architecture.At a high-level unit testing is the practice of testing functions or units of code. Thanks to this we are able to verify that our code w...

Pipenv - First Impressions

Pipenv is an experimental tool with the purpose of bringing together different packaging tools in one place. It has been dubbed the “Python Development Workflow for Humans” and was developed by Kenneth Reitz. Created just over a year ago, it has already become the official Python-recommended resourc...

How To Structure a Python Project

Writing programs isn’t all about the code. Sure when it comes down to it, the code is what makes the functioning program, but in order for that program to run as it does it needs structure. Most programs are made up of multiple files and these files need to be organised in such a way that they all i...

Working With Data Types In Python

It doesn’t matter what programming language you use they will all include data types. These data types are an integral part of how programming languages work so it’s important to understand what each of them are and what they do. What are data types?Data types are used to define what a piece of data...

Writing your first Python program

If you’re new to programming, choosing your first language can be a daunting prospect. Every language has it’s pros and cons and many newcomers spend ages trying to figure out where to start.They think things like, “I plan to work as an app developer so I better start with Java” or “I want to do web...

Class creation with Java - An Introduction to Object Oriented Programming

Object Oriented programming (OOP) is a style of programming loved by many, hated by few. Once you understand it’s concepts, programming begins to feel a lot more ‘human’. What does this mean? Well OOP has allowed programmers to work with data and objects, rather than logic and actions. This has in m...