Coding and GenAI – an ideal match

8

October

2024

No ratings yet.

I remember my first assignment with RStudio in the Business Information course in the first year of my bachelor’s (in 2021). I had no experience with coding so I had to learn this from scratch. After crying and asking my lovely dad for help, I managed to write some code. This was all fun and games until I encountered my very first error code – and soon after many more followed. So of course, I stressed out and I didn’t know what to do. I started searching on Google and clicked on a number of webpages. And before I knew it, I was in deep into Stack Overflow. When I finally managed to find a post describing the same problem I encountered, I figured out that that the specific solution did not entirely work for my code, so the cycle repeated itself again. This process of resolving errors was time-consuming and definitely frustrating going from webpage to webpage and then going back to my code to see that the solution did not apply to my situation.

My journey

In 2022, ChatGPT entered the scene. Back then, I was on exchange in Hong Kong. While calling my dad, he mentioned something about an “AI bot who can generate everything you want it to generate”. I brushed this off seeing it as something similar to the Metaverse: the hype will last for a couple of months and then it will just be over. But when I came back home months later, everyone was still talking about this ‘ChatGPT’. One day, I tried putting my error codes in ChatGPT and it came up with a clear solution and even provided example code! How convenient! Now, I still use ChatGPT to take a look at my error codes.

Reflection

As you, the reader, might have noticed, I am very satisfied with using GenAI for coding. As I now genuinely love coding in RStudio, I still write my code myself. However, when encountering error codes, ChatGPT is definitely my ‘bestie’. Solving an error code is not the scope of writing code or running analyses. By using GenAI, it saves me a ton of time. No need to dive into the deep rabbit holes of Stack Overflow. I just provide my code and the error code to the GenAI bot and it will help me instantly. How amazing! It still blows my mind.

You still need to use your brain!

Using GenAI for coding does not, however, mean that you just let ChatGPT write your code and you just shut off your brain. In my opinion, it is still crucial to use a critical attitude when using GenAI for coding purposes. You can let the bot write all the code you want and resolve all of your problems every time, but if you don’t understand what the output is, using GenAI might as well be pointless. In my opinion, learning from the output from GenAI is the key to success. By learning from the output, you can prevent the same error codes next time you write code.

Thus, in my opinion GenAI is definitely useful for coding. No more wasting time on Stack Overflow as error codes are resolved in just a couple of seconds thanks to GenAI. Combine this with maintaining a critical mind and you might be able to hack a government soon.

Questions for the readers

As readers, are you as enthusiastic as me about using GenAI for coding? What are your experiences? Or have you encountered any difficulties by using GenAI for coding?

Please rate this

Generative AI in the Data Scientist’s Universe: A Friendly Companion or a Sneaky Enemy?

2

October

2023

5/5 (1)

In today’s business landscape, data is key. The widespread adoption of Artificial Intelligence (AI) and Machine Learning (ML) has sparked a compelling debate about the future of the data scientist’s role. As we progress into an era where being code literate and possessing technical knowledge are no longer barriers to entry, the accessibility of generative AI tools has transcended the boundaries of academic research and tech giants. It’s now within reach for anyone with an internet connection and an email address.

It made me wonder if this transformation means the death of data scientist-like professions or whether it signifies the birth of new roles. I will delve into this question using my personal experience as a starting point.  

The Learning Curve

About a year ago I started in a newly created role as a junior business controller. I quickly realized the importance of harnessing data to create insightful dashboards that guide data-driven decision-making. Learning to navigate the complex world of data was a challenge in itself (I mean, how do I know that I can trust my data? What data is available and what is relevant?), but the real game-changer came when I discovered the power of generative AI.

It was like having a 24/7 coding mentor at my fingertips

Starting from scratch with SQL was no walk in the park. I encountered countless errors, syntax hiccups, and moments of sheer frustration. But I followed some courses, watched YouTube videos and found out that SQL is amazing (honestly: I would highly recommend learning it)! It was during this process that I stumbled upon an invaluable ally: ChatGPT. Whenever I hit a roadblock, I would turn to ChatGPT and put my code-related questions in. Within seconds, I’d receive clear and concise explanations, troubleshooting tips, and even code snippets to resolve my issues. It was like having a 24/7 coding mentor at my fingertips.

ChatGPT can even help write queries from scratch! Source: https://blog.devart.com/how-to-use-chatgpt-to-write-sql-join-queries.html

The Role of Generative AI in Data-Related Work

Generative AI, like ChatGPT, is not just a tool for beginners like me. I’m convinced that it has the potential to revolutionize the way data scientists and coders work. But should we see it as a friendly companion or a sneaky enemy that is stealing jobs?

AI as a Productivity Booster

First and foremost, generative AI can significantly enhance the productivity of data professionals. It excels at automating repetitive tasks, such as data retrieval and cleaning as well as tackling error messages. This frees up valuable time for more critical analysis. It can also serve as a valuable learning resource, providing instant answers and explanations for coding queries. Due to this I have experienced a steep learning curve in my SQL journey.

Human data scientists and coders bring a unique skill set to the table; they possess the ability to interpret, contextualize, and make nuanced decisions based on data

The Future of Data-Related Jobs

The future of data-related jobs stands at a crossroads, where the demand for AI-ready professionals who can effectively harness tools like ChatGPT is already evident in job descriptions. The fear of AI replacing human expertise is a legitimate concern, but it’s important to remember that AI is a tool, not a replacement. While generative AI offers substantial productivity gains, it’s not immune to errors or hallucinations, reminding us of the irreplaceable value of deep domain expertise. Human data scientists and coders bring a unique skill set to the table; they possess the ability to interpret, contextualize, and make nuanced decisions based on data. AI can undoubtedly assist in the technical aspects of the job, streamlining processes and automating tasks, but it cannot replicate the human touch required for holistic and insightful data analysis.

Well, the way I see it..

In my role, generative AI has truly been a game-changer. It’s become an ally helping me out with coding challenges and making my dashboards way better and more trustworthy. It surprised me by getting results faster than I expected, and I can’t complain about that! And whenever my SQL query was actually running properly, I put it in and asked for suggestions to improve performance. Using ChatGPT for my coding-related questions has boosted my efficiency and effectiveness, and I see it as a sneak peek into the future of data work. It’s all about humans and AI teaming up, playing to each other’s strengths for some seriously awesome outcomes.

So, the next time you encounter a coding conundrum, don’t hesitate to turn to generative AI. It’s not a replacement for your expertise but a trusted partner in your data-driven journey.

Curious to hear your thoughts and experiences! Also let me know whether some of you use other GAI tools for your data- and coding-related issues! 😉

Please rate this

Should we start teaching coding since the first years of education?

6

October

2021

No ratings yet.

We live in a society where data and technology are everywhere and are becoming an essential part of our lives. Companies are using  big data in order to acquire competitive advantage and improve their process and products. Some observed benefit that data driven companies are enjoying compared to those who are not are:

  1. A likelihood 23 times higher to acquire new customers thanks data driven marketing campaign
  2. a profit increase of 8% 
  3. reduction of cost of 10% (keboola, 2019)

The demands from employer of coding and data analytics skills is skyrocketing. Glassdoor reported that eight of the top 25 jobs in the US are tech-based and require some level of coding proficiency. Similarly, a 2016 Burning Glass report found that the demand for roles such as data analyst is rising 12% than the market average (Nord Anglia 2020).

Reading this data one question came immediately to my mind. Since schools have a responsibility to provide students with all the tools and skills they need in order to succeed in their future should the educational system be more prone to the digital revolution and start teaching codes and data analytics since the first years of instruction? I personally believe that our educational system should empathize more the importance of those skills since the earlier age of our education.

When I started my master in Lisbon I had one  mandatory course that was about econometrics and data analytics. So, the first time I started learning coding was at 22 years old and I wish I could have started way before. During my bachelor in management in Padova I did not have the possibility to choose any elective course regarding those topics. Many italian business university still do not have a dedicated bachelor or master to business and data analyst. I believe every students in management , finance or economics nowadays should have at least a basic knowledge in coding and data analytics in order to be competitive in the job market in the future. Like with every other subject if we start to approach it since we are young it would be easier to learn it and master it.

Let me know what you think and how is the situation in your countries.

Keboola 2019 available at https://www.keboola.com/blog/5-stats-that-show-how-data-driven-organizations-outperform-their-competition

Nord Anglia 2020 avaiable at https://www.nordangliaeducation.com/news/2020/08/18/the-benefits-of-coding-in-school-and-how-to-teach-it

Please rate this