Tuesday, February 18, 2025

Naming conventions are important

People not following naming conventions is going to drive me insane. 

Xxxx_xxx_dddd is not the same as Xxxx_xxx-dddd.

Ok, so check if char 8 is... No wait, just get rid if char 8... Xxxx_xxxdddd doesn't care if there used to be a - or a _ there.

Ok, thanks for helping me figure out how to fix this.

Wednesday, February 12, 2025

It runs faster!

 I refactored some code, cutting run time by 34%.

The program runs once a day, takes 5 minutes, with 4 minutes of that being 2 rounds of "Wait 120 seconds and make sure we really disconnected". Around 6hrs of writing, testing, and getting approval to save 7 seconds of time per day. 

This is the life of a junior.

Sunday, February 9, 2025

Can AI code?

 Today for fun I wanted to see how much I could do just using AI code.

Below is the prompts I used:

  1. Using python, I want to create a todo type app that uses json to store the data
  2. Based off the code above, add in a due date
  3. Sort tasks by due date
  4. Add in a priority rating for task, sort task by due date and then by priority.
  5. Have option 5 show a list of uncompleted tasks, and a list of completed tasks
  6. Add in an option to edit existing task, including description, due date & priority
  7. Rather than using the command line, lets create a html interface
Step 6 I hit the first thing it didn't take into account. If you edit a task that already has a priority but remove it and don't assign it a new one it would assign it null, and then couldn't show the lists of tasks. I wrote my first bit of code and changed None to 0. Step 7... it tried to use enumerate in the task filter, which didn't work. I told it the error message I was getting and it offered me 2 fixes. Both worked, so I went with the simpler one.
Then I found out the edit button didn't bring up the edit form. "Oh hey, sorry. Here are some fixes to the JS"... still not working. Fed it all of the code in index.html. "Here you go. I had left the edit form empty". That worked.
Link to the repo I am storing it in, with pictures, and arrows, and a note on the back: https://github.com/krgirard33/todo_app

Monday, December 9, 2024

Definition of Done isn't done

 How not to write the definition of done:

* The new functionality is implemented. 

* Producer & Leader have reviewed it. 


This says nothing useful, and is generic enough to apply to every story. 

"When it works and is reviewed, it is done"

I did what?

 Work is them asking for a program to do a thing. 

It starts off bare bones, and gets more and more complex and complete each day.

And then one day it is done, and you turn it over to be run by an automated system, or other people.

Later, they ask you to make some changes, so you open up the files and try to understand why you wrote that, and this does what?

Eventually you make the changes, and hand it off again, not to think of it till they want more changes. 

I know how to do it...

 Me: I know how to do this. I have done it multiple times over the last couple of years. 


Me 20 minutes later: OK, I think I missed a step... or 10. OK, off to read my notes... or should I just google it? 


Me 30 minutes later reading "Hello World" at one of my favorite websites: http://127.0.0.1:5000/


And now, because I have been thinking about Flask, I have Flash (Gordon) by Queen playing in my head.

Sunday, October 6, 2024

When dreams die

"Please write a function that reverses a string using the split and join method" 

2 years ago that was a very important thing to me, and I got to watch as multiple other students realized that coding was not for them. 

I spent around 45 minutes after class helping one student try and wrap their brain around it, and they never did. I had an easier time teaching dogs to climb ladders and slide down slides. Yeah, I am odd. 

Now I am at the level of "Please write a function that checks if a string is a palindrome, and if it is say 'No work is needed', and if it is not then reverse the string.", and I bet that you are as well.

We can't do that here

I remember years ago looking over a book, Automate the Boring Stuff with Python, and thinking how this would be so useful at work. Half of m...