Brett Pittman
agbrettpittman.bsky.social
Brett Pittman
@agbrettpittman.bsky.social
D100Y3 / #100DaysOfCode and that's another year down! I finished making the rust app store data in SQLite, and pushed it up to GitHub. I've learned quite a bit this time around. I explored Rust, automated testing, and web sockets! It's definitely been a beneficial 100 days :)
February 14, 2025 at 3:47 AM
D99Y3 / #100DaysOfCode With 2 days left (including today) I decided to try quickly implementing a sqlite DB for the todo cli. Nothing complex, just a single table. But still something useful for the last 2 days. Today I got creating the table, adding to it, and listing from it working!
February 13, 2025 at 3:23 AM
D98Y3 / #100DaysOfCode After much frustration, I discovered the problem with my get_todo function was with how I was handling errs. Fixed that, then cleaned up the rest of the code and got it in a decent place. Lastly, I created a utils file and broke the structs into their own files.
February 12, 2025 at 1:04 AM
D97Y3 / #100DaysOfCode Worked further on improving the logic flow today. I'm stuck right now working on implementing a "get_todo" method I implemented on the TodoList struct. The goal is that it handles all validation for accessing a todo.
February 11, 2025 at 2:29 AM
D96Y3 / #100DaysOfCode Hashmaps are far more complex in Rust than previously anticipated. So I've abandoned that method of cleaning my code and instead am focusing on improving the logic flow.
February 10, 2025 at 3:27 AM
D95Y3 / #100DaysOfCode Today I moved the add and delete functionality to the todo list struct. I also create a function that takes a user's command and parses it into a hashmap of it's different pieces so that that logic doesn't have to be repeated.
February 9, 2025 at 3:18 AM
D94Y3 / #100DaysOfCode I'm in the final stages of my Rust todo app. Right now I'm working on converting my todos vector into a struct with implementations for adding and deleting a todo. today I also moved the check / uncheck, and display functionality to the Todo struct as implementations.
February 7, 2025 at 7:11 PM
D93Y3 / #100DaysOfCode Today for my Rust based todo app I modified the delete to work like the update and create. I also added check / uncheck functionality and tweaked the interface to be a bit more friendly.
February 6, 2025 at 11:27 PM
D92Y3 / #100DaysOfCode Today I got update working similar to create so that you can just type "update 1 my renamed todo" and it will rename the first todo to "my renamed todo". This got me much deeper into error handling. I'm slowly getting more familiar with that.
February 6, 2025 at 3:51 AM
D91Y3 / #100DaysOfCode more working on the Rust Todo CLI. I now have the create command for the todos parsing the command in a single line..."add my todo" will create a todo called "my todo"
February 5, 2025 at 3:02 AM
D90Y3 / #100DaysOfCode more working on the Rust Todo app. Today I got the app running in a loop so that it lets the user decide what CRUD operation they want to perform. I like the idea of transforming it into a CLI. I also got a bit more acquainted with references in the process.
February 4, 2025 at 2:37 AM
D89Y3 / #100DaysOfCode I lied, I am not doing CSS challenges. I decided that only having my laptop screen meant more rust experimentation would be less hassle. So I went with the tried and true todo app example. I have CRUD working and am working on user input.
February 3, 2025 at 3:53 AM
D88Y3 / #100DaysOfCode Finished the Rust course by Bek Brace. Learned about error handling, vectors, hashmaps, and a little more in depth about strings in Rust (which are weirdly complicated coming from a python and JS background). Will be at #nanog93 for 4 days, so CSS challenges for those days.
February 1, 2025 at 10:13 PM
D87Y3 / #100DaysOfCode more rust learning from Bek Brace. Today was enums and structs. Structs feel vaguely like classes,but without methods. And no inheritance. Further investigation showed that traits and composition are used in lieu of traditional inheritance.
February 1, 2025 at 2:30 AM
D86Y3 / #100DaysOfCode Today was conditionals and loops in rust. I thought it was pretty cool that it has a built in way to return a value from a loop. Granted, in python and JS you would just have an external var, but having one inline with the loop is so much cleaner.
January 30, 2025 at 11:28 PM
D85Y3 / #100DaysOfCode more learning about Rust today. Today was variable mutations, constants, and shadowing. Shadowing confused me quite a bit because it seemed incredibly similar to reassignment in other languages. Some research showed the differences.
January 30, 2025 at 4:55 AM
D84Y3 / #100DaysOfCode More learning about Rust today from Bek Brace. Today he got into borrowing. I really was not grasping the concept and how it worked, so I spent the night exploring and trying to understand how it worked and why it was necessary.
January 29, 2025 at 1:58 AM
D83Y3 / #100DaysOfCode More learning about Rust today from Bek Brace. Today was functions and ownership (we haven't gotten very far into borrowing yet). Functions are relatively uncomplicated (so far). Ownership makes some sense, but contrasting with borrowing tomorrow will help clarify the meaning.
January 27, 2025 at 11:24 PM
D82Y3 / #100DaysOfCode I mostly got my Network Event Monitor app where I wanted and did what I wanted with it. With the little time I have left, I wanted to dip my toes in Rust. I'm using a course by Bek Brace for the basics. If time permits, I'll try to build a tiny project.
January 27, 2025 at 3:35 AM
D81Y3 / #100DaysOfCode Fixed the problem with deleting widgets (it was affecting all widget deletion). Changing the URL for an HTTP checker now resets the checker's stats. Creating a widget in an active event now auto activates it. There were other changes, but char limit 🤷🏼
January 25, 2025 at 11:22 PM
D80Y3 / #100DaysOfCode Today I worked on getting the custom widget to deleting. Working through various issues at the moment. I'm hoping to get them worked out by the end of tomorrow.
January 25, 2025 at 2:09 AM
D79Y3 / #100DaysOfCode forgot to post yesterday. Yesterday I got the edit form working, including changing the running checker if needed. I implemented error handling that displays an error in the widget if an error occurs in the request or if the status code is > 400
January 24, 2025 at 1:15 PM
D78Y3 / #100DaysOfCode More work on the HTTP Response checker. I got an edit form displaying for it. I also wrote up a README for the project and made it so that you can't add a new widget after an event has ended.
January 23, 2025 at 1:12 AM
D77Y3 / #100DaysOfCode decided to do a CSS challenge from @iCodeThis. As in the past, I kept it to a flat hour, so the lack of fidelity is me picking which things needed to get done in that hour, and which were less critical. Also no AI was used. Original has Sarah in the name.
January 22, 2025 at 2:30 AM
D76Y3 / #100DaysOfCode Found and squashed a bug that was causing socket broadcast messages to be sent to the incorrect widget. Got live updates working for the HTTP Response checker. Finally added a bit of styling said checker.
January 20, 2025 at 10:29 PM