Another ChatGPT use that you probably didn’t know

Shaun
Jan 6, 2023
Apps, Software
|
1

If you’re a tech enthusiast, you’ve probably heard about ChatGPT and the waves it’s making across several sectors. To call ChatGPT a chatbot is an understatement. It’s better thought of as a tool that offers almost any kind of written solution in a human-type conversational environment.

Because of its enormous dataset, it’s capable of performing previously unthinkable tasks. You can ask it to write poems about chihuahua dogs and loudspeakers, develop code, write essays on remote controls, and much more. 

Given its incredible flexibility, there is a lot of interest in this tool that goes far beyond customer service chatbots. The usage of this tool even includes some questionable practices

One of the most important questions is whether these tools can mean the end of Google, at least as we know it. This is because people are using it to find fast and accurate information. It’s so powerful even Microsoft is considering incorporating it into its search engine Bing.

It seems as if the only limit of ChatGPT is the written media, so the use people can give it is wildly varied and imagination is the only barrier between solving an issue and this AI. And one of the hottest areas where a lot of experimentation is taking place is, of course, software development.

Yet another ChatGPT use was discovered. What is it?

De-minify your code

One of the most recent examples of ChatGPT’s flexibility is deminifying code. For those who aren’t familiar with this, let’s explore two concepts: minifying and deminifying also called unminifying.

Minifying means reducing unnecessary characters. These not only include blank spaces, but also comments and long variable names. People do this to reduce code size, or because they’re used to certain expressions and it saves them time. The problem is, the code becomes hard for humans to read and understand.

Deminifying is the opposite. Given an arcane code, you deminify it by adding more expressive variables, comments, more lines, and a better layout so it can be understandable by anyone.

It’s easy to imagine software able to minify code, and there are many choices available. However, deminifying requires inventiveness, creativity, and other seemingly human qualities. It’s not surprising, then, that machines have a hard time when tasked with this. But again, this was the case until ChatGPT arrived at the scene.

People have been using this software to deminify code. Not only that, but it also offers explanations of what it does. For instance, I tasked it with unminifying the following code:

var array=[];for(var i=0;i<5;i++){array[i]=i;}

It gave the following answer:

var array = [];

for (var i = 0; i < 5; i++) {

  array[i] = I;

}

Yet another ChatGPT use was discovered. What is it?

This code creates an array called "array" and assigns it the values [0, 1, 2, 3, 4]. It does this by using a for loop that iterates 5 times and assigns the value of the loop variable "i" to the current index of the "array" variable on each iteration.

It goes without saying that this AI is not only helpful for people having issues when developing software, but it can also serve as an incredible learning experience. The most exciting thing is, this is just the beginning. New uses for AI tools are popping up every day, so tomorrow there’ll probably be yet another way in which ChatGPT makes our lives easier.

Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. bruh said on August 18, 2023 at 1:25 pm
    Reply

    Uhh, this has already been possible – I am not sure how but remember my brother telling me about it. I’m not a whatsapp user so not sure of the specifics, but something about sending the image as a file and somehow bypassing the default compression settings that are applied to inbound photos.

    He has also used this to share movies to whatsapp groups, and files 1Gb+.

    Like I said, I never used whatsapp, but I know 100% this isn’t a “brand new feature”, my brother literally showed me him doing it, like… 5 months ago?

  2. 💥 said on August 18, 2023 at 3:55 pm
    Reply

    Martin, what happened to those: 12 Comments (https://www.ghacks.net/chatgpt-gets-schooled-by-princeton-university/#comments). Is there a specific justifiable reason why they were deleted?

    Hmm, it looks like the gHacks website database is faulty, and not populating threads with their relevant cosponsoring posts.

  3. 45 RPM said on August 19, 2023 at 6:29 pm
    Reply

    The page on ghacks this is on represents the best of why it has become so worthless, fill of click-bait junk that it’s about to be deleted from my ‘daily reads’.

    It’s really like “Press Release as re-written by some d*ck for clicks…poorly.” And the subjects are laughable. Can’t wait for “How to search for files on Windows”.

    1. owl said on August 20, 2023 at 12:51 am
      Reply

      > The page on ghacks this is on represents the best of why it has become so worthless, fill of click-bait junk…

      Sadly, I have to agree.

      Only Martin and Ashwin are worth subscribing to.
      Especially Emre Çitak and Shaun are the worst ones.

      If ghacks.net intended “Clickbait”, it would mark the end of Ghacks Technology News.
      Ghacks doesn’t need crappy clickbaits. Clearly separate articles from newer authors (perhaps AIs and external sales person or external advertising man) as just “Advertisements”!

      We, the subscribers of Ghacks, urge Martin to make a decision.

  4. chessandonions said on August 20, 2023 at 12:40 am
    Reply

    because nevermore wants to “monetize” on every aspect of human life…

  5. Frank Rizzo said on August 20, 2023 at 11:52 pm
    Reply

    “Threads” is like the Walmart of Social Media.

  6. Ashray said on August 21, 2023 at 4:06 pm
    Reply

    How hard can it be to clone a twitter version of that as well? They’re slow.

  7. Paul(us) said on August 21, 2023 at 5:16 pm
    Reply

    Yes, why not mention how large the HD files can be?
    Why, not mention what version of WhatsApp is needed?
    These omissions make the article feel so bare. If not complete.

    1. Paul(us) said on August 21, 2023 at 5:18 pm
      Reply

      Sorry posted on the wrong page.

  8. Marc said on August 21, 2023 at 6:00 pm
    Reply

    such a long article for such a simple matter. Worthless article ! waste of time

  9. plusminus_ said on August 21, 2023 at 7:54 pm
    Reply

    I already do this by attaching them via the ‘Document’ option.

  10. John G. said on August 21, 2023 at 11:43 pm
    Reply

    I don’t know what’s going on here at Ghacks but it’s obvious that something is broken, comments are being mixed whatever the article, I am unable to find some of my later posts neither. :S

  11. Tom Hawack said on August 23, 2023 at 2:28 pm
    Reply

    Quoting the article,
    “As users gain popularity, the value of their tokens may increase, allowing investors to reap rewards.”

    Besides, beyond the thrill and privacy risks or not, the point is to know how you gain popularity, be it on social sites as everywhere in life. Is it by being authentic, by remaining faithful to ourselves or is it to have this particular skill which is to understand what a majority likes, just like politicians, those who’d deny to the maximum extent compatible with their ideological partnership, in order to grab as many of the voters they can?

    I see the very concept of this Friend.tech as unhealthy, propagating what is already an increasing flaw : the quest for fame. I won’t be the only one to count himself out, definitely.

    1. Tom Hawack said on August 23, 2023 at 2:34 pm
      Reply

      @John G. is right : my comment was posted on [https://www.ghacks.net/2023/08/23/what-is-friend-tech/] and it appears there but as well here at [https://www.ghacks.net/2023/07/08/how-to-follow-everyone-on-threads/]

      This has been lasting for several days. Fix it or at least provide some explanations if you don’t mind.

  12. Tom said on August 24, 2023 at 11:53 am
    Reply

    > Google Chrome is following in Safari’s footsteps by introducing a new feature that allows users to move the Chrome address bar to the bottom of the screen, enhancing user accessibility and interaction.

    Firefox did this long before Safari.

  13. Mavoy said on September 16, 2023 at 2:17 pm
    Reply

    Basically they’ll do anything except fair royalties.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.