How to use ChatGPT to write code

How to use ChatGPT to write code
sample-image-16-9-red.jpg

David Gewirtz/ZDNET

One of the more intriguing discoveries about ChatGPT is that it can write pretty good code. I tested this out in February when I asked it to write a WordPress plugin my wife could use on her website. It did a fine job, but it was a very simple project. 

How to use ChatGPT to write: Resumes | Excel formulas | Essays | Cover letters 

How can you use ChatGPT to write code as part of your daily coding practice? That’s what we’re going to explore here.

What types of coding can ChatGPT do well?

There are two important facts about ChatGPT and coding. The first is that it can, in fact, write useful code. The second is that it can get completely lost, fall down the rabbit hole, chase its own tail, and produce absolutely unusable garbage.

Also: I’m using ChatGPT to help me fix code faster, but at what cost?

I found this out the hard way. After I finished the WordPress plugin, I decided to see how far ChatGPT could go. I wrote out a very careful prompt for a Mac application, including detailed descriptions of user interface elements, interactions, what would be provided in settings, how they would work, and so on. Then I fed it to ChatGPT.

ChatGPT responded with just a flood of text and code. Then it stopped mid-code. When I asked it to continue, it vomited out even more code and text. I requested continue after continue and it dumped out more and more code. But… none of it was usable. It didn’t identify where the code should go, how to construct the project, and — when I looked carefully at the code produced — it left out major operations I requested, leaving in simple text descriptions stating “program logic goes here.”

Also: Okay, so ChatGPT just debugged my code. For real.

After a bunch of repeated tests, it became clear to me that if you ask ChatGPT to deliver a complete application, it will fail. A corollary to this observation is that if you know nothing of coding and want ChatGPT to build you something, it will fail.

Where ChatGPT succeeds, and does so very well, is helping someone who already knows how to code to build specific routines and get specific tasks done. Don’t ask for an app that runs on the menu bar. But if you ask ChatGPT for a routine to put a menu on the menu bar, and then paste that into your project, it will go quite well.

Also: How to use ChatGPT to create an app

Also keep in mind that while it appears ChatGPT has a tremendous amount of domain-specific knowledge (and it often does) it lacks wisdom. As such, it may be able to write code, but it won’t be able to write code containing the nuances for very specific or complex problems that requires deep experience to understand.

Use ChatGPT to demo techniques, write small algorithms, and write subroutines. You

Read More

Best Gaming Accessories For Gamers In May 2023

Best Gaming Accessories For Gamers In May 2023

Our posts contain affiliate links. Sometimes, not always, we may make $$ when you make a purchase through these links. No Ads. Ever. Learn More

To help you find the best gaming accessories for PC gaming, or for use with Xbox One, PlayStation or Nintendo, we have tried out plenty of top products, looking for durable and well made items that truly enhance the gaming experience. To that end, we have populated the below list with a nice mix of headphones, keyboards, gaming mouse devices and a bunch of other products that will take your hobby to the next level.

The best gaming accessory we tried was the Turtle Beach Stealth 600 Wireless Surround Sound Gaming Headset, which is just a stunning pair of headphones that can be purchased for either the Xbox One or PlayStation 4. These cans offer a steady wireless connection and the option for surround sound, with advanced audio drivers and powerful 55 millimeter speakers, each helping to produce crisp and larger than life audio. They also get around 15 hours on a single charge, which is great. If you’re looking for a headset specifically for your PS4, we’ve written about the best gaming headset PS4 too. Keep reading to learn more about the Turtle Beach Stealth 600 Wireless Surround Sound Gaming Headset and the other gaming accessories on this list.

Top 7 Best Gaming Accessories

#1 Turtle Beach Stealth 600 Wireless Gaming Headset

Award: TOP PICK

WHY WE LIKE IT: Amazing gaming headphones that offer 15 hours of battery life on a single charge, a suite of excellent audio drivers, with powerful 55 millimeter speakers, and availability in a wide range of color choices.

Read Full Review: Turtle Beach Stealth 600 Review

Pros
  • Works with Playstation and Xbox
  • 15 hour battery life
  • Fantastic audio drivers
Cons
  • May need adapter for PC use
  • Not for use with Nintendo Switch
  • Firmware updates are sporadic

The Turtle Beach Stealth 600 Wireless Surround Sound Gaming Headset is available in different SKUs for PlayStation 4 or Xbox One, including some functionality with Windows PCs. These headphones are of an extremely high quality, with powerful 55 millimeter speakers, advanced audio drivers and a fantastic battery that gets 15 hours of use on a single charge. We also liked that they are available in a wide variety of color options and that the design is comfortable for long gaming sessions, even for people that wear glasses.

Related: Also see our best gaming desk.

Though, technically, these headphones function nicely with Windows gaming PCs, you may need to purchase an adapter. Also, this product is not for use with the Nintendo Switch, though that is more the fault of the console itself, as it lacks the necessary USB input. That said, you should be checking out the best gaming keyboards if you’re serious or competitive in the remotest of ways.

#2 Razer Gaming Mouse Bungee Gaming Accessory

Award: HONORABLE MENTION

WHY WE LIKE IT: Don’t be fooled by this accessories simplicity.

Read More

Very best techniques to maintain snoopers out of your computer system

Very best techniques to maintain snoopers out of your computer system

There are many means that the erroneous person can go snooping on your computer system.  Possibly you forgot to lock your display screen ahead of leaving your system unattended so anybody strolling by can see. Or possibly you will not have plenty of safety on your machine so that a malicious hacker can quickly get accessibility. 

It can take a matter of seconds for a nosey nearby poor actor to plant malware or simply snoop on an unprotected telephone or notebook.  

Let’s go about some important actions to protect your computer from snoopers of any form.

Click on TO GET KURT’S Totally free CYBERGUY Newsletter WITH Brief Tips, TECH Testimonials, Stability ALERTS AND Easy HOW-TO’S TO MAKE YOU SMARTER

Lock your display

The very last issue you want is an exterior human being glancing at your device display screen, even if it’s anyone you rely on. We really don’t just hand our telephones in excess of to anyone and notify them they can appear via our photos and messages, so why would not you want the same privacy for your pc? Obtaining your screen locked at all periods when you’re not making use of your laptop or computer is a single of the best ways to keep individuals wandering eyes from searching at your device.

How to lock your Mac computer system

  • Click the Apple icon in the best remaining corner
  • Click on Lock Monitor

How to set your Mac to log out when it is really not in use

  • Simply click the Apple icon in the leading left corner
  • Simply click Method Settings 
  • On the remaining-hand sidebar, click on Privacy & Security 
  • Scroll all the way down and click Advanced…
  • Toggle on Log out instantly after inactivity 
  • Click on Carried out
Computer desktop

The past issue you want is an outside individual glancing at your device display, even if it can be somebody you trust. ( )

Will not Allow SNOOPERS Nearby Listen TO YOUR VOICEMAIL WITH THIS Fast Idea

How to lock your Windows computer

There are a number of techniques for you to lock your Windows computer. In this article are a few options you can do.

  • Strike Home windows + L
  • Press Ctrl + Alt + Delete and select Lock
  • Click the Begin button, then pick your consumer icon and simply click Lock

How to lock your Home windows computer quickly after inactivity

  • Open Options
  • Go to Personalization
  • Select Lock Screen
  • Click on Monitor saver configurations
  • Decide on any alternative from the dropdown menu 
  • Established a time for Home windows to wait around prior to locking
  • Check out the box for On resume, show logon monitor
  • Click on Alright

Use a webcam cover

Hackers can split into people’s webcams and spy on them without them knowing it. The very best way for you to stop this from going on is to get a include for your webcam. Have the cover on at all times when your webcam is not in use so that no one particular can at

Read More

“Super Mario” augurs far more media-gaming tie-ups

“Super Mario” augurs far more media-gaming tie-ups

LONDON, April 20 (Reuters Breakingviews) – Film and Television set adaptations of video clip video games have a chequered record. “Assassin’s Creed”, a 2016 motion picture centered on Ubisoft Entertainment’s (UBIP.PA) bestselling gaming franchise, was explained by one particular industry watcher as “uninspired, uninteresting, and soulless”, when Netflix’s (NFLX.O) try at reimagining Capcom’s (9697.T) “Resident Evil” was cancelled immediately after a person lowly rated year. But Nintendo’s “Super Mario”, together with HBO’s “The Last of Us”, is flipping the script.

“The Tremendous Mario Bros. Movie”, unveiled in North The us in early April and financed by Nintendo (7974.T) and Comcast-owned (CMCSA.O) Universal Pics, pulled in around $380 million all through its opening weekend, in accordance to media analytics company Comscore, building it the largest launch for any movie so far this year. In the meantime “The Very last of Us”, a Tv series dependent on a 2013 video activity by Sony-owned (6758.T) developer Naughty Dog, wrapped up its initial document-breaking season last month.

Reuters Graphics

There are advantages to possessing equally video games and their spinoffs. As nicely as co-creating the Television set sequence, Sony is reaping the benefits of amplified interest in the video game: Uk sales of “The Final of Us Aspect I” rose 238% week-on-7 days adhering to the show’s premiere, field publication GamesIndustry.biz documented citing GfK facts. Jefferies analysts estimate that the “Super Mario” film could incorporate $350 million to Nintendo’s running financial gain – equal to around 8% of its complete for the calendar year ending March 2022.

The good results of modern variations might guide media giants like Walt Disney (DIS.N), Comcast and Netflix to question what other goodies lie in video clip recreation providers. Companies like $21 billion Choose-Two Interactive Computer software (TTWO.O) and $15 billion Bandai Namco (7832.T) boast stellar writing team powering online games these as “Red Dead Redemption” and “Tales of Arise”. And share cost circumstances are favourable for buyouts: main publicly shown gaming companies Get-Two, Digital Arts (EA.O) and Ubisoft are trading in the vicinity of their cheapest multiples of their forecast earnings per share in five yrs, in accordance to Refinitiv facts. If Netflix at any time decides to extend its gaming ambitions outside of informal mobile online games, $3 billion CD Projekt (CDR.WA), a remarkably rewarding developer with which it collaborated on the “Cyberpunk: Edgerunners” Television set sequence, could be a concentrate on.

Reuters Graphics

Of system, acquisitions aren’t a presented. Despite not proudly owning the character, Universal’s “Super Mario” foray is even now probable to shell out off handsomely: Jefferies analysts reckon the movie could gross $1.5 billion on growth and marketing expenditures approximated among $100 million and $300 million. And media giants have regularly tried out and unsuccessful to properly combine video clip match divisions, frequently opting as a substitute for licensing specials, like EA’s new arrangement with Disney to create games primarily based on Marvel comedian reserve people. Ultimately, cooperation can be technological as effectively as innovative: Disney made use of Epic Games’ “Unreal

Read More

Eckerd pupils aid community seniors navigate electronics

Eckerd pupils aid community seniors navigate electronics

ST.PETERSBURG, Fla. — Ed Sved can remember his time in fighter jets through Globe War II practically like it was yesterday. At 99 yrs outdated, Ed has a harder time remembering how to operate his electronics, something he’s lived devoid of for most of his lifetime.


What You Need To Know

  •  Eckerd Faculty and the AARP Foundation husband or wife to offer you the Mentor Up program to help older adults discover the electronic planet
  •  Through the training course “Areas of Growing old,” university pupils are paired with seniors at Westminster Shores for technological innovation workshops
  •  While the objective of the method is to train more mature grownups the ins and outs of technological know-how, it is really also about setting up relationships that cross generations

“These are all factors new for me — the telephone, the pill, and computers in standard,” Sved claimed. “It is a pretty gradual mastering course of action and I want all the aid I can get.”

Thankfully, he has a young buddy to assist him out: Reyes Flores, a scholar at Eckerd School.

For the earlier 6 years, the university has partnered with the AARP Foundation for the Mentor Up program, which helps older grown ups learn the electronic earth. By Professor Tamar Shovali’s study course ‘Aspects of Ageing,’ college students volunteer for Saturday workshops and are paired with seniors at Westminster Shores.

Reyes explained he intiallly signed up for the course in get to fulfill a graduation need, but it’s grow to be a fulfilling knowledge.

“I did not expect to be in this course, truly love this plan and like truly coming in this article and assisting other persons,” he said. “It is enjoyment, I like it, it’s handy.”

In course, Reyes and his peers discover the idea of finding older and examine the stereotypes and stigma usually affiliate with the senior populace. Though the intention of the Mentor Up program is to assist more mature folks study the ins and outs of technological innovation, it is also about building optimistic interactions that cross generations.

“I like chatting to Ed,” Reyes said. “He’s 99 several years old. I’m so blown absent by that.”

Ed reported the application is essential for men and women his age and he appreciates the help from college students. Even late in lifestyle, Ed mentioned you can in no way quit mastering.

“I want to master, I want to be ready to understand these factors and it is seriously like learning a international language,” he explained.

About 15 college students in total participated in 6 Saturday morning workshops all over March to May well. Eckerd and the AARP Basis approach to offer you the system once again in spring of 2025.

Read More

How God Of War 2018 Became The New Blueprint For Prestige Gaming

How God Of War 2018 Became The New Blueprint For Prestige Gaming

God of War is celebrating its five-year anniversary today, April 20, 2023. Below, we take a look at how the relatively recent release has had echoes of influence across the AAA development landscape.

As a highly successful reboot of a legendary (though dated) trilogy, God of War 2018 garnered not only ecstatic reviews from critics, but also 23 million in sales by the end of 2022. However, while many great games come and go, this one achieved something that few others do–it’s become a major blueprint that AAA developers look to follow in their own projects.

Want us to remember this setting for all your devices?

Sign up or Sign in now!

Please use a html5 video capable browser to watch videos.

This video has an invalid file format.

Sorry, but you can’t access this content!

Please enter your date of birth to view this video

By clicking ‘enter’, you agree to GameSpot’s

Terms of Use and
Privacy Policy

Now Playing: The Complete God of War Timeline Explained!

God of War 2018’s influence is most evident in a number of elements that have become staples of the contemporary single-player AAA landscape, such as colored loot systems in action games, Souls-inspired combat, an extravagant presentation, and map design that bridges the gap between linear and open-world. Some noted developers have called out the game as a major milestone that they hope to reach, including Final Fantasy XVI director Hiroshi Takai. In a recent interview Takai even said that God of War is the game that XVI most resembles in terms of quest design, which surely will surprise some fans.

God of War 2018’s presentation is arguably its most striking aspect. Santa Monica Studios’ decision to trade the fixed camera angles of the previous trilogy for the “one take” over-the-shoulder view of the reboot is well-known as a masterstroke, but the strength of its visuals go beyond

Read More