Writing
Blog
Product notes, engineering write-ups, and lessons from building software.

How to use url_for in Flask
Flask provides an easy way to dynamically auto-generate href paths in your HTML files using the url_for function. The first step is to import url_for at the top of your Flask application file.from flask import url_forOnce you've done that, we can jump over to your HTML files to start implementing url_for. Let's start with your CSS link. Without url_for, you might link your stylesheet using an explicit path.<link rel="stylesheet" href="static/stylesheets/custom/index.css">With url_for, we can rep

Insertion sort, in normal people terms
Insertion sort is simply a method of putting a group of items that are out of order into the correct order. Imagine there are a group of people standing in a line in front of you. Then imagine you are tasked with putting them in height order. You'd probably be able to get the job done without any sort of method, and that's because you have a smart human brain. Computers, on the other hand, need very specific step-by-step instructions telling them exactly how to get the job done (AKA code).

How to create a web app using Flask in Python (Part 3)
If you haven't already, read Part 1 and Part 2 in our Flask series. This tutorial is going to pick up where Part 2 left off. If you followed the instructions correctly, you should have a file called flask_web_app.py with the following code: from flask import Flask, render_template

How to create a web app using Flask in Python (Part 2)
If you haven't already, read Part 1 in our Flask series. This tutorial is going to pick up where Part 1 left off. If you followed the instructions correctly, you should have a Python file with the following code: from flask import Flask

How to create a web app using Flask in Python (Part 1)
Flask is a lightweight web application framework written in Python. Other examples of popular web frameworks are Ruby on Rails, Django, and Spring. Flask's no-frills, minimal design makes it a good choice for beginners to get started with web application development. Web frameworks are by no means a requirements to build a website, but they're useful for developing in any language other than JavaScript and for more complicated sites.The first step to using Flask is to install Flask. To achieve t

What is the purpose of a web framework
HTML only supports JavaScript by default, so if you want to use any other programming language for your website, you need a web framework. Also, web frameworks have a lot of complicated code already written for you to call into, preventing the need to write everything from scratch.

The five-step process to solving any LeetCode challenge problem
Many CodeConda students are at the stage of their learning where they are familiar with much of the syntax and structure of a certain language, but have difficulty pulling their knowledge together to solve a challenge problem. If this resonates with you, you've come to the right place! Fortunately, the ability to develop a solution to a coding problem is a skill that can certainly be learned. Further, there are five-steps any coder can follow to reach the solution to a problem more easily.

How to run Python code
The first step in learning to code is setting up your computer to be able to run the code that you write. For Python, this can be achieved using the command line or an IDE (Integrated Development Environment). We recommend the VS Code (Visual Studio Code) IDE for beginners. VS Code is a fully-featured IDE created by Microsoft that supports a wide range of programming languages (including Python). This post will be walking through how to set up VS Code to execute Python code.