Are we getting lazy with AI?

I have to admit that at least I've started using AI a lot these days and even for my official work. We have a ban on ChatGPT and other AI-based tools in our office, but we have access to GitHub Copilot with a consent form filled out by us. We are allowed to use GitHub Copilot for coding-related help, but we have to fill out the consent form to be very careful with the answers provided by the Copilot. Some of the teams are even using Amazon Q, and I find Copilot itself to be convenient and answers most of my questions.

I have started using more and more AI in my projects to generate code. I know the logic, and I know the basic coding. So I don't have to worry about wrong code provided by AI. I review the code provided by AI before using it in production. For non-production activities, I don't worry too much as long as it gives the output I require. But I do take precautions and review it when required. But most of the time, it is very good.

Source

I recently did a frontend project that was supposed to be a website design. The client had given me the UI designs through figma, and I had to convert it to code and use it in the project. Usually these projects can take upto 3 months or even more than that to just design the UI alone, but I was able to complete it in 3 weeks time. I copy-paste the screenshot of the design to AI, and AI would provide me with the code in my tech stack. Of course, the code may not be 100 percent perfect. I might have to spend an hour or two tweaking the code provided by the AI. But this is far better than doing everything from scratch.

Today, I wanted to do another project where I had a mongo database that had multiple collections with different schemas. I wanted to check if I can get all the collection information with fields and their respective field type. I asked Chat GPT, and it gave me the following code.


// Function to infer field types from sample documents
function inferSchema(collectionName, sampleSize = 100) {
  const samples = db.getCollection(collectionName).aggregate([
    { $sample: { size: sampleSize } },
    { $project: { _id: 0 } }
  ]).toArray();

  const schema = {};

  samples.forEach(doc => {
    for (const key in doc) {
      const val = doc[key];
      const type =
        Array.isArray(val) ? 'Array'
        : val === null ? 'Null'
        : val instanceof Date ? 'Date'
        : typeof val === 'object' ? 'Object'
        : typeof val;

      schema[key] = schema[key] || new Set();
      schema[key].add(type);
    }
  });

  const finalSchema = {};
  for (const key in schema) {
    finalSchema[key] = Array.from(schema[key]);
  }

  return finalSchema;
}

// Get all collection names
const collections = db.getCollectionNames();

// Loop through collections and print schema
collections.forEach(coll => {
  print(`\n📦 Collection: ${coll}`);
  const schema = inferSchema(coll);
  printjson(schema);
});


Above is an AI Generated Code

The above code was generated and given, and when I reviewed I noticed that I can do a few tweaks here and there, but it solved my needs. I directly ran this code on my mongo database using NoSQLBooster. The output was perfect and as desired. ChatGPT asked me to provide that output so that it can create a fully working Node.js project with API routes and schema. This is an experimental project to see how I'm able to build my project without any need for writing code myself. Of course, I might have to do some tweaking to the output provided by Chat GPT. But this is awesome, and this is yet another example of how the future of development is looking like. No wonder that freshers are finding it hard to get into IT jobs.


If you like what I'm doing on Hive, you can vote me as a witness with the links below.

Vote @balaz as a Hive Witness

Vote @kanibot as a Hive Engine Witness



Posted Using INLEO

0.23651498 BEE
13 comments

not only on it, people are getting lazy in general, students ask ai to solve problems too... it's inevitable when such a tool promotes no mind work

0.01210520 BEE

This post has been manually curated by @steemflow from Indiaunited community. Join us on our Discord Server.

Do you know that you can earn a passive income by delegating to @indiaunited. We share more than 100 % of the curation rewards with the delegators in the form of IUC tokens. HP delegators and IUC token holders also get upto 20% additional vote weight.

Here are some handy links for delegations: 100HP, 250HP, 500HP, 1000HP.

image.png

100% of the rewards from this comment goes to the curator for their manual curation efforts. Please encourage the curator @steemflow by upvoting this comment and support the community by voting the posts made by @indiaunited..

This post received an extra 20.00% vote for delegating HP / holding IUC tokens.

0.01208820 BEE

I don't think it is lazy, just working smart usign the tools that available. As long as you know all yu need to review the code given by Ai, then it would be ok I think. but blindly following what AI gave would be dangerous as it might not fit well with the project you are handling.
!PIZZA

0.01206777 BEE

This post has been manually curated by @bhattg from Indiaunited community. Join us on our Discord Server.

Do you know that you can earn a passive income by delegating your Leo power to @india-leo account? We share 100 % of the curation rewards with the delegators.

100% of the rewards from this comment goes to the curator for their manual curation efforts. Please encourage the curator @bhattg by upvoting this comment and support the community by voting the posts made by @indiaunited.

0.01204978 BEE

Yesterday i did spend my entire day using chatgpt and cursor. Cursor is new for me. I was planning to build something but it didn't work at all.

0.01203178 BEE

Oh nice. Getting a grasp of it at first is a little tough.

0.00000000 BEE

Indeed, I was just trying something new. But that didn't worked 😅

0.00000000 BEE

I am kinda confused how to utilize AI very well.
I dont know where to start either using AI
Especially here in Hive we are forbidden using AI right
thats why i dont know about AI well

0.01201273 BEE

AI is keeping us lazy
Yesterday, I wrote an examination with the help of AI
I didn’t need to stress too much

0.01198986 BEE

Absolutely loved this post — it's a question I've been asking myself a lot lately.

From my own experience, I’d say AI can definitely make us lazy in some areas, especially when we stop thinking critically or rely on it for every little thing. For example, I used to write blog posts from scratch, brainstorm everything, edit line by line. Now with AI tools, it's easy to just prompt something and click “go.” It saves time, but sometimes I catch myself becoming too passive in the creative process.

But on the flip side — it has also made me more disciplined. I started using AI to generate visual content and ended up opening a POD (Print-on-Demand) store where I sell designs created partly with free AI tools. That required commitment, learning how to market, testing designs, and being consistent. In a weird way, AI helped me build structure where before I just procrastinated.

So maybe it’s not about AI making us lazy or smart — it’s about how we choose to use it. Like any tool, it can either dull us or empower us.

0.00601646 BEE

I am lazy using Ai or not!

0.00000000 BEE

untitled.gif

0.00000000 BEE

Congratulations @bala41288! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 88000 upvotes.
Your next target is to reach 89000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

0.00000000 BEE

For me personally, I strongly believe that AI is not making us lazy but making us to be more effective

0.00000000 BEE

PIZZA!

$PIZZA slices delivered:
@ekavieka(4/5) tipped @bala41288

Come get MOONed!

0.00000000 BEE