I've just started to teach myself how to use AI in order to speed up software development. My initial approach will be to only use it to create small chunks of code (individual functions) at a time so that I can still understand everything about the application. In other words, use AI to autocomplete the code for a function, based on docstrings or pseudo code prompts.
I will still be the overall architect - specifying the programming language, development tools, libraries/framework and application structure. Documentation and unit tests are still esential (thinking of my future self). By doing this, I can still prompt the agents in a controlled and exact manner without them making too many guesses and churning out too much slop. Hopefully by doing it this way, with prolonged use of AI for coding I don't de-skill myself.
I've already been on the receiving end of trying to maintain someone else's abandoned attempt of vibe coding. Get it wrong and you end up with disposable write-only software that can't be maintained when software requirements or dependencies evolve.
I will add to this thread to document my progress as I learn things.
It was rewritten in Flask after being a GUI app in Python for a few years. So it's on the third rewrite already. I have been using Django for other projects since Django 0.9.x however. This app even used my own equivalent of FastAPI for some functionality years before FastAPI existed.
I mainly use Python and the project I am currently working on is Django based. The same app has been evolving since 2006. The first incarnation used Python 2.3 and wxpython. I have a habit of writing code before tests, (i.e. not TDD!) and want to make more progress with features. As a result, unit tests end up getting neglected. The plan feature of Grok build has already made me spot one bug in my code which had gone unnoticed.
Step 2: Which Grok plan do I choose? I have no idea how many tokens I will need or use. The cheapest is Grok Plus (ยฃ7) and the most expensive is Ultra (ยฃ200). As it is possible to upgrade/downgrade I will start with the cheapest. Getting information about this seems difficult - the plans, availability and prices are changing so fast, not even Grok itself gives consistent answers.
I've gone with the cheapest option.
Added unexpected bonus - I now have a blue tick on this X account. Can I now edit tweets? The character limit seems to have disappeared (noticed while typing this thread).
I'm slowly learning how to use Grok build - start a prompt with '/plan' to produce a more detailed look at Grok's analysis of the code, and how it intends to implement the requested changes. If anything looks wrong, needs clarification or is missing them you can add a comment and regenerate the plan. When you are happy, approve the plan and wait a minute or two for your code to appear.
Another useful command - '/usage'. It didn't work on the free version! After 2 evenings of work I have only used up half of this week's tokens! I don't think I'll get chance to run out of tokens this week as I'm busy with other things. It's already saved me a couple of days work.
I hope I don't get over confident and let it produce code faster than I can review and understand it. This was my initial concern. So far, I have only used it to add unit tests to one project.
Step 1: Where do I start? What plugins or software do I use to prompt agents?
I have seen lots of youtube videos of people with VS Code plug-ins. What are they? How do i use them? I can't find much by searching and I don't have anyone else to teach me. As I am more accustomed to using a simple text-based editor (vim), being forced to use VS Code seems like a more bloated way of working.
As I already use Grok (free) instead of traditional search engines when searching the web, I will use Grok as a starting point. A quick search reveals 'Grok build' - a console-based way of working. This seems to suit my existing style!
I download it and start on something simple - create a few unit test cases for an existing function in an existing application.
I'm still on the free version of Grok - how many have I got left? How many am I using? The free version does not tell you this until you run out. It resets (after a day?) and this is limiting how much I can do.
I've now seen a tiny bit of how fast and accurate the AI code is - I'm now willing to pay to find out what more it can do.
Here is our current beer selection for trade customers. This week we have a new beer 'Harlequin 4.1%' as well as our core beers.
Place your orders now!
@prozeth I'm exactly the same - I think AI is best used as autocomplete and web search. The amount of slop content flying around the internet these days is ridiculous. AI is in turn trained on this slop and will end up being less effective in the long run.