[-] sisyphean@programming.dev 1 points 1 year ago

It definitely helps me. It isn’t perfect, but it’s a night and day difference

[-] sisyphean@programming.dev 1 points 1 year ago

Made the switch 4 years ago. No regrets.

[-] sisyphean@programming.dev 1 points 1 year ago* (last edited 1 year ago)

YAML is extremely complex for a configuration format and it has many really weird edge cases:

https://noyaml.com/

The problem is IMHO made worse because it looks so friendly at first glance.

[-] sisyphean@programming.dev 2 points 1 year ago* (last edited 1 year ago)

Hungarian here. It is safe to drink without boiling. People only boil water for baby formula to be extra safe.

[-] sisyphean@programming.dev 2 points 1 year ago

This is frighteningly realistic

[-] sisyphean@programming.dev 2 points 1 year ago

Unfortunately the tutorials out there are mostly terrible. I've learnt it by experimenting a lot and seeing what worked for me. Some general advice:

  • Subscribe to both Copilot and ChatGPT Plus and try using them as much as possible for at least a month. Some people prefer the former, others the latter, and you can't know in advance which.
  • Always use the GPT-4 model in ChatGPT but keep in mind that there is a 25 answers/3 hours rate limit. So try to squeeze as many questions and information into your messages as possible. GPT-4 is miles ahead of any other publicly available LLM, including GPT-3.5.
  • Tips for ChatGPT:
    • Give detailed, well-written prompts. Try to describe the problem the same way you would to a coworker.
    • After describing the problem, ask ChatGPT if it needs any additional information to implement the code well. It usually asks very insightful questions.
    • Answer the questions and then ask it to break down the problem into individual functions and then, in separate messages, ask it to implement them one by one.
    • Remember that the context window is limited, after some time it won't remember the beginning of the conversation so it's worth repeating parts of the specification later.
  • Tips for Copilot:
    • Write the method signature and have Copilot implement it for you
    • Write a comment and have Copilot implement the corresponding code
    • Paste the code as a comment in a different language, write "the same logic in $lang2" in a comment, and it will translate it from $lang1 into $lang2.
[-] sisyphean@programming.dev 2 points 1 year ago

GPT-4 is much better at summarizing (or at everything):

Moderators from r/blind and other communities had a meeting with Reddit representatives on June 16, 2023, to discuss accessibility issues on the platform. The moderators expressed concerns that Reddit's current focus is on improving accessibility for users, not moderators, and lacks clear timelines for accessibility improvements in moderation tools. They also noted that Reddit seemed unaware of the reliance on third-party apps due to Reddit's own tools' lack of accessibility.

Moreover, concerns were raised about Reddit's unwillingness to share details about the qualifications of their employees tasked with accessibility, the specifics of their previously performed accessibility audit, and the definition of their term “accessibility-focused app.” Reddit's lack of full-time employees working on accessibility was another worry.

Although Reddit seems to be acknowledging and planning to fix known accessibility issues, the lack of knowledge about what they aren't aware of was disheartening for the moderators. They expressed their frustration over unanswered questions, and emphasized the need for accessible tools to effectively moderate their communities. They remain open to continued dialogue with Reddit to promote a more accessible platform.

[-] sisyphean@programming.dev 1 points 1 year ago

IIRC F# even has built-in support for units.

1
18
14
6
submitted 1 year ago* (last edited 1 year ago) by sisyphean@programming.dev to c/python@programming.dev
2
9
Ho to make sushi (programming.dev)
12
27
40
Hacking (programming.dev)
47
Strategy -> Result (programming.dev)
60
5

[-] sisyphean@programming.dev 1 points 1 year ago* (last edited 1 year ago)

This looks like a fantastic resource, thank you for sharing it! Saved.

[-] sisyphean@programming.dev 2 points 1 year ago* (last edited 1 year ago)

I use ChatGPT (with GPT-4) all the time for coding. I've developed a feel for the maximum complexity it can handle and I break down bigger problems into smaller subtasks and ask it to write code for them (usually one function at a time, after a detailed explanation of the context in the beginning). I need to review and test everything it produces thoroughly but it's worth it. Sometimes it helps me complete tasks that would have otherwise taken a day to complete in 1-2 hours.

I also have Copilot installed but it isn't as useful as ChatGPT. It's nice to get a smart completion sometimes. I'm even in the Copilot Chat beta which uses GPT-4 and I find it inferior to ChatGPT with GPT-4.

I never touch GPT-3.5 anymore. It hallucinates too much and the quality of the output is very unpredictable. I guess most people who say AI is useless for coding haven't tried GPT-4 yet.

Oh, and something else. In my experience, the quality of the output depends a LOT on the prompt. If you give a clear, detailed description of the problem, and try to express your intent instead of the specifics of the implementation, it usually performs very well. I've seen some people at work write the worst, sloppiest prompts and then complain how useless ChatGPT was.

[-] sisyphean@programming.dev 1 points 1 year ago* (last edited 1 year ago)

You're right, they also have to prove their counterarguments, and those who don't do it are often bad programmers. But I've also experienced the same with some actually brilliant people.

[-] sisyphean@programming.dev 1 points 1 year ago

That may be part of it but I've also observed it among fellow programmers.

You give your opinion about something and your coworker has a smug, arrogant knee-jerk reaction based on some cargo-cult belief without actually thinking about the details of the problem. Then you need to walk them through why what you said is not what they meant step-by-step, and while it may be wrong it is still a valid opinion. If you succeed, they completely change and become cooperative, and you can have an actually useful discussion. But you have to be super patient, like when taming an irritated feral cat that wants to scratch you. If you're good, the cat becomes cuddly and cute.

This works but I'm extremely tired of having to perform this dance with 60% of the new coders I meet.

view more: ‹ prev next ›

sisyphean

joined 1 year ago