Lädt...


🔧 Lab 5 - Refactoring


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Improvements...

This week I had the task of focusing on improvements I can make to my code, while keeping functionality, and attempting to rebase my branches.

Fixes...

The fixes I chose to implement this week were removing global variables, separating my prompt logic into its own function, removing redundancies in my code, and changing variable names for better readability.

Rebase...

The interactive rebase actually went a little worse than I thought. At first I don't think I properly switched branches, even though I did a pull, something was up, and my branch had older commits tied to it for some reason which I don't know. I only had 2 commits luckily, because I did a lot of work in the first one by accident, not realizing I should have separated my work like the assignment called for.

Bugs and Better Code...

While working, I did find some bugs and even broke my program for a little bit of time there. When refactoring the main prompt logic to be in its own function, I broke the program and nothing was being added to the prompt, being an issue both with my logic reworking, and the removal of my global variables. I was able to get past this however with some Magic coding skills, and I was able to solve my mistakes. I didn't like finding mistakes, bugs, and breaking my code, because I had a lot to do throughout the week and was burnt out by the time I was able to start this task. It was a long road this week, but I'm happy my bugs are seemingly solved for now.

Project History...

Finally, as mentioned before, I did not have a fun time with rebase due to my own messing's up with git. In my git commit history there were 4 commits, 2 of them being from older commits in previous labs, and 2 of them being the new commits I made, despite it being a new branch. This was my fault and I am still trying to find out why, especially as I have now made a mess of my git history it looks like.
Image description
In the end, I learned no matter what, there is always room for improvement, and my adventures with git and failing to complete tasks will only grant me more experience as I continue.

...

📰 Bambu Lab: „PrintMon Maker“ als neues Lab-Tool in der MakerWorld


📈 18.84 Punkte
📰 IT Nachrichten

🕵️ CVE-2022-42150 | TinyLab linux-lab/cloud-lab 1.1-rc1 permission (Issue 14)


📈 18.84 Punkte
🕵️ Sicherheitslücken

⚠️ [webapps] Agilebio Lab Collector Electronic Lab Notebook v4.234 - Remote Code Execution (RCE)


📈 18.84 Punkte
⚠️ PoC

🔧 DevOps Lab Recording: Loving Azure Boards with Delivery Plans 2.0 | The DevOps Lab


📈 18.84 Punkte
🔧 Programmierung

🔧 Azure DevOps Lab- Terraform using GitHub Actions | The DevOps Lab


📈 18.84 Punkte
🔧 Programmierung

🕵️ Kaspersky Lab Kaspersky Anti-Virus 5.0-5 unix/linux privilege escalation


📈 9.42 Punkte
🕵️ Sicherheitslücken

📰 Kaspersky Lab takes bite out of Apple in Russia over borked parental controls app


📈 9.42 Punkte
📰 IT Security Nachrichten

🔧 Participating in The Collab Lab: Wrapping up


📈 9.42 Punkte
🔧 Programmierung

📰 Bambu Lab A1: Rückruf für das Heizbett-Kabel


📈 9.42 Punkte
📰 IT Nachrichten

🔧 Deploying to on-premises Windows machines with Azure DevOps - Part 3 | The DevOps Lab


📈 9.42 Punkte
🔧 Programmierung

🐧 My home lab server with 20 cores / 40 threads and 128 GB memory


📈 9.42 Punkte
🐧 Linux Tipps

📰 Request for Help with CompTIA Security+ Course and Lab Access


📈 9.42 Punkte
📰 IT Security Nachrichten

🐧 linux lab host


📈 9.42 Punkte
🐧 Linux Tipps

📰 Lab-Grown Meat Could Be On Store Shelves By 2022


📈 9.42 Punkte
📰 IT Security Nachrichten

🎥 International Space Station: Humanity’s Lab in Space (Narrated by Adam Savage)


📈 9.42 Punkte
🎥 Video | Youtube

💾 Online Diagnostic Lab Management System 1.0 Arbitrary File Upload


📈 9.42 Punkte
💾 IT Security Tools

🕵️ GitHub Security Lab: Java: CWE-532 sensitive info logging


📈 9.42 Punkte
🕵️ Sicherheitslücken

🔧 Testing and Monitoring Systems for Confidence | The DevOps Lab


📈 9.42 Punkte
🔧 Programmierung

🔧 SastaSundar - Your Trusted Online Pharmacy Solution developed by DevLoom Lab's


📈 9.42 Punkte
🔧 Programmierung

📰 Das Digital Learning Lab der Hochschule Hof


📈 9.42 Punkte
📰 IT Nachrichten

📰 Samsung stellt auf der CES neue Creative Lab-Projekte vor


📈 9.42 Punkte
📰 IT Nachrichten

📰 Full Text of US State Department Cables Finally Released, Showing Safety In Chinese Lab


📈 9.42 Punkte
📰 IT Security Nachrichten

📰 Kaspersky Lab launches bug bounty program


📈 9.42 Punkte
📰 IT Security Nachrichten

📰 Rocket Lab Becomes Second Company After SpaceX To Launch and Land Orbital Rocket


📈 9.42 Punkte
📰 IT Security Nachrichten

📰 Kaspersky Lab Promises New Backup Tool To Help Unhappy Social Media Users Quit


📈 9.42 Punkte
📰 IT Security Nachrichten

📰 China Launches Second Space Lab


📈 9.42 Punkte
📰 IT Security

🔧 On Prem To The Cloud: Migrating to Azure SQL (episode 7) | The DevOps Lab


📈 9.42 Punkte
🔧 Programmierung

🎥 BGEID, ePA, Bethesda, Rocket Lab | Kurz informiert vom 08.03.2021 by heise online


📈 9.42 Punkte
🎥 Videos

📰 Black Lab Enterprise Linux 11 Xfce and MATE Spins Now Available for Download


📈 9.42 Punkte
📰 IT Security Nachrichten

📰 Can an in-person coding lab revitalize a city and diversify the tech industry?


📈 9.42 Punkte
📰 IT Nachrichten

🔧 From Server 2012 to AKS with Azure Migrate | The DevOps Lab


📈 9.42 Punkte
🔧 Programmierung

📰 How Kaspersky Lab got on the US government's bad side


📈 9.42 Punkte
📰 IT Security Nachrichten

matomo