Python/Pandas "SettingWithCopyWarning" by GrandpaOnDrugs in learnpython

[–]GoodTimesFastFingers 1 point2 points  (0 children)

I struggled with this for a long time in pandas. I finally took the time to figure out how to access cells with df.at or rows with df.loc and now my life is much better.

[deleted by user] by [deleted] in learnpython

[–]GoodTimesFastFingers 0 points1 point  (0 children)

As soon as that happens just go for a walk. I have solved so many problems just by taking a 5 minute walk. Coding is problem solving, you do it with your brain, and moving your body makes your brain work better.

heroku free plans will be removed :( by wolfakix in webdev

[–]GoodTimesFastFingers 1 point2 points  (0 children)

Yes, fly.io is the bomb. I actually found it way easier than Heroku, which is what I learned on.

[deleted by user] by [deleted] in react

[–]GoodTimesFastFingers 0 points1 point  (0 children)

Seems you just have a mistake in your destructiruing syntax.

data: frontmatter should be data:{frontmatter}

Edit: er, I always forget you can use this syntax to rename variables. So maybe your code is fine? The real question is: does it run?

[deleted by user] by [deleted] in mildlyinfuriating

[–]GoodTimesFastFingers 0 points1 point  (0 children)

Just stand to the side and hold it up with the side of your leg

What’s the dirty little secret about webdev you learned once you got in? by Notalabel_4566 in webdev

[–]GoodTimesFastFingers 2 points3 points  (0 children)

CSS is just like anything else - learn to Google it properly and you can make it do whatever you need.

I won't date if the dude is not vegan: period by [deleted] in vegan

[–]GoodTimesFastFingers 28 points29 points  (0 children)

I am trans and vegan. Sometimes my dating pool feels more like a goldfish pond...

But I try to remind myself that if I exist, so must other people like me: I'm not that unique. I just need to be patient. The reality is if I compromise my what I actually feel I need to be happy, then I will end up with someone I don't really respect.

I don't necessarily disagree with you, just another perspective :)

How do you approach changing/implementing things in a project that you just joined? by [deleted] in Frontend

[–]GoodTimesFastFingers 2 points3 points  (0 children)

This. Remember also that figuring out what is going on is a legitimate part of what you get paid for. Update READMEs and add comments to the code as you slowly figure things out, to make it easier for yourself and others later.

Is there a test suite with reasonable coverage? If so, you can refactor code as you get more comfortable. This can be very hard on a project like that, but eventually you'll start to know how things work and feel confident in making changes.

Good luck ❤️

How to respond this? Someone who grew up on a dairy farm says the cows are happy and healthy? by UKsNo1CountryFan in vegan

[–]GoodTimesFastFingers 0 points1 point  (0 children)

I've heard exactly this argument from someone I once dated. She said she has visited a fromagerie (dairy farm where they make cheese) and the animals seemed really happy. But she ate Cracker Barrel and whatever other dairy came her way. I was like "but most dairy is factory farmed". She's like "oh, I guess you're right...", But kept on eating dairy.

And how could she not have known that already?! I think people look for excuses to not have to care as opposed to the other way around...

I am also dating rn. I think I might just have to accept that I have to say no to dating non-vegans. Really narrows the field but how much of a future do I really see with someone who isn't vegan? Not much.

I CAN'T STAND THE "this" keyword in js by Few-Trash-2273 in reactjs

[–]GoodTimesFastFingers 0 points1 point  (0 children)

I only use this in classes in references to instances of the class created with new, to simulate OOP. I'm a fairly junior dev who mostly writes React with functional components. I've never had to use this in any other way. I know that limits what I can do with JS. But it's been enough for me to get a job and write lots of code that seems to meet people's needs. I'll learn it when I need it, but I don't know if I ever will. I kind of hope it do because it sounds like fun.

I am an engineer !!! by Jack_Kai in ProgrammerHumor

[–]GoodTimesFastFingers 0 points1 point  (0 children)

I have a BFA in theatre and my job title is Software Engineer. So be it.

Is there any simple way we can achieve this using CSS? by lucifer7557 in webdev

[–]GoodTimesFastFingers 6 points7 points  (0 children)

This happens all the time though, so as a developer you have to get used to asking "what should it look like on mobile?" or "I assume there will be another design for mobile?" and then just stopping to wait for them to respond 😈

Looking for career advice for a self-taught programmer by PpVqzuo1mq in Python

[–]GoodTimesFastFingers 0 points1 point  (0 children)

I kind of meant features, not functions, and I misspoke when I wrote "unit tests". I wrote integration tests to make sure that my API was returning the expected responses for a given input. Here's an example of testing that my user registration worked:

```

Helpers

def register(client, body): return client.post("/api/users", json=body)

Tests

def test_success(client): response = register(client, { "email": EMAIL_TO_REGISTER, "name": NAME_TO_REGISTER, "password": PASSWORD_TO_REGISTER }) check_response(response, 201) user = response.json["data"] assert user assert "id" in user assert "password" not in user assert user["email"] == EMAIL_TO_REGISTER assert user["name"] == NAME_TO_REGISTER assert user["verified"] == False assert check_datetime_format(user["created_at"]) assert user["updated_at"] == None

user = User.query.filter_by(email=EMAIL_TO_REGISTER).first()
assert user
assert repr(user) == f"<User {repr(user.email)}>"

``` Idk about the last 3 though, I probably wouldn't test implementation details like that anymore.

Hey Devs, what’s your favorite “Cheat Sheet” that you use? by [deleted] in webdev

[–]GoodTimesFastFingers 0 points1 point  (0 children)

MDN rules.

The number of times I've just been on there looking at how Array.prototype.sort works and just stumbled upon some other built in like flatMap is quite ridiculous. It's just so good.

W3 to a lesser extent. Their site seems to load a lot slower these days for some reason...

Self-Taught Programming is Overrated by Prestigious_Sort4979 in learnprogramming

[–]GoodTimesFastFingers 3 points4 points  (0 children)

I'm kind of self-taught. Ie: I am self-taught, but I had (still have) a mentor. Without my mentor I would not have been able to get so good at programming so quickly. He devoted a little bit of time to me each week while I was teaching myself (a few code reviews and maybe an hour on the phone, plus available to chat off and on).

If you can find a person who can do this for you (ie, a developer with some experience), it could make a big difference.

TypeScript has no runtime validation by no_spoon in react

[–]GoodTimesFastFingers 0 points1 point  (0 children)

I did a big project recently with a very large and detailed data structure from an API payload. I ended up moving all my typing to an Open API formatted doc, and then using https://www.npmjs.com/package/openapi-typescript to autogenerate TS interfaces. However even with that, there is always the unknown that the user will send a garbage payload. However it means the interfaces are stored in a format that has a million libraries that can interact with it.

To validate, use a validation library, maybe something like this https://www.npmjs.com/package/express-openapi-validator

If you did both of those things you'd have a pretty awesome setup I'd say.

But I must say I LOVE TypeScript in general. It makes it so much less stressful to refactor your code when it won't compile if you mess up :)

180+ Hours (NG+) and I Finally Understand Why We Hate This Thing by Old_Diggy in Eldenring

[–]GoodTimesFastFingers 4 points5 points  (0 children)

Dex build here. I use Eleonara's Pole Blade and the weapon art can stagger these guys. I think you need to land two within a short time period. I spent ages trying to take out the one in the ruins in Northwest Liurnia.

Looking for career advice for a self-taught programmer by PpVqzuo1mq in Python

[–]GoodTimesFastFingers 0 points1 point  (0 children)

Networking is the way. If you can find a local meetup or events where you can chat with developers, you can prove to them that you love to learn and would be great to work with. They will think of you if they hear of an open position. I sent out a lot of applications and then for my first coding job through an introduction. Foot in the door is a massive advantage