[ad_1]
Coding has been part of my life since I used to be 10. From modifying HTML & CSS for my Friendster profile in the course of the easy web days to exploring SQL injections for the fun, constructing a three-legged robotic for enjoyable, and recently diving into Python coding, my coding journey has been various and enjoyable!
Right here’s what I’ve discovered from numerous programming approaches.
The way in which I study coding is at all times related; As individuals say, principally it’s simply copy-pasting. 😅
Relating to constructing one thing within the coding world, right here’s a breakdown of my methodology:
Select the Proper Framework or Library
Be taught from Previous Tasks
Break It Down into StepsSlice your undertaking into actionable merchandise steps, making growth much less overwhelming.
Google Every ChunkFor each step, seek the advice of Google/Bing/DuckDuckGo/any search engine you favor for insights, steerage, and potential options.
Begin CodingTry to implement every step systematically.
Nonetheless, even essentially the most well-thought-out code can encounter bugs. Right here’s my technique for troubleshooting:
1. Examine Framework Documentation: ALWAYS learn the docs!
2. Google and Stack Overflow Search: search on Google and Stack Overflow. Instance key phrase can be:
web site:stackoverflow.com [coding language] [library] error [error message]
web site:stackoverflow.com python error ImportError: pandas module not discovered
– Stack Overflow Options: If the problem is already on Stack Overflow, I search for essentially the most upvoted feedback and options, usually discovering a fast and dependable reply.– Belief My Instinct: When Stack Overflow doesn’t have the reply, I belief my instinct to seek for reliable sources on Google; GeeksForGeeks, Kaggle, W3School, and In the direction of Information Science for DS stuff 😉
3. Copy-Paste the Code Resolution
4. Confirm and Take a look at: The ultimate step consists of checking the modified code completely and testing it to make sure it runs as meant.
And Voila you simply clear up the bug!

Isn’t it lovely?
However in actuality, are we nonetheless doing this?!
Currently, I’ve seen a shift in how new coders are tackling coding. I’ve been instructing the best way to code professionally for about three years now, bouncing round in coding boot camps and visitor lecturing at universities and company coaching. The way in which coders are stepping into code studying has modified a bit.
I often inform the recent faces to stay with the old-school methodology of shopping and googling for solutions, however persons are nonetheless utilizing ChatGPT ultimately. And their alibi is
“Having ChatGPT (for coding) is like having an additional examine buddy -who chats with you want an everyday individual”.
It turns out to be useful, particularly once you’re nonetheless attempting to wrap your head round issues from search outcomes and documentation — to develop what’s so-called programmer instinct.
Now, don’t get me unsuitable, I’m all for the fundamentals. Shopping, studying docs, and throwing questions into the group pot — these are stable strikes, in my e-book. Relying solely on ChatGPT could be a bit a lot. Positive, it may possibly whip up a speedy abstract of solutions, however the standard shopping strategies provide the freedom to choose and select, to experiment a bit, which is fairly essential within the coding world.
However, I’ve gotta give credit score the place it’s due — ChatGPT is lightning-fast at giving out solutions, particularly once you’re nonetheless attempting to determine the proper from the unsuitable in search outcomes and docs.
I notice this shift of utilizing ChatGPT as a examine buddy just isn’t solely occurring within the coding scene, Chatgpt has revolutionized the way in which individuals study, I even use ChatGPT to repair my grammar for this publish, sorry Grammarly.
Saying no to ChatGPT is like saying no to serps within the early 2000 period. Whereas ChatGPT might include biases and hallucinations, much like serps having unreliable info or hoaxes. When ChatGPT is used appropriately, it may possibly expedite the educational course of.
Now, let’s think about a real-life situation the place ChatGPT might enable you to by being your coding buddy to assist with debugging.
Situation: Debugging a Python Script
Think about you’re engaged on a Python script for a undertaking, and also you encounter an surprising error that you could’t clear up.
Right here is how I was taught to do it — the period earlier than ChatGPT.
Shopping Strategy:
Examine the Documentation:
Begin by checking the Python documentation for the module or perform inflicting the error.
For instance:– go to https://scikit-learn.org/secure/modules/ for Scikit Be taught Doc
2. Search on Google & Stack Overflow:
If the documentation doesn’t present an answer, you flip to Google and Stack Overflow. Scan via numerous discussion board threads and discussions to discover a related concern and its decision.

3. Belief Your Instinct:
If the problem is exclusive or not well-documented, belief your instinct! You may discover articles and sources on Google that you simply’ve discovered reliable prior to now, and attempt to adapt related options to your downside.

You possibly can see that on the search outcome above, the outcomes are from W3school – (trusted coding tutorial web site, nice for cheatsheet) and the opposite 2 outcomes are official Pandas documentation. You possibly can see that serps do counsel customers have a look at the official documentation. 😉
And that is how you should utilize ChatGPT that will help you debug a problem.
New Strategy with ChatGPT:
Interact ChatGPT in Conversations:
As a substitute of solely navigating via documentation and boards, you possibly can interact ChatGPT in a dialog. Present a concise description of the error and ask. For instance,
“I’m encountering a problem in my [programming language] script the place [describe the error]. Are you able to assist me perceive what could be inflicting this and counsel a attainable answer?”

2. Make clear Ideas with ChatGPT:
If the error is expounded to an idea you’re struggling to understand, you possibly can ask ChatGPT to clarify that idea. For instance,
“Clarify how [specific concept] works in [programming language]? I feel it could be associated to the error I’m dealing with. The error is: [the error]”

3. Search Suggestions for Troubleshooting:
You ask ChatGPT for common tips about troubleshooting Python scripts. As an illustration,
“What are some frequent methods for coping with [issue]? Any suggestions on instruments or methods?”

Potential Benefits:
Customized Steering: ChatGPT can present customized steerage based mostly on the particular particulars you present in regards to the error and your understanding of the issue.
Idea Clarification: You possibly can search explanations and clarifications on ideas straight from ChatGPT leveraging their LLM functionality.
Environment friendly Troubleshooting: ChatGPT may provide concise and related ideas for troubleshooting, doubtlessly streamlining the debugging course of.
Potential Limitations:
Now let’s speak in regards to the cons of counting on ChatGPT 100%. I noticed these points so much in my scholar’s journey on utilizing ChatGPT. Publish ChatGPT period, my college students simply copied and pasted the 1-line error message from their Command Line Interface regardless of the error being 100 strains and linked to some modules and dependencies. Asking ChatGPT to clarify the workaround by offering a 1 line error code may work typically, or worse — it would add 1–2 hour manhour of debugging.
ChatGPT comes with a limitation of not with the ability to see the context of your code. For positive, you possibly can at all times give a context of your code. On a extra complicated code, you won’t be capable of give each line of code to ChatGPT. The truth that Chat GPT solely sees the small portion of your code, ChatGPT will both assume the remainder of the code based mostly on its data base or hallucinate.
These are the attainable limitations of utilizing ChatGPT:
Lack of Actual-Time Dynamic Interplay: Whereas ChatGPT offers helpful insights, it lacks the real-time interplay and dynamic back-and-forth that boards or dialogue threads may provide. On StackOverflow, you might need 10 completely different individuals who would counsel 3 completely different options which you’ll examine both by DIY ( do it your self, strive it out) or see the variety of upvotes.
Dependence on Previous Data: The standard of ChatGPT’s response relies on the data it has been skilled on, and it will not be conscious of the most recent framework updates or particular particulars of your undertaking.
May add additional Debugging Time: ChatGPT doesn’t have a context of your full code, so it would lead you to extra debugging time.
Restricted Understanding of Idea: The standard shopping strategies provide the freedom to choose and select, to experiment a bit, which is fairly essential within the coding world. If you know the way to handpick the proper supply, you most likely study extra from shopping by yourself than counting on the ChatGPT common mannequin.Until you ask a language mannequin that’s skilled and specialised in coding and tech ideas, analysis papers on coding supplies, or well-known deep studying lectures from Andrew Ng, Yann Le Cunn’s tweet on X (previously Twitter), just about ChatGPT would simply give a common reply.
This situation showcases how ChatGPT is usually a helpful instrument in your coding toolkit, particularly for acquiring customized steerage and clarifying ideas. Keep in mind to steadiness ChatGPT’s help with the strategies of shopping and ask the group, maintaining in thoughts its strengths and limitations.
Ultimate Ideas
Issues I might suggest for a coder
Should you actually need to leverage the autocompletion mannequin; as an alternative of solely utilizing ChatGPT, strive utilizing VScode extensions for auto code-completion duties resembling CodeGPT — GPT4 extension on VScode, GitHub Copilot, or Google Colab Autocomplete AI instruments in Google Colab.

As you possibly can see within the screenshot above, Google Colab routinely offers the consumer solutions on what code comes subsequent.
One other various is Github Copilot. With GitHub Copilot, you may get an AI-based suggestion in real-time. GitHub Copilot suggests code completions as builders sort and switch prompts into coding solutions based mostly on the undertaking’s context and elegance conventions. As per this launch from Github, Copilot Chat is now powered by OpenAI GPT-4 (a similiar mannequin that ChatGPT is utilizing).

I’ve been actively utilizing CodeGPT as a VSCode Extension earlier than I knew that Github Copilot is accessible free of charge if you’re in schooling program. CodeGPT Co has 1M obtain to this date on the VSCode Extension Market. CodeGPT permits seamless integration with the ChatGPT API, Google PaLM 2, and Meta Llama.You will get code solutions via feedback, right here is how:
Write a remark asking for a selected code
Press cmd + shift + i
Use the code 😎

You can even provoke a chat through the extension within the menu and bounce into coding conversations 💬

As I mirror on my coding journey, the invaluable lesson discovered is that there’s no one-size-fits-all strategy to studying. It’s important to embrace a various array of studying strategies, seamlessly mixing conventional practices like shopping and group interplay with the revolutionary capabilities of instruments like ChatGPT and auto code-completion instruments.
What to Do:
Make the most of Tailor-made Studying Sources: Benefit from ChatGPT’s suggestions for studying supplies.
Collaborate for Drawback-Fixing: Make the most of ChatGPT as a collaborative companion as if you’re coding with your folks.
What To not Do:
Over-Dependence on ChatGPT: Keep away from relying solely on ChatGPT and guarantee a balanced strategy to foster unbiased problem-solving expertise.
Neglect Actual-Time Interplay with Coding Group: Whereas ChatGPT affords helpful insights, don’t neglect the advantages of real-time interplay and suggestions from coding communities. That additionally helps construct a repute locally
Disregard Sensible Coding Apply: Steadiness ChatGPT steerage with hands-on coding observe to strengthen theoretical data with sensible software.
Let me know within the feedback how you employ ChatGPT that will help you code!Completely satisfied coding!Ellen
🌐 Observe me on LinkedIn🚀 Take a look at my portfolio: liviaellen.com/portfolio👏 My Earlier AR Works: liviaellen.com/ar-profile☕ or simply purchase me an actual espresso ❤ — Sure I really like espresso.
Concerning the Creator
I’m Ellen, a Machine Studying engineer with 6 years of expertise, at present working at a fintech startup in San Francisco. My background spans information science roles in oil & gasoline consulting, in addition to main AI and information coaching packages throughout APAC, the Center East, and Europe.
I’m at present finishing my Grasp’s in Information Science (graduating Could 2025) and actively on the lookout for my subsequent alternative as a machine studying engineer. Should you’re open to referring or connecting, I’d really admire it!
I really like creating real-world influence via AI and I’m at all times open to project-based collaborations as properly.
[ad_2]
Source link


