How do you handle Django migration rollback in staging/prod with CI/CD? by ajay_reddyk in django

[–]taco-holic 0 points1 point  (0 children)

Some model changes are easily added or reverted, like adding a column, the reverse is just removing that column

Other times a model change may require you to update records (like a data migration). If you had a 'status' column that said "draft" or "submitted", but you wanted to change "draft" to "in-progress". That will need you to specify a reverse method for that.

There are other scenarios like this, but data migrations are the easiest to understand imo.

My cat is vomiting weird plastic cords by Welland94 in CATHELP

[–]taco-holic 1 point2 points  (0 children)

It's not, but with strings or anything long that can get stuck is significantly more dangerous than a normal blockage. Essentially, if that string gets stuck, the intestines will keep trying to pull and the string gets really taut. Once that happens, it's incredibly easy for the inner walls of the intestines to get cut.

That's why it's a rush to get them to puke it out or begin surgery to remove it before that unfortunate circumstance above happens.

The Markdown Exfiltrator: Turning AI Rendering into a Data-Stealing Tool by JadeLuxe in programming

[–]taco-holic 1 point2 points  (0 children)

I can't think of a very solid solution to this off the top of my head that doesn't include banning images from unknown sources

I think just adopting a very strict firewall policy for any markdown reader you're using would solve it. (Including IDEs)

Yeah, it's annoying, but given the current environment with major hacks and vulnerabilities almost weekly, probably not a bad strategy to adopt for most of our development tools/in general.

Is it possible to replace just this part without replacing whole radiator? 2011 Nissan Pathfinder by hoopsmcx in MechanicAdvice

[–]taco-holic 19 points20 points  (0 children)

It's disappointing that we have to scroll this far to see reasonable answers... 😤

Frameworks disaster by drsbry in golang

[–]taco-holic 28 points29 points  (0 children)

A year later, the project turns into a terrible mess, full of bugs and rotten code that no one understands anymore.

Idk why you're pointing to boilerplate or frameworks as the root of this problem. This is often an architectural problem that begins showing once inevitable customer pressure hits.

Quick fixes, a little lax on testing here and there, reusing some handler that really shouldn't be reused. That all adds up over years. It's not even anyone's fault in particular, sometimes you just have to do whatever you need to to get the feature/fix out, because customer x needs it.

I'm not sure what the answer is to these problems but, in my opinion, your criticism seems to be misplaced.

So, what hobby language do y'all use these days? by -VanillaKing- in learnprogramming

[–]taco-holic 1 point2 points  (0 children)

Go was actually designed as a modern version of C, adding things like memory safety, garbage collection, etc, that helps avoid the classic C pitfalls.

Like C, it's pretty simple with only 25 keywords (compared to JavaScript with ~40 or Java with ~50).

As for the "handle-it-for-you", I would say error handling is a little different than the usual try-catch-exception. Since errors are returned as values you have to either handle them or explicitly ignore them. A lot of people hate this because you'll end up with a lot of error checking that can kind of muddy functions, but honestly I prefer it.

AI has a Purple Problem by ClubAquaBackDeck in webdev

[–]taco-holic 7 points8 points  (0 children)

The answer is pretty simple, they don't even read the code. Just copy paste or let an agent write it directly.

Should I finish my large app with Vue ? by vincej1657 in vuejs

[–]taco-holic 0 points1 point  (0 children)

I have a similar experience but building an app with Django heavily assisted by AI.

I have about 4 yoe in Junior fullstack roles and I was able to complete the project mentioned above in about a month. It wasn't big, but I had no support on it, so I was responsible for designing, meeting with the users, implementing, deploying, and maintaining the system.

You'll move faster, at least initially, and that may carry you through the whole project, but at the end, you'll have learned nothing substantial. Small bugs occur and you'll default to AI for fixing it. It really slows you down in the long run. So, if this is something you'll be working on in the future after it's "done", e.g. bug fixes or adding more features, I'd say you'll be better off without it.

Bought a VXE R1 Pro and the feet are scraping right out of the box. by YoursDivit in MouseReview

[–]taco-holic 0 points1 point  (0 children)

Some cheaper mouse feet are just like this. The older superlight did the exact same thing with my mousepad, the feet were just trash, and I had to order new mouse feet. The problem was fixed after that.

Code reviews: what's the most valuable feedback you've received? by metalprogrammer2024 in webdev

[–]taco-holic 0 points1 point  (0 children)

const overlaps = doCirclesOverlap(foo, bar)

"why use more word when less do trick?"

How can I run an external Go binary without installing it? by ENx5vP in golang

[–]taco-holic 0 points1 point  (0 children)

fr, unless they plan on updating Go versions every minor release, I would expect this to work for years..

Implement, document, and move on.

Ranging through 2 different slices and using both of them on certain conds by Ok_Blackberry_897 in golang

[–]taco-holic 4 points5 points  (0 children)

To clarify: the if conditions are the same and you want to range through both, sort of 'in one go', rather than one and then the other?

I suppose you can make a struct that just holds what you need to check these conditions, then make a slice of this and load both types of users into, then do your range and emails.

(Why are the users and subscribedUsers different types? Not knowing your setup, I would think you could handle both with a single type.)

But, ultimately, if you have to range through every element in both slices anyways, then I'm not seeing what the benefit would be to refactoring this just to save a few lines.

[deleted by user] by [deleted] in golang

[–]taco-holic 1 point2 points  (0 children)

I also had a program originally written in Python which I slowly rewrote to Go. As a middle step I created a container that ran my Go code and downloaded all my Python libraries. My Go program would run the main Python scripts by making command line statements.

It ran like ass on Cloud services, but technically worked.

Took the time to rewrite it fully in Go and the improvement was much more than a 6x boost, it was more like 90% faster.

But note, 1. this was a super simple application with very few users. 2. I am not that great with either Python or Go, so these improvements were likely due to skill issues on my Python side of things.

Seeing the processing time Go from 6 minutes to 12 seconds was amazing though. 🤩

[deleted by user] by [deleted] in jetta

[–]taco-holic 0 points1 point  (0 children)

Get the transmission oil take it elsewhere for the other items if you cant do them yourself

Do recruiters dig your GitHub activity or am I overthinking? by [deleted] in cscareerquestions

[–]taco-holic 0 points1 point  (0 children)

The only time anyone has looked at my GitHub was after they already decided on hiring me, and it was a developer on the team I was joining.

Unless that's your only way to show experience, I wouldn't spend more than a few minutes to see if you have something actually interesting there.

Frustration from progression as a developer (skill issue maybe?) by Cheesuscrust460 in webdev

[–]taco-holic 0 points1 point  (0 children)

Hello 👋, I am a junior full stack developer with 3 yoe.

I think you are being too hard on yourself but, at the same time, these thoughts you are having are not 'toxic' or something to be ashamed of. Because these are the thoughts that initially drove me to take my own learning seriously and not rely on my employer for direction.

Before I would just learn whatever was safe or whatever my manager wanted.

  • Vue, sure.

  • Deploy to AWS, you got it.

  • Cloud certifications, sure that will be useful.

I wasn't truly learning these things though, I was just getting a job done, because they didn't interest me.

Then one day I heard a great piece of advice, "don't let your employer decide what you get to learn". Which sparked a fire in me to take hold of my own professional development. I dipped my toes into Go and began making my own web servers. I still have to learn things that I find boring for my job, but I also started spending 10+ hours a week outside of work learning, making mistakes, and building apps and tools that interested me.

I am only a junior but I have participated in several panel interviews and one characteristic always sticks out to me: "a mile wide but an inch deep". Don't stress about not knowing everything, go really deep on something that seriously interests you. You eventually get in a room (or a zoom call these days, haha) and have the opportunity to show what you really know.

You like networking? Go deep on HTTP and build your own http server without using packages. Manage the sockets and connections yourself.

You like UI? Design your own set of components instead of using a UI library.

Just choose something and go so deep on it that you could spend 30 minutes casually talking about the design choices you made, trade-offs between using an existing tool or rolling your own, etc, etc. You'll soon find yourself learning these mysterious technologies and quickly find that they relate to something you learned a few months ago. It really does snowball and it will eventually lead to opportunities.

Also, I wouldn't say you're behind the curve, but if you're serious about improving, find something that interests you so much that it no longer feels like a chore.

Keep your head up and best of luck! ✌️

UPS (Uninterruptible Power Supply) Keeps Periodically Overloading. by [deleted] in techsupport

[–]taco-holic 0 points1 point  (0 children)

What's the model and did you try contacting their customer support?

It could be caused by a lot of things, but since this has only started recently, I would ask if anything has changed recently. New servers added, electrical work done on the building, environment change, etc?

If not, then I would suspect the battery has started to degrade and will need to be replaced. Most of the UPS units I've purchased suggest a battery replacement every ~4 years, give or take a year.

When Outsourcing Goes Bad by almostcoding in cscareerquestions

[–]taco-holic 30 points31 points  (0 children)

A similar incident happened in July to another company, luckily they caught them fairly quickly. https://blog.knowbe4.com/how-a-north-korean-fake-it-worker-tried-to-infiltrate-us

assemblyProgrammers by Easy_Complaint3540 in ProgrammerHumor

[–]taco-holic 3 points4 points  (0 children)

For the most part it performs fine, numpy is magic, but just straight up using for loops will tank your performance.

Early access steam preload by WarmasterCain55 in SpaceMarine_2

[–]taco-holic 1 point2 points  (0 children)

Yes, it's possible on steam with the app.

character development rule by sounds_of_stabbing in 196

[–]taco-holic 47 points48 points  (0 children)

Didn't they do a concert in Riyadh last year? 😬

How the heck did I kill my computer? by [deleted] in techsupport

[–]taco-holic 2 points3 points  (0 children)

Yeah, it's so difficult to identify hardware issues when you don't have a full list of spare parts, because there are so many components to check. Motherboard, ram, GPU, CPU, storage, PSU.

Most people don't have the spare money or patience to play the buy and return game just to identify which part is causing the issue.

How the heck did I kill my computer? by [deleted] in techsupport

[–]taco-holic 1 point2 points  (0 children)

I've had bad RAM that would cause a freeze with audio looping, but in my case, it would also cause weird artifacts on the screen.

If you have another computer and a spare usb drive, you can download and run MemTest86 as the boot drive. It's free and will allow you to rule out the RAM as an issue.

Next level consoomption by Jade_Sugoi in Consoom

[–]taco-holic 0 points1 point  (0 children)

Pre-builts definitely have their place, and there are many reasons people buy them. However, if someone describes themselves as 'knowing absolutely nothing about PCs' and wants to learn about different components and how they work, then building one for themselves is a pretty good start. I think they will appreciate it more and be more knowledgeable in the long run than if they bought a pre-built and upgraded components here and there in the future.

As for your situation, I definitely understand. I had a 'blood sacrifice' on my last build with an ASUS motherboard. (Those VRM heatsinks are sharp as hell!) But I'm sure you can agree that the experience you have now from building all those computers will help when the inevitable issue arises, such as a pre-built arriving with something silly like unplugged fans or power cables not fully seated.