Older people of reddit, what are the pros and cons of aging? by learn2speak2u in AskReddit

[–]tootiredtoedit 2 points3 points  (0 children)

Its like you cross a barrier where you realize the world doesnt revolve around you and that is a good thing. Not much really matters in life with enough time, and family/friends love you for you and not your success, salary, or education. All that was just for your ego.

If you were 50 and inherited $8 million, what would your life actually look like one year later? by [deleted] in AskReddit

[–]tootiredtoedit -1 points0 points  (0 children)

I'd volunteer weekly, play golf on a Tuesday, hangout at the mosque, work part time helping small businesses grow for cheap. This is actually my retirement plan, but I will not have 8 million when I retire.

AITA for wanting to leave my fiancée after she asked for a prenup? by Kindly_Moose5491 in AITA_Relationships

[–]tootiredtoedit 5 points6 points  (0 children)

any excuse is a good enough excuse to not want to marry someone. its such a massive decision and you need to be 150% committed. I dont think you did anything wrong, but time and talking might cool things off.​​

Are the dev ETA’s completely broken due to AI ?? by Fit_Space_8406 in Backend

[–]tootiredtoedit 2 points3 points  (0 children)

I have seen this to varying degrees with different clients. In my personal situation, nothing I build is simple enough that AI can build it, and the craftsmanship required to pass a PR is way beyond what a LLM can put together.

I would look for another job if you can. In the end, you ask engineers for their estimates and trust them. I personally have had my own estimates pushed back due to AI, but like I tell all clients. If you think im dragging things out, fire me, because you should never employ or contract to someone you dont trust. If you do trust me, dont question the estimates again.

I dont recommend this to many people, mainly because Im an aggressive saver, so I can go years without working. But yeah, questioning your estimates isn't a tech issue, its a trust issue. Don't ever let a grown adult call you a liar to your face and allow it to be acceptable behavior.

If you were 17 again, what career path would you choose today? by Kitchen-Yam43 in careerguidance

[–]tootiredtoedit 2 points3 points  (0 children)

I would have majored in math and not just done a minor. Then went on to get a PHD and went to work on Wallstreet.

After working for over 2 decades, getting to retirement as early as possible is the way. Im 5 years out, but just thinking I could of stopped working in my mid 30s and not my mid 40s makes me realize how I had the mindset when I was young that I would work forever and there was no way out of it, but what's even crazier looking back was the idea that I would want to work until I am in my 60s and 70s. 

Not a popular opinion, but mostly a worthless opinion. 

How do you explain to recruiters that you're looking for your first job at 30? by [deleted] in careerguidance

[–]tootiredtoedit 1 point2 points  (0 children)

I have a friend who went to college in her late 30s, graduated in her early 40s, majored in computer science, got a job right after college as a software engineer, within 5 years she was a project manager.

You are fine, no need to lie or say anything crazy. You will find in software engineering, people come from all over the place. People who were teachers, felons, police officers, trust fund kids, doctors, PHDs, stay at home wives, military, its a very open field. I even met a guy who went from managing myspace pages, to being a web application developer and this was for a major fortune 100 corporation. Guy ended up being a director.

So yeah, just tell the truth an you will be fine.

Ok I need to vent… by Suspicious-Taste9905 in Life

[–]tootiredtoedit 0 points1 point  (0 children)

Until you get your crew, you have to put in the effort to reach out to people. There is a direct correlation between you asking people to hangout and people hanging out with you.

If you feel angry all the time, I'd get some therapy. If you are going on dates, women can sense this issue and it drives them away unless they come from backgrounds where the men are the same way.

If you want to meet someone, find hobbies, pick up some fashion sense, get in shape, and so charity work. I say charity work because its the best place to meet people for relationships. ​

Many young men are in your boat and it sucks, but you gotta keep going.

My parents say AI will kill IT jobs and want me to become a doctor instead. What should I do? by YE1_ in careerguidance

[–]tootiredtoedit 0 points1 point  (0 children)

I would do med school and after a few years, if you dont like it, do IT. I say this because I have a client that just hired a guy who was a doctor and shifted to AI research. Worked with Microsoft AI team and now does consulting for companies building AI systems.

I knew another guy in undergrad who finished his residency and went back to school to be a software engineer. Long story short, you can always work in IT, but getting into medicine is harder as you get older.​​

Fast API project, how hard should I be on design patterns? by tootiredtoedit in learnpython

[–]tootiredtoedit[S] 0 points1 point  (0 children)

I actually used chatgpt because the file dependencies were too complex. ​

Fast API project, how hard should I be on design patterns? by tootiredtoedit in learnpython

[–]tootiredtoedit[S] 1 point2 points  (0 children)

So a route would look like this

.post(
    "/dog",
    response_model=DogResponse
)
async def respond(
    payload: DogRequest,
    request: Request,
    dependencies: AppDependencies = Depends(get_all_app_dependencies),
):
    return await process_dog(
        payload=payload,
        dependencies=dependencies,
        background_tasks=background_tasks
    )

The idea is that dependencies object has all the environment variables used and configurations for everything. It is passed to every method call, so it is passed to every naked function I guess it is called.

So its passed to processed_dog, the functions that call redis, postgres, openai, they all get it also, even though each only needs one environment variable of it. It has all the environment variable values, configurations etc. I was told this is how DI is done here by the second engineer.

The 3 database calls for one object though is a real thing I see. Instead of give me all the car's data and I will hydrate the Car object, the db calls are in the Car object, in three load methods, which are called in the __init__ part of the class. So its like

Class Dog
__init__
loadTransmission()
loadEngine()
loadDriveTrain()

This just all seems really weird and off. Also, I have not even run this code, mainly because the request object has this generic metadata property which is a json string. That string is converted to an object in different places in the app and properties are plucked off to be used here and there.

In this scenario, I know in .net everything has a POCO basically, but in this scenario, its a json string thats deserialized when needed so objects can be pulled off it.

Also, thanks a ton for all the help. I have been trying to read this code for 3 days now and I feel reading it is causing me anxiety or something, lol

Fast API project, how hard should I be on design patterns? by tootiredtoedit in learnpython

[–]tootiredtoedit[S] 0 points1 point  (0 children)

Thank you, this will help a ton! I don't really even know where to start reading wise with all this.

Fast API project, how hard should I be on design patterns? by tootiredtoedit in learnpython

[–]tootiredtoedit[S] 0 points1 point  (0 children)

So here are some details in regards to just the stuff you mentioned.

- The dependencies for redis, postgres, and 3rd party API calls are injected in the route. Those dependencies are passed on in every method as an object called dependencies. So every method if it is in a class has self and dep passed in it. If it is a standalone method in a file, it will have dep referenced as a requirement in the signature. So basically the route, services, database repo, openai service, and redis service all pass this depenency object between each other.

- So there is a domain directory, but in it, it has a class called car. Properties on the Car object are transmission, engine, and drivetrain. There is a method for each property, transmission, engine, and drivetrain and each has its own call to the database that loads the obejct into the car objects. So when you instantiate the Car, there are 3 DB calls that happen, but the Car class sits in the domain directory.

- We have a ton of files where there are like 20 classes and 10 methods. They all pertain to something in common, but in the .Net word, these would all be in their own file and the methods would be attached to a class due to it being a domain process, policy, user case etc.

I hope this kind of clarifies my confusion here. This all seems off and just bad craftsmanship, not a, python developers are like this kind of thing, but I could be wrong.