TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Programming with ChatGPT

62 pointsby jandeboevrie9 months ago

18 comments

consumer4519 months ago
I am a muggle, but the three biggest use cases for me have been:<p>1) Boring stuff like JSON schema&#x2F;JSON example modification and validation<p>2) Rubber ducky<p>3) Using this system prompt to walk me through areas in which I have no experience [0]<p><pre><code> You are a very helpful code-writing assistant. When the user asks you for a solution to a long, complex problem, first, you will provide a plan with a numbered list of steps, each with the sub-items to complete. Then, you will ask the user if they understand and if the steps are satisfactory. If the user responds positively, you will then provide the specific code for step one. Next, you will ask the user if they are satisfied and understand. If the user responds positively, you will then proceed to step two. Continue the process until the entire plan is completed. </code></pre> I recently finally used the OpenAI API in a project. It was gpt4-o to analyze news story sentiment. The ease of use and quality of output is impressive.<p>[0] I should add that I have been using &quot;presets&quot; in the LibreChat GUI to allow me to have many system prompts easily available. It&#x27;s kind of like Custom GPTs. Also, using LibreChat for work feels better as I believe that OpenAI states that they do not train on data provided via API.
评论 #41382345 未加载
评论 #41382829 未加载
评论 #41382897 未加载
zackmorris9 months ago
I wonder how long it will be before AI can program financial independence. Loosely it would look like a mix between One Red Paperclip, drop shipping, Angi, trading bots, etc. The prompt might be &quot;create a $1000 per month income stream in the next 30 days&quot;. Maybe the owner of the first AI to pass this could get a $1 million prize. 2030?<p>Then equally interesting would be to see how the powers that be maneuver to block this residual income. 2035?<p>Then after that, perhaps a contest to have an AI acquire resources equivalent to residual income so that it can&#x27;t be stopped. For example by borrowing for cheap land, installing photovoltaics and a condenser to supply water, then building out a robotic hydroponic garden, carbon collector, mine, smelter, etc, enough to sustain one person off-grid continuously in a scalable and repeatable fashion. 2040?
评论 #41384181 未加载
franze9 months ago
here is some code that was 100% chatgpt created<p><a href="https:&#x2F;&#x2F;github.com&#x2F;franzenzenhofer&#x2F;bulkredirectchecker">https:&#x2F;&#x2F;github.com&#x2F;franzenzenhofer&#x2F;bulkredirectchecker</a><p>no humans touched the code directly<p>and its not my most complex one, <a href="https:&#x2F;&#x2F;gpt.franzai.com" rel="nofollow">https:&#x2F;&#x2F;gpt.franzai.com</a> is but closed source<p>how?<p>whenever chatgpt runs into a repetetive wall -&gt; start a new chat<p>use <a href="https:&#x2F;&#x2F;github.com&#x2F;franzenzenhofer&#x2F;thisismy">https:&#x2F;&#x2F;github.com&#x2F;franzenzenhofer&#x2F;thisismy</a> (also about 90% chatgpt written) command line tool<p>to fetch all the code (and online docs if necessary) -&gt; deliver a new clean context and formulate the next step what you want to achieve<p>sometimes coding needs 100+ different chats always with a fresh start to achieve a goal<p>remember: chatgpt is not intelligent in an old fashioned way, it is a propability machine thats pretty good at mimicing intelligence<p>once propability goes astray you need to start anew<p>but limiting chatgpt to simple coding tasks just means that you are using it wrong
评论 #41383237 未加载
cryptoz9 months ago
My favorite thing to do with ChatGPT and coding is making fast prototypes. Since you know hallucinations might be a problem, and since ChatGPT struggles with larger contexts and files, just play to its strengths. I have lots of ideas of &quot;small&quot; to medium webapp ideas, and you can often get ChatGPT to write most of the code of a prototype and have it work quite quickly.<p>Prototypes are fun! Obviously production code or serious projects are different. But I&#x27;ve found a new joy in building software since GPT-4 came out - it&#x27;s more fun than ever to build small ideas.
mehulashah9 months ago
I do believe that ChatGPT as a programmer productivity tool is its most valuable value proposition to date. In addition to generating code, it makes it much easier for me to chase down obscure error messages and potential root causes and workarounds. It&#x27;s definitely not perfect. But, as part of the Interact-&gt;Generate-&gt;Verify cycle that modern AI has transformed other disciplines (eg. materials science, protein folding, mathematics, and more), it serves as a valuable component of each of these.
评论 #41382518 未加载
Tainnor9 months ago
I have my reservations about the quality of LLM generated code, but since I have neither studied ML in depth, nor compared different LLMs enough, I&#x27;ll refrain from addressing that side of the debate - except maybe for noting that &quot;I test the code&quot; is not good enough for any serious project because we know that tests (manual or automated) can never prove the absence of bugs.<p>Instead, I offer another point of view: I don&#x27;t want to use LLMs for coding because I <i>like</i> coding. Finding a good and elegant solution to a complex problem and then translating it into an executable by way of a precise specification is, to me, much more satisfying than prompt engineering my way around some LLM until it spits out a decent answer. I find doing code reviews to be an extremely draining activity and using an LLM would mean basically doing code reviews all the time.<p>Maybe that will mean that, at some point, I&#x27;ll have to quit my profession because programming has been replaced by prompt engineering. I guess I&#x27;ll find something else to do then.<p>(That doesn&#x27;t mean that there aren&#x27;t individual use cases where I have used ChatGPT - for example for writing simple bash scripts, given that nobody in their right mind really understands bash fully. But that&#x27;s different from having my entire coding workflow based on an LLM.)
评论 #41383268 未加载
评论 #41387168 未加载
Mememaker1979 months ago
I&#x27;m left a bit confused still about using ChatGPT and Claude as someone who&#x27;s still learning (2nd year CS student) and nowhere near being a professional dev.<p>I&#x27;m sure if I was was dev who had learnt and worked in the pre-GPT era I&#x27;d have no problem using these tools as much as possible, but having started learning in the GPT era I feel conflicted. I make sure I understand each line of code generated whenever I use AI. Despite that I have a feeling I&#x27;m handicapping myself using these tools? Will it just make me a code reviewer&#x2F;copy-paster rather than someone who can write something from scratch?<p>If it is reasonable to use these tools, at what point does it become so? like at what point can I consider myself well enough at programming to be able to use it like in the post.<p>Right now I&#x27;m purposely restraining myself from using these tools too much because what I can make using them is much better than what I can make myself, so as to get upto a certain level myself before I start making use of these capabilities<p>Am I thinking about this the right way? At what point does it make sense to start using these tools more freely without worrying about handicapping my learning?
评论 #41383570 未加载
评论 #41383718 未加载
评论 #41383524 未加载
评论 #41383915 未加载
redleggedfrog9 months ago
Honestly, the first article I&#x27;ve seen where the actual usage is explained clearly and matches my own experience. Maybe because I tend to write software the same way.<p>The thing I&#x27;ve heard the most from other developers, particular those new to the profession, is that you &quot;have to know most of what you&#x27;re asking already to know if what you get from the LLM is right.&quot; You can use the LLM to learn, but for the actual programming they struggle because they don&#x27;t have the background to understand the responses well enough to continue the implementation.<p>Also, for the record, C# and .NET, <i>huge</i> enterprise&#x2F;ecommerce software, so not quite as malleable as bash scripts and what not.
评论 #41382934 未加载
评论 #41383047 未加载
bilsbie9 months ago
My favorite thing is now being able to code fluently in new languages. I’d never used rust before but I was able to immediately get something up and running and I got a detailed explanation of how it works. With a programming background I can instantly understand most code once I get past the new syntax and idioms.
Wheaties4669 months ago
this is how I have used it so far too. Small, Boring tasks that I can iterate ontop of.<p>its also nice to have as something to &quot;bounce ideas&quot; off of and see if it can think of any other solutions or ways to accomplish a goal.
onehair9 months ago
I was impressed with chatgpt in many a situation where it could understand me better than another person ona forum would. Will present me with a solution without creating an environment where I need to be careful how I&#x27;m gonna come across.<p>I&#x27;ve enjoyed finding answers to things and suggestions on how to do them differently of how I was thinking of doing them<p>I&#x27;ve enjoyed receiving answers to questions I asked google with no match from what I&#x27;m asking.<p>Can&#x27;t bring myselt to use it to code for me though, but all the above leads me to believe it shouldn&#x27;t far now until I&#x27;m on board too
emporas9 months ago
Regarding the formatting, i use Llama 3 mainly, to generate org-mode documentation about functions, i tell it to enclose lines with *Line x-y* and begin_src for the corresponding lines.<p>It generates most of time perfect formatting which i readily export to markdown with org-mode-html-export.<p>Showcase of the generated formatting as a screenshot [1].<p>[1] <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;97fSWsg" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;97fSWsg</a>
评论 #41385347 未加载
SuperHeavy2569 months ago
A simple and really good review of ChatGPT! Too many people are too negative of it, it&#x27;s actually real developers like OP who use it nicely
amelius9 months ago
Let&#x27;s try an easier target first: System administration with ChatGPT.
评论 #41382448 未加载
surfingdino9 months ago
I recently asked for a Dockerfile that builds an image which passes Docker&#x27;s vulnerability scan. It gave me a file that failed over a dozen vulnerability tests.
评论 #41382858 未加载
评论 #41383026 未加载
TrackerFF9 months ago
Yeah, same use here. I work with data analysis, so 95% of the code I write is to wrangle data, or do something in the ETL-pipeline.<p>Almost all my ChatGPT use comes down to writing queries for loading or transforming data. Getting rid of the boilerplate has helped immensely on my productivity.<p>EDIT: I should note, the vast majority of errors I get using solutions from LLMs, tend to be code it includes that contain legacy or dead libraries. Sometimes it starts to mix old and new libraries in the same code snippet, which will either outright fail, or output some weird results.<p>Which makes sense, as some answers are the product of being trained on 14 year old StackOverflow posts, while others are trained on newer stuff.
ahaseeb9 months ago
Is there a good course&#x2F;guide on how to train your engineers on AI who&#x27;re resisting the change ?
simonw9 months ago
I&#x27;m increasingly building entire functional prototypes from start to finish using Claude 3.5 Sonnet. It&#x27;s an amazing productivity boost. Here are a few recent examples:<p><a href="https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;image-resize-quality" rel="nofollow">https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;image-resize-quality</a> is a tool for dropping in an image and instantly seeing resized versions of that image at different JPEG qualities, each of which can be downloaded. I used to use the (much better) <a href="https:&#x2F;&#x2F;squoosh.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;squoosh.app&#x2F;</a> for this, but my cut-down version is optimized for my workflow (pick the smallest JPEG version that remains legible). Notes and prompts on how I built that here: <a href="https:&#x2F;&#x2F;simonwillison.net&#x2F;2024&#x2F;Jul&#x2F;26&#x2F;image-resize-and-quality-comparison&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simonwillison.net&#x2F;2024&#x2F;Jul&#x2F;26&#x2F;image-resize-and-quali...</a><p>django-http-debug - <a href="https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;django-http-debug">https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;django-http-debug</a> - is an actual open source Python package I released that was mostly written for me by Claude. It&#x27;s a webhooks debugger - you can set up a URL and it will log all incoming requests to a database table for you. Notes on how I built that here: <a href="https:&#x2F;&#x2F;simonwillison.net&#x2F;2024&#x2F;Aug&#x2F;8&#x2F;django-http-debug&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simonwillison.net&#x2F;2024&#x2F;Aug&#x2F;8&#x2F;django-http-debug&#x2F;</a><p>datasette-checkbox is a Datasette plugin adding toggle checkboxes to any table with is_ or has_ columns. Animated demo and prompts showing how I built the initial prototype here: <a href="https:&#x2F;&#x2F;simonwillison.net&#x2F;2024&#x2F;Aug&#x2F;16&#x2F;datasette-checkbox&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simonwillison.net&#x2F;2024&#x2F;Aug&#x2F;16&#x2F;datasette-checkbox&#x2F;</a><p><a href="https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;gemini-bbox" rel="nofollow">https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;gemini-bbox</a> is a tool for trying out Gemini 1.5 Pro&#x27;s ability to return bounding boxes for items it identifies. You&#x27;ll need a Gemini API key for this one, or take a look at the demo and notes here: <a href="https:&#x2F;&#x2F;simonwillison.net&#x2F;2024&#x2F;Aug&#x2F;26&#x2F;gemini-bounding-box-visualization&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simonwillison.net&#x2F;2024&#x2F;Aug&#x2F;26&#x2F;gemini-bounding-box-vi...</a><p><a href="https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;gemini-chat" rel="nofollow">https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;gemini-chat</a> is a similar tool for trying out different Gemini models (Google released three more yesterday) with a streaming chat interface. Notes on how I built that here: <a href="https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;gemini-chat" rel="nofollow">https:&#x2F;&#x2F;tools.simonwillison.net&#x2F;gemini-chat</a><p>I still see some people arguing that LLM-assisted development like this is a waste of time, and they spend more effort correcting mistakes in the code than if they had written it from scratch themselves.<p>I couldn&#x27;t disagree more. My development process has always started with prototypes, and the speed at which I can get a proof-of-concept prototype up and running with these tools is quite frankly absurd.
评论 #41382364 未加载
评论 #41382150 未加载
评论 #41382303 未加载