Hacker News new | ask | show | jobs
by Someone1234 1160 days ago
It gives me faster access to documentation/Stackoverflow, and creates bespoke templates. So I am "10x" but for the most tedious parts of "copy/paste" development. For the hard parts or the time spent thinking about design/flow, it does basically nothing. So am I "10x" overall? Absolutely not. I am barely even "2x" relative to before (since this is a minority of my time).

For example (ChatGPT):

- Prompt:

     Create a HTML select list with the following text values: "First In, Last Out", "Last In, First Out", "Random Order", "Round-Robin" give each option and the select list appropriate names and IDs.
- Result:

     <select name="order" id="order">
       <option value="fifo">First In, Last Out</option>
       <option value="lifo">Last In, First Out</option>
       <option value="random">Random Order</option>
       <option value="round-robin">Round-Robin</option>
     </select>
Keep in mind if I hand-wrote this I still have to write out the text-values which are 50% of the prompt's length. It did the names/IDs and the boilerplate.
3 comments

To achieve 10x you need to learn exactly how lazy you can be and get the same results :P

me:

html select list of orderings: fifo, random, rr, lifo

GPT-4:

To create an HTML select list with different orderings, such as FIFO (First In, First Out), Random, RR (Round Robin), and LIFO (Last In, First Out), you can use the following HTML code:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Select List of Orderings</title>
    </head>
    <body>
        <form>
            <label for="orderings">Choose an ordering method:</label>
            <select name="orderings" id="orderings">
                <option value="fifo">FIFO (First In, First Out)</option>
                <option value="random">Random</option>
                <option value="rr">RR (Round Robin)</option>
                <option value="lifo">LIFO (Last In, First Out)</option>
            </select>
            <button type="submit">Submit</button>
        </form>
    </body>
    </html>
This code creates a simple HTML page with a form containing a select list. The user can choose one of the ordering methods from the list, and the selected value can be submitted with the form.

---

OK not exactly the same but just wanted to GPT-golf it. When lazymaxing for real, I just try to keep in mind that ChatGPT is already fine-tuned to include certain things, like following proper conventions, explaining its steps, commenting code. And that most of the time it'll make an educated guess rather than looking at me going "huh?" if it's unsure - so if there's really only 1 reasonable interpretation of terse instructions, I can drop the human-friendly cruft text.

> Keep in mind if I hand-wrote this I still have to write out the text-values which are 50% of the prompt's length. It did the names/IDs and the boilerplate.

This is the kind of thing that I really struggle with when trying to do something like this. Often the part that takes me the longest when writing snippets like those _is_ the copy (or at least, collecting my thoughts and/or notes to get the copy into my working memory), the code is quick enough. If I spend that same amount of time (or more) writing the prompt, I don't feel like I've saved much time.

I agree; but that's why I like the above. I spend just as much time thinking of the text as I do the values/IDs/names, and it did that part for me. So in terms of my mental workload it is cut in half.

The above example is kind of silly in that FIFO/LILO are common terms, but this works just as well for very niche business names too.

> It gives me faster access to documentation/Stackoverflow, and creates bespoke templates.

But it regurgitates Stackoverflow with sub 100% accuracy, and then you need to spend time investigating in what went wrong/trying to fix it

It's for sure spit out an API that doesn't exist to me before

> But it regurgitates Stackoverflow with sub 100% accuracy, and then you need to spend time investigating in what went wrong/trying to fix it

Since it is bespoke boilerplate, it isn't "just" documentation or Stackoverflow. Take this example, I gave it a library, I gave it custom names for everything, and the result is pretty time-saving:

Prompt:

     Create html using the bootstrap 5 library, create form with a fieldset (title: "Filter") inside with the following select option/label groups: 
      - Department    
      - Year 
      - Invoice Source 
      - Invoice Destination 
     
     Then two inputs/labels for start date and end date, and a submit button. Only include one example in each of the select options and no page boilerplate.
Result:

       <form>
       <fieldset>
         <legend>Filter</legend>
         <div class="mb-3">
           <label for="department" class="form-label">Department</label>
           <select class="form-select" id="department">
             <option selected>Choose department</option>
             <option value="1">Sales</option>
           </select>
         </div>
         <div class="mb-3">
           <label for="year" class="form-label">Year</label>
           <select class="form-select" id="year">
             <option selected>Choose year</option>
             <option value="2022">2022</option>
           </select>
         </div>
         <div class="mb-3">
           <label for="source" class="form-label">Invoice Source</label>
           <select class="form-select" id="source">
             <option selected>Choose source</option>
             <option value="1">Email</option>
           </select>
         </div>
         <div class="mb-3">
           <label for="destination" class="form-label">Invoice Destination</label>
           <select class="form-select" id="destination">
             <option selected>Choose destination</option>
             <option value="1">Customer</option>
           </select>
         </div>
         <div class="row">
           <div class="col-md-6">
             <label for="start-date" class="form-label">Start Date</label>
             <input type="date" class="form-control" id="start-date">
           </div>
           <div class="col-md-6">
             <label for="end-date" class="form-label">End Date</label>
             <input type="date" class="form-control" id="end-date">
           </div>
         </div>
         <div class="d-grid mt-3">
           <button type="submit" class="btn btn-primary">Filter</button>
         </div>
       </fieldset>
     </form>