Adobe automations are written in a truly bizarre language that, among other things, starts counting at 1 instead of 0. ChatGPT cheerfully obliges.
Ask HN: Those with success using GPT-4 for programming – what are you doing?
71–80 of 109 posts
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#72I'm the creator of rqlite[1], an open-source distributed database written in Go. It's saving me time (sometimes 2x speed up on certain, well-specified, tasks), and I enjoy using it. I wrote a blog post with some details on how it has helped me code the database: https://www.philipotoole.com/what-did-gpt-4-find-wrong-with-... That said, the most recent release of GPT-4 seems a little more buggy[2]. [1] https://www.rql…
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#73One thing that helps is telling it it's wrong or missing a case or whatever. It'll type out a fix (assuming it understands, which it frequently does) faster than I can.
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#74It's general world knowledge is also vastly impressive though.
It can draw a 2D representation of a keyboard key
_____________
| |
| Keycaps |
|___________|
| |
| Key Switch|
|___________|
| |
| Circuit |
| Board |
|___________|
| |
| Base |
|___________|
explain what happens at each layer when I press the key but more impressively also what happens if I spill cola over it: _____________
| |
| Keycaps | --> Coca-Cola makes the keys sticky
|___________|
| |
| Key Switch| --> The switch could become sticky, preventing it from registering key presses properly
|___________|
| |
| Circuit | --> The liquid could cause a short circuit, damaging the keyboard
| Board |
|___________|
| |
| Base | --> Coca-Cola pools at the bottom, potentially leaking into the circuit board from below
|___________|Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#75Trick is you tell it you are going to import/export with XML files and it works in them.
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#76https://RTEdge.net was polished up in no time, thanks to its vast knowledge. If you're knowledgeable in the field you ask questions about, it becomes a pure time save, as you can either just tell or test it. It's general world knowledge is also vastly impressive though. It can draw a 2D representation of a keyboard key _____________ | | | Keycaps | |___________| | | | Key Switch| |___________| | | | Circuit | | Board…
Ask about "layers of hierarchy at a high school":
::::::::::: School Board --> Sets policies, goals, and oversees school administration
___________ Principal --> Oversees the daily operations of the school, and implements policies and curriculum
%%%%%%%%%%% Teachers --> Develop lesson plans, instruct students, and evaluate student performance
~~~~~~~~~~~ Support Staff --> Includes roles such as school nurses, librarians, and custodial staff
+++++++++++ Students --> The primary recipients of education in the school
Go on with: "Say a student intentionally hit another, causing injury. Which layers activate?" ::::::::::: School Board --> Might be involved if the incident triggers policy reviews or disciplinary hearings
___________ Principal --> Would likely oversee the response, including disciplinary actions and communication with parents
%%%%%%%%%%% Teachers --> Depending on the situation, they might provide first aid, supervise students, or report the incident
~~~~~~~~~~~ Support Staff --> Nurses would provide medical aid. Custodial staff may need to clean up. Security may investigate.
+++++++++++ Students --> The perpetrator may face disciplinary action. The victim receives aid and support. Witnesses may give statements.
Add Korean drama: "The perpetrator is very rich and her parents finance the entire school. How could this change the picture?" ::::::::::: School Board --> May feel pressure due to financing, could potentially sway decisions or policies
___________ Principal --> Might face pressure to minimize the incident, may fear job security if they handle the situation 'wrong'
%%%%%%%%%%% Teachers --> May feel divided between student safety and job security, could be hesitant to speak out
~~~~~~~~~~~ Support Staff --> Similar to teachers, may feel uneasy about reporting the incident or discussing it
+++++++++++ Students --> Perpetrator may face less severe consequences; victim and witnesses might feel their voices aren't heard
Calm it down: "Say, a student runs out of space in her notebook. Which layers activate?" ::::::::::: School Board --> Might not get involved unless the issue is widespread and indicative of a systemic problem
___________ Principal --> Usually not directly involved unless there's a recurring issue of school supplies availability
%%%%%%%%%%% Teachers --> Directly involved, may suggest using additional paper, starting a new notebook, or condensing notes
~~~~~~~~~~~ Support Staff --> May offer technical solutions if there's a possibility to switch to digital note-taking
+++++++++++ Students --> Directly affected, student needs to decide how to continue taking notes, may need to purchase a new notebook
Spice it up!: "A female student dresses very scantily." ::::::::::: School Board --> May get involved if the dress code is violated and it becomes a widespread issue or stirs controversy
___________ Principal --> Likely to get involved if there are repeated violations, may meet with student or parents
%%%%%%%%%%% Teachers --> Might report the student if dress code is violated or it disrupts the class; may also address it directly with the student
~~~~~~~~~~~ Support Staff --> Might not get involved unless asked to assist with enforcement or if they are also a student advisor
+++++++++++ Students --> Classmates might react positively or negatively; student in question may face peer feedback or pressure
Add more drama: "An inspector from the ministry of Education visits too see how lessons are performed and during class, asks questions to the students on various topics and notices abysmal performance in all subjects but literature. What repercussions would this have at each layer?" ||||||||||| Ministry of Education --> Will likely request a formal review or assessment of the school's curriculum and teaching methods, and may require an action plan for improvement
::::::::::: School Board --> Could face scrutiny or pressure from the Ministry of Education, and would likely oversee the development and implementation of improvement plans
___________ Principal --> Would be responsible for implementing changes and managing teacher performance, may need to revise curriculum or teaching methods
%%%%%%%%%%% Teachers --> Would face increased scrutiny and pressure, may need to adjust their teaching methods, might receive additional training or professional development
~~~~~~~~~~~ Support Staff --> May not be directly involved, but could face additional work related to implementing changes (such as increased administrative tasks or more student support)
+++++++++++ Students --> Might face more rigorous coursework or increased homework, may also receive additional support or tutoring
Add parents!: "In this hierarchy, where are the students' parents?" ||||||||||| Ministry of Education --> Will likely request a formal review or assessment of the school's curriculum and teaching methods, and may require an action plan for improvement
::::::::::: School Board --> Could face scrutiny or pressure from the Ministry of Education, and would likely oversee the development and implementation of improvement plans
___________ Principal --> Would be responsible for implementing changes and managing teacher performance, may need to revise curriculum or teaching methods
%%%%%%%%%%% Teachers --> Would face increased scrutiny and pressure, may need to adjust their teaching methods, might receive additional training or professional development
^^^^^^^^^^^ Parents --> Likely to voice concerns, may demand changes, and could be involved in improvement initiatives
+++++++++++ Students --> Might face more rigorous coursework or increased homework, may also receive additional support or tutoringRe: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#77Essentially it is an advanced autocomplete.
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#78I’ve used this enough that I wrapped some cli glue around it and wrote https://github.com/radoshi/llm-code
I’ve used this mostly to write Python and bash, with some Makefiles and Dockerfiles thrown in.
GPT-4 is better, albeit slower, than 3.5-turbo. HTH!
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#79So I simply dumped the code examples into ChatGPT and said "Given these examples that display text and boxes on a screen, can we write a simpler interface and straightforward small functions for the display code?"
And it was done.
This wasn't code I wanted to mess with, I really just wanted to build my application rather than spend any time messing with the code to interact with this proprietary display. It was fantastic!
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#80SQL queries. I am poor at writing SQL queries with bunches of joins. I just show it the table definitions and tell it what I want. Sometimes it doesn't get it quite right (which is why you need some knowledge of what you are asking of it) and I point it out and it fixes it. Regular Expressions. I hate doing regexps. It is excellent at them. Wiki articles for an encyclopedia I'm developing. It is great at this, but oc…
I've also been using ChatGPT to create SQL queries -- it's genuinely really, really great at this. I do have to say "I'm using PostgreSQL with DataGrip IDE" and feed it back any errors I get, because there are a lot of permutations for SQL, but it's a pretty seamless experience overall. Here's an example of one that helped me a lot. This takes no time at all to get ChatGPT to generate by giving it anonymized snippets…