Skip to content
Ryan James
Menu
← All writing

#webdev

14 articles

Let's Play AlphaAs a computer science teacher I love teaching algorithms without using code. One of my favorite ways to introduce divide and conquer algorithms is to start with the binary search algorithm. What I like to do is grab a dictionary from the library and challenge the students to how many guesses it will take to find what page number any word in the dictionary is on. A dictionary that may have hundreds of pages gets consolidated down to a small amount of page turns using that algorithm.Projects10 min
Learning with Astro:DBPeople that know me or have read my previous articles know that I typically work in one of those other React frameworks that we will not name here. I skipped the line on learning web development and reached for one of the easiest when I decided to learn JavaScript after using Python for shipping sites. What do I know about using Astro? I would say that I know very little. I have only built a few micro-sites and on the one I spent the most time on, I was building a React component for all the heavy lifting of the site. So I was literally learning as I was building a site to connect with Astro’s new db feature.Blog10 min
Making a Full Stack App with CRUDI’ve been using NextJS for a good bit now building my web applications. For my personal site and other applications I felt really comfortable using the Pages router. With some of the newer features that started in version 13 and now in 14, I figured I need to start getting used to the App router. As a computer science teacher, I think that building an application that uses CRUD (create-read-update-delete), is a great way to understand a lot of programming concepts from arrays, objects, sorting data, filtering data, and mutating data. So, I took it on myself to do this for myself. In this guide, I’ll share what I learned about building a full-stack application using NextJS 14 with a GraphQL CMS.Blog15 min
Educators: Use the Jamstack Part 2Next.js is a library for the React JavaScript framework. It simplifies a lot of things for people that are new to building sites in JavaScript. Probably the thing I like about it the most is how quick you can get a multi-page site up and running. Depending on the logic, data fetching, and page count, you can sometimes get a proof of concept up and running in under a day. This seems absurd. Alright, so let's get into it. In this article, we are going to build a site with dynamic routing. Dynamic routing is something that Next.js can do for you. It allows you to create pages on the fly - you don't have to build out a separate page for each route. We are going to build a site for choosing hex colors. You can see the site working here and if you want the final code, I have a GitHub repo for you. The site builds a new page for each color that is entered, dynamically. These pages don't exist until a user navigates to them.Blog20 min
Ramblings, Musings and UpdatesI feel like I've been so busy lately, it's been hard to really sit down and get to creating content. As the Technology Coordinator for a school (well actually like 4 schools) my day gets away from me pretty easily. The school I work in is split into 4 divisions where each one is in a different building - so there's lots of walking and lots of questions asked. I've found the best way to get work done is to stay in my office. But, things are starting to calm down a bit and I'm getting back to writing code again. I even had time to answer the Interview Question for @cassidoo's newsletter this week. In addition I've started playing around with a new framework.Blog5 min
Rethinking Binary and HexadecimalWe're winding down the summer at my school and teachers report back on Monday. This will be my first school year working in the tech department and I'm thrilled. I still have one class to teach and that's AP Computer Science Principles. Part of the summer I decided to work on some of my web apps/widgets for that class and I'm ready to talk about them. Teaching numbers in CS to teenagers can be really difficult. It's abstract, mathy, and doesn't have the glitz and glamor of changing code outputs or updating CSS for a new color.Blog10 min
Learning a New StackI've been dabbling in web development off and on for the past 3-5 years. I started off with HTML and CSS and using tools like GitHub Pages to serve the static content. Once I got more comfortable with OOP in Python, I learned how to build applications with a server using Python and SQL as my backend serving template pages. This was hard to keep track of sessions and creating a complex schema with relations, but it worked. Now I'm on a new iteration of building for the web. I drank the Kool-Aid and I'm doing Jamstack for a while now. I had to really buckle down and get back to the basics of JavaScript which is something I needed to do for a while. I'm not an expert on Jamstack or even the tools I'm using, but I'm having so much fun learning a new stack and playing with new tools. I've been quiet on the programming front for the past 2 years, but this has really invigorated me to get back to it. Let's dive in to this and see what you can do with this.Blog10 min