Skip to main content

Posts

Showing posts with the label programming

AI Spec coded Python Flask Applications with and without prompt assistance

Spec coding Like everyone else, I've been playing with using LLMs as an app generation tool and like most people, I have been disappointed. The code being spit out has not been very good. And like many others, I was interested in finding ways to improve code creation.  Gemini.md I had stumbled upon this medium article and then took a look at the Gemini CLI github repo.  Much like claude, cursor and github copilot, it is possible to have standing instructions for Gemini. Just write up instructions on how you want your projects laid out, what language and libraries you want to use and how you want the LLM to prioritize things and in theory, Gemini should build an app closer to your spec. After a using gemini-cli for a few weeks I started to gather a few prompt sets from reading what others have done with claude and cursor. Laying it out in a markdown file was easy enough but I was curious if it really had any real effect. As a test, I decided to try the same prompt twice, once ...

Using Google Colab for REST API exploration and testing

New York City's Office of Technology Innovation provides a collection of useful APIs that let you access City data. For the past few weeks I have been playing with the APIs looking for useful application ideas and I've been using Google's colab product for that exploration. These APIs are free to access and you can sign up here . If you are new to Colab, Google provides an introduction notebook that covers the basics. If you've used jupyter  with Python you should be good to go. While Colab is frequently used for data science and AI, I think this is a great platform for building internal tools. For one specific type of user, users with lots of domain specific knowledge who may not know an API or tool, Colab is useful as a way of bundling instructions and code in a way that allows them to be productive.   Minimal code example for connecting to an end point This is a minimal test script. It connects to an API, uses a secure way of holding the API keys and allows the use...