• 0 Posts
  • 423 Comments
Joined 2 years ago
cake
Cake day: July 3rd, 2023

help-circle


  • It’s hard to say. I think too much can lead to the kid not appreciating how much things cost, or how hard it is for other people.

    My parents paid for most of my education, and that made a big difference. I entered adulthood without massive debt. (Low five figures seems low compared to many of my peers, anyway. USA! USA!)

    Generational wealth is powerful. Many of today’s richest people became super wealthy because their parents paid for stuff when they were getting started.

    I think the most important question is if your kid is going to be a kind and decent person, or a scumbag who says “I earned all of this! no one gave me a handout” whild voting to gut aid programs.



  • Product owners say, "We want to change the site so users see a list of all the other users on their team with access to this project "

    Okay. Do some thinking. Going to need the backend to return that information to the front end. Decide what URL that should be under (api/v1/projects/users, maybe?).

    Now we make the backend actually do that. Create a new file for this endpoint. Update the routes file so that url points to this file. Write the handler class.

    Does this endpoint take any particular input? We know who the caller is for free from the framework. We only want to return info about one project or all projects? Make that decision. Update URL if needed.

    Write the code to get the other users on the projects in question. Maybe that’s SQL, but might also be ORM (code from a framework that generates SQL based on objects). Decide what information we actually need. Package that up and send it back. The specifics depend on language and framework.

    Write automated tests for this. Make sure it works for

    • 401 not logged in
    • 403 asking about a project I don’t have permission for
    • 404 asking about a user with no projects, or a project that doesn’t exist
    • someone with 1 project
    • someone with 2 projects
    • someone with 10000 projects
    • also consider what happens for 0, 1, 2, 10000 users on the project.

    Realize this needs to paginate. Go back and change the handler code to do that.

    Realize due to some quirk of how permissions work, someone can be on the project twice. Talk with the team about if we should just decide that here, or try to fix the root problem. Probably the former.

    Add deduplication code, then, and test cases.

    Open this up for code review.

    Start the front end work.

    Make a dummy page first and update your API calling code to know about this new route, assuming you don’t have that auto magically set up somehow. Make sure it calls it and gets a response.

    Realize that staff users technically have access to every project in the system. Ask product if that’s how they want that to behave. If no, figure out what you all want that to do instead.

    Do a bunch of react work to make the page pretty, put the response in the right UI elements with links to the right place. Realize the response you’re sending back makes building the links annoying because you didn’t send some part of it, so you’d need to make another request to the backend for every link. That sucks. Update the backend to include the user’s team-id that is for some stupid reason still in the URL. Comment on code review.

    And now I’m tired of writing.

    Edit: I hit submit before I was done. Finished now. Edit: fix typo


  • Other people have good answers already. Chiefly to ask questions and talk through your reasoning.

    But also I’ve noticed the difficulty of interview questions varies wildly. Some places would give dynamic programming problems I’m terrible at. Others would give trivial "find the largest number in this array of integers, in python. Don’t worry about efficiency. " problems.











  • I think some people are bad at reading through no real fault of their own. Then they feel, consciously or subconsciously, embarrassed and angry when they try.

    I also think a lot about a woman I knew that was like “analysis is stupid. Sometimes a story is just a story!”, and that was very strange to me. I asked some more questions, and she said she hated how in school they were always reading and being told to find the secret meaning. I was like, your education failed you. The game isn’t find the meaning. The game is finding a meaning you can support in the text.

    Like, Dracula can just be a book about a dude that bites people. But you can also look at it and be like “hmm so these women abandon their ‘motherly’ duties of raising children and staying in the home, and the only way to ‘fix’ them is for some men to hold her down and penetrate her with a big piece of wood? Hmmm”

    But, also, you don’t have to think hard about everything you read. You don’t analyze every TV show, even though you could.


  • Other people already gave most of the answers, but

    Parks. Go for a walk. Play a game with folks (Frisbee, soccer, whatever). Ride a bike. Read.

    Meetups. I go to a tabletop RPG one. That’s not unique to cities, but I can walk to this one and there are probably more people attending than you’d find in a less populous area. I also used to go to a basic neighborhood hangout one. There are many others.

    The library is free. Many books and other media to enjoy.

    This city has beaches. It’s $3 for the subway ride there , or if I was really broke I could ride a bike.

    There are free museums. I don’t go that often but they’re interesting.

    But also

    And to make it worse many of them probably have a 1 bedroom apartment so its not like you can sit in there all day long (at least i cant).

    I realize im still spending money by being in my house out of town, but still, at least things I buy are owned by me, and im not paying someone else every time I want to do anything. If I want to stay at home all day I have tons of stuff to occupy my mind without going nuts.

    I don’t think I accept this premise. I stay home in my one bedroom without any more trouble than when I lived in the suburbs. A computer full of games doesn’t need a lot of rooms. I have plenty of entertainment here. I don’t see what’s stifling about a one bedroom. Maybe a tiny studio I could see. But even so, when I lived in a whole house it’s not like I went skipping from room to room.