• 4 Posts
  • 221 Comments
Joined 2 years ago
cake
Cake day: July 10th, 2023

help-circle
  • I’ve taught a few developers and have pretty extensive experience on the topic

    Tutorials are fine, but don’t get stuck on the idea that you need guidance through the whole process, it’s better to avoid tutorials entirely than it is to follow a bunch of tutorials.

    For example, when I started out my most recent student we began with some challenges that I knew would provide some context for future projects, then immediately jumped into those projects. Depending on what you’re passionate about, the best project for you can differ, but we did the following projects:

    1. A lemmy face wizard page, literally just a list of lemmy faces that clicking on will copy to your clipboard
    2. An invoice maker, since they needed to send me invoices because I was paying them for their time
    3. a react native sudoku app, this one was challenging and took them a couple months, but when they were done they took over one of my contracts for mobile development

    And the challenges that led to these projects? Everything from basic algorithms to api interaction puzzles.

    My advice would be to pick something that you love and come up with the tiniest project you can possibly think of, then cut the scope a little more.

    For example, love pokemon? Maybe make a website that you can click on one of the types and it will highlight the strengths/weaknesses of that type. Love golf? Maybe make a golf score tracker mobile app, a big button to add a stroke and another to move to the next hole.

    If you are passionate about something it gets a lot easier to get better at programming because the stuff you’re missing will become obvious and you’ll need to look it up to finish your project.

    My very first project nearly 30 years ago was a windows 95 app that moved your mouse to draw in mspaint automatically.

    I’d say starting a new language is a pretty big mistake until about 4-5 months after you feel proficient with your first language. Starting over with new syntax has actually caused more than one of my students to quit


  • That’s pretty concerning, my mother went through a similar relationship early in her life, he was older than my grandparents.

    You do you, but anecdotally, for her, the relationship may have started out okay, but they were never equal. He treated her like a daughter that he fucked every once in a while. Power dynamics in relationships are extra screwy when the age gap is more than 20 years. Our holiday dinners at home were always very awkward.

    Their relationship lasted about 20 years, imo it should never have started in the first place. She remarried afterwards to someone her age and finally found some companionship instead of stewardship, that relationship lasted much longer


  • Super cool of your parents to support you like that, not cool of them to control you, most parents like this miss the memo that kids need to actually start making decisions for themselves.

    By sunk cost fallacy, I assume you mean about the money. Giving them all the money back at once is an interesting idea, how would you feel if a child of yours did that? How would you feel if they were up front about their new situation?

    You know your parents and your situation better than any of us, use empathy and put yourself in their shoes and make the best decision you can.


  • Then next I would examine the redirect and check your stack, is it a 302, 304, etc, is there a service identifying header with the redirect?

    After that I would try to completely change your setup for testing purposes, greatly simplify things removing as many variables as possible, maybe setup an api server with a single route on express or something and see if that can be faithfully served

    If you can’t serve with even a simple setup then you need to go back to the drawing board and try a different option


  • You set the A record to your internal ip address from within your router?

    Nginx configs have a lot of options, you can route differently depending on the source context

    So a couple questions:

    1. Do you only want to access this from your local network? If so setting up a domain name in the broader internet makes no sense, you’re telling the whole world what local ip within your switch/router is your server. Make your own dns or something if you just want an easier way to hit your local resources
    2. do you want to access this from the internet, like when you’re away from home? Then the ip address you add to your a record should be your isp’s public ip address you were assigned, it will not start with 192.168, then you have your modem forward the port to your local system (nginx)

    If you don’t know what you are doing and have a good firewall setup do not make this service public, you will receive tons and tons of attacks just for making a public a record.


  • It can be hard to put this into words well because it’s different in every situation and making universal statements are rarely correct but I’ll do my best

    The problem here is twofold, 1. You feel insecure and 2. Your job is at risk

    When interacting with people, not just at work, there are some keys to being well liked. You can be direct, but being direct often comes across as an air of superiority, as if you’re saying “I’m too good to pretend or do what everyone else is doing”. You’re saying you are above thinking about how your words will be received, and it’s the receiver’s job to avoid getting their emotions involved.

    In a community, when one person considers themselves better than everyone else via this kind of “better than you” behavior, people will generally consider that person unfriendly or outcast them.

    Capitulation and going with the flow of expectations is surprisingly one of the best ways to get ahead, it’s counter intuitive but debasing yourself for the ego of others (harsh way to phrase it, but true) can often make them amenable to just about anything you want. We are remarkably complex, yet fundamentally simple creatures, it doesn’t take much to make a person likable.






  • Good:

    1. I have high hopes that Nepal’s new government will bring positive change
    2. Crispr science combined with some new good results with protein models may help us develop some incredible new health technology
    3. In the financial world, less reliance on the US, and a shift away from usd in general would be a huge boon to the international community

    Bad:

    1. Massive economic instability worldwide, inflation everywhere, people will have an even worse time affording things once the worlds petrol distribution eases up
    2. taiwan’s troubles are likely to pick up the pace with more international events to smokescreen their bully to the west
    3. The transition to ai will likely push more of our society to crime, and lower the payment bar for many professions




  • The biggest issue with accepting free housing and other perks is the unspoken cost. What are the expectations in return?

    I’ve spent time in taiwan and mainland china, as well as many other asian countries, china has its citizenry riled up in rampant nationalism thanks to the isolation of the people and propaganda. The propaganda of taiwan (and hong kong) being part of china is deeply rooted in the state sponsored group-think and is not going away any time soon. I will say the people I met, while angry when speaking about taiwan, did not seem to wish the people there any ill will, rather they seemed upset about the very idea of taiwan being separate.

    That’s all to say, the political situation is complex. However the real question here is multifold. 1) is it against your chosen moral framework to capitulate and live in china and 2) if it is, what are your morals worth to you, what specific monetary amount would get you to renounce your views.

    Parts of china are beautiful, the culture is lovely especially in rural areas, and living there could genuinely be nice. However your country is currently presenting the world’s largest bullseye and while your presence won’t swing the final result, if you feel you have a moral responsibility to stay and speak up, then do so!






  • 0x01@lemmy.mltoTechnology@lemmy.worldWhy LLMs can't really build software
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    7
    ·
    3 months ago

    I use it extensively daily.

    It cannot step through code right now, so true debugging is not something you use it for. Most of the time the llm will take the junior engineer approach of “guess and check” unless you explicitly give it better guidance.

    My process is generally to start with unit tests and type definitions, then a large multipage prompt for every segment of the app the llm will be tasked with. Then I’ll make a snapshot of the code, give the tool access to the markdown prompt, and validate its work. When there are failures and the project has extensive unit tests it generally follows the same pattern of “I see that this failure should be added to the unit tests” which it does and then re-executes them during iterative development.

    If tests are not available or if it is not something directly accessible to the tool then it will generally rely on logs either directly generated or provided by the user.

    My role these days is to provide long well thought out prompts, verify the integrity of the code after every commit, and generally just kind of treat the llm as a reckless junior dev. Sometimes junior devs can surprise you, like yesterday I was very surprised by a one shot result: asking for a mobile rn app for taking my rambling voice recordings and summarize them into prompts, it was immediately remarkably successful and now I’ve been walking around mic’d up to generate prompts.