Tuesday, June 25, 2024

Just part of writing code

TFW you think "This function should do XYZ" and make it do it right the first time.
So much better than when I rewrote a function 3 times, and was questioning if I even had a clue of what I am doing, before realizing I was editing the wrong csv, which is why it wasn't finding my test cases.
That these 2 things happened 15 minutes apart... That is just part of writing code, right?

 I have made the thing.

I used what I made to update part of a Confluence page.
The updating the Confluence page part is ugly.
Part of the part I made turned a section filled with 'MW-Req-1124' 77 times, and 'MW-Req-116' 56 times into 'MW-Req 1124: 77, MW-Req-116: 56'
Now to make it better, and based on api calls and not scraping a spreadsheet.

Friday, June 21, 2024

 Coworker is not yet sold on AI as a helper, so I point out the things I have it do.

Today's was I had it turn a 300 row, 2 column table into a python dictionary.
The computer did it in about 2 seconds.
It would have taken me a long time, as took
Col1 Col2
and turned it into
'Col1':'Col2',
for all 300 rows.
This is what AI is for.
Sure, I could have written a script to do it, but why spend time creating something I might not need again for some time?

Oh wait, I should have hired someone to do it, to prevent 'robots' from taking our jobs.

Thursday, June 20, 2024

 How focused am I on wrapping my brain around making this code work?

Well, I just used my teeth to rip the top off the Ziploc bag my sandwich is in, and only noticed when I was trying to get the sandwich out.

I am blaming it on my having also pulled a tiny package of chips out of my lunchbox, so I was thinking I was opening that.

Tuesday, October 31, 2023

Bang your head! Tech stuff will drive you mad!

If at first you do not secede, bang your head on the desk a couple of more times. Then step back and look at it all again.

Trying to install custom HTML snippits in VS Code. Looks super easy. Follow the tutorial perfectly. https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets

Go here.
Select HTML
Paste this in the json file that opens.
Save it.
Done.

Fails to work. OK, delete file and try again.
Fails again.
What the... oh wait. The html file I am trying it in is coming up as a django-html file. What if I pick django rather than html?
SUCCESS!

Wednesday, October 25, 2023

Get A Big Picture View

 One of the things that has come up when I am helping people is that they don't just need to create a solution, they need a solution that works well with what others are doing. Your solution shouldn't create headaches for others.


This isn't just a coding thing, but in all things. Moving the teapots to the 3rd shelf might be a solution, but some of the folks who use the teapots are not able to reach the 3rd shelf, and now they have to get the step stool to make tea.

Sometimes you need to step back for a minute and get a big picture view of what's going on.

I think I work better on a team

 I have an interview today with Boeing, so I fired up our capstone project, and realized I am missing the insanity of that time, chatting with folks as we try and solve problems, playing with all the different personalities as each person takes different ways to approach them.

I've been doing some stuff on my own, but I think I work better on a team. 

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...