Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment Re:Finally... (Score 1) 180

That's simply not true.
Languages absolutely ARE fast or slow. Java is slow. Between delayed decisioning and garbage collection, it's not fast. C is generally very fast. It has risks, but it's fast. But this is because it's pointing at data, rather than at object that reference-count and bounds-check data.
Python is generally slow, but... so often the libraries are not themselves written in Python.

Programming

'OK, So ChatGPT Just Debugged My Code. For Real' (zdnet.com) 174

ZDNet's senior contributing editor also maintains software, and recently tested ChatGPT on two fixes for bugs reported by users, and a new piece of code to add a new feature, It's a "real-world" coding test, "about pulling another customer support ticket off the stack and working through what made the user's experience go south." First...

please rewrite the following code to change it from allowing only integers to allowing dollars and cents (in other words, a decimal point and up to two digits after the decimal point). ChatGPT responded by explaining a two-step fix, posting the modified code, and then explaining the changes. "I dropped ChatGPT's code into my function, and it worked. Instead of about two-to-four hours of hair-pulling, it took about five minutes to come up with the prompt and get an answer from ChatGPT." Next up was reformatting an array. I like doing array code, but it's also tedious. So, I once again tried ChatGPT. This time the result was a total failure. By the time I was done, I probably fed it 10 different prompts. Some responses looked promising, but when I tried to run the code, it errored out. Some code crashed; some code generated error codes. And some code ran, but didn't do what I wanted. After about an hour, I gave up and went back to my normal technique of digging through GitHub and StackExchange to see if there were any examples of what I was trying to do, and then writing my own code.
Then he posted the code for a function handling a Wordpress filter, along with the question: "I get the following error. Why?" Within seconds, ChatGPT responded... Just as it suggested, I updated the fourth parameter of the add_filter() function to 2, and it worked!

ChatGPT took segments of code, analyzed those segments, and provided me with a diagnosis. To be clear, in order for it to make its recommendation, it needed to understand the internals of how WordPress handles hooks (that's what the add_filter function does), and how that functionality translates to the behavior of the calling and the execution of lines of code. I have to mark that achievement as incredible — undeniably 'living in the future' incredible...

As a test, I also tried asking ChatGPT to diagnose my problem in a prompt where I didn't include the handler line, and it wasn't able to help. So, there are very definite limitations to what ChatGPT can do for debugging right now, in 2023...

Could I have fixed the bug on my own? Of course. I've never had a bug I couldn't fix. But whether it would have taken two hours or two days (plus pizza, profanity, and lots of caffeine), while enduring many interruptions, that's something I don't know. I can tell you ChatGPT fixed it in minutes, saving me untold time and frustration.

The article does include a warning. "AI is essentially a black box, you're not able to see what process the AI undertakes to come to its conclusions. As such, you're not really able to check its work... If it turns out there is a problem in the AI-generated code, the cost and time it takes to fix may prove to be far greater than if a human coder had done the full task by hand."

But it also ends with this prediction. "I see a very interesting future, where it will be possible to feed ChatGPT all 153,000 lines of code and ask it to tell you what to fix... I can definitely see a future where programmers can simply ask ChatGPT (or a Microsoft-branded equivalent) to find and fix bugs in entire projects."

Comment The sky is not falling on Reddit (Score 2) 179

Sometimes you have to remember you're living in an echo chamber. Hardly anyone noticed these protests, outside of circles like /. and certain Reddit subs. If you look at it dispassionately (which isn't easy when you're an aggrieved echo chamber agitant), you'll see..

1. The protests are over a silly topic. Yes, Reddit is now charging (too much) for API access for third party clients. Something that Nextdoor and Discord don't even ALLOW. YOU haven't been paying for Reddit. The client devs haven't either. And Reddit has been in the Red.

2. Nobody else noticed. Okay, some communities went dark. It did seem bizarrely self-entitled and arrogant that mods believed the subs belonged to them, and that they could wall off a chunk of their space on Reddit's servers to protest... Reddit... and predictably it didn't work. But the vast majority of Reddit users use either a browser or the official mobile app... not because the mobile app is any good but because they push it so hard when you open a Reddit link on a mobile. So they're all unaffected except by those mods trying to take Reddit's ball and go home.

(They don't have to continue moderating. Different topic. But they can't squat on the court while refusing to play ball.)

3. There aren't any good alternatives (yet.) Facebook is pretty much the definition of evil. Nextdoor is dominated by hyper-political local mods and is very closed, as well as disallowing third party apps. Discord isn't nearly as easy or discoverable... I use it all the time but regret it. 4Chan is toxic.

Yes, some people, especially on Reddit and here, are screeching that Reddit has shot itself in the foot and head. What is their accuracy track record? How much business savvy, compared to the folks running Reddit, do they have? Their passion, once for and now against, hasn't had any impact on people who visit Reddit to celebrate OTHER passions - watches, fast cars, nekkid bodies, local events. And in a few weeks, these screechers will, despite their protestations today, be back. Because screechers gonna screech, and there's no better place for an audience than on... Reddit.

Comment Re:Wireless charging? (Score 1, Insightful) 314

Your post is economically illiterate. "Evil" has nothing to do with it. Government regulations are "laws." They create compliance costs and reduce flexibility to innovate.
You may be way too young to remember, but for a long time U.S. cars had vastly inferior headlights, in the name of safety, because a commission had decided what "safe" was and mandated it. European versions of the cars could have newer headlights, brighter but with good cut-offs (don't blind on-coming drivers) and self-aiming. We were stuck with yellowy incandescents. Because government was "helping."

Comment COVID and Crime (Score 1) 164

After the last 30 months of lies or premature-and-inaccurate conclusions about mask effectiveness, vaccine effectiveness, who and how many are killed by cops relative to by others, whether having more minorities arrested for crime intrinsically means racist enforcement and that curtailing that enforcement would reduce crime, etc., it should be obvious that the media and the government are not capable of determining which news is "fake." Having "scientific consensus" sometimes only really means that dissenters have been bludgeoned into submission until the contrary evidence is overwhelming... and we don't have any way of telling the two apart.

When the would-be gatekeepers have such a terrible track record, why do you want more of them?

Comment Re: Copyright (Score 1) 102

Wrong. Your post is an example of "Someone who clearly has never studied law, pontificating confidently about it on the internet."

To be parody, they would have to avoid violating and capitalizing on the identities/brands under copyright that DC spent so much to create. Especially since DC probably considers the content of the parody damaging.

For example, rather than People's Joker, they could have called it People's Jester (even just "The Jester" would probably be safe) and probably have gotten away with it.

Comment Every eight years... (Score 1) 197

Every eight years, something like this comes along. Sometimes it's a new code-free way to code, such as drag-and-dropping widgets. Sometimes it's a new methodology, such as Agile (i.e. no architecture) or Pair Programming or "Open Concept Offices."

And sometimes they do improve things. Never by quite as much as the salesweasels and consultants claim. But Agile does help expose a project going off-the-rails sooner... as long as you still waterfall (or "spike") the initial design and architecture. And Pair Programs is a fantastic way to onboard devs and to help overcome roadblocks. And Open Offices really are a great way to eliminate all possibly productivity, setting the scene for a fantastic quarter-on-quarter increase when cubicles and offices are reintroduced.

We've experimented with the code generators. They are pretty great for replacing boilerplate, and sadly, many frameworks today require a ton of boilerplate. In the distant path, we isolated that crap to "libraries" and "macros" (for anyone under perhaps 50, think of these as "generics for C built by the pre-processor.") But as stuff got more complex and had to run in more places, it became unmaintainable. And then we got "convention over configuration" to try to limit some of it, but just think of all the connecting tissue in a typical web-app.

So we do rely on code generators for speed-of-development, but they don't replace programmers. They just allow the developers to do the real problem solving, to write algorhithms instead of endless connecting tissue code.

Comment 75 is going the wrong way (Score 1) 37

Obviously a minority opinion, but in this age of constant MFA even for Jira, Github and OKTA at my corporate job, I need a 100% keyboard. I need that numeric key pad for the constant generated codes. If you cannot ten-key blindfolded, it's a valuable skill that will save you a ton of time and inconvenience... but not on an 80 or 75.

Comment Re: The US needs a better charging infrastructure (Score 1) 337

Not even remotely accurate, and completely out-of-touch with reality. You obviously have zero experience in property management or in residential.
Chargers are prohibitive to install - they require dedicated spaces, dedicated power lines and dedicated internet or cellular service. In a residential location, they almost always need human management to enforce a reservation or penalty system, or people use them as a work-around to assigned/reserved parking. They cost, from a management perspective, far more than they're worth in an apartment or condo complex.

Comment Re: NO! (Score 0) 323

Having a good functional UI is possible on any platform, including web.

This is arrogance beyond idiocy. While it is possible, it generally isn't practical. Not for business reasons, but for economic ones.

If you add additional systems, you have to update screen shots in the docs. You have to double the test team and U.I. team. You have Product Managers debating the U.I. because the standards are different. If you make real, useful software, suddenly the short-cut keys are incompatible.

You have to train your support people on another O.S. Just finding files becomes more problematic.

It's not that it can't be done, but it's not rational from a business perspective, if you sell specialized software. If the customers are savvy enough, they'll install Parallels and take care of it themselves... and then those potential expenses vanish.

The thing is, I use both Mac and Windows every working hour. Right next to each-other. I write in Go, in Unity, etc. I know it can be done. But the money isn't in making you happy, it's in keeping expenses low compared to income.

Comment Subsidized access... provides access (Score 0) 49

Before some click-seeking social-media-whore pops on and claims this will prevent anti-competitive behavior, let's put some facts in here.

Without those subsidies, most retrofitting won't happen. Without them, low-end new construction will either lack the wiring or it will be "contractor grade."

With them, the ISP does a better job generally, because it's their butt when customer service becomes an issue.

No, I don't work for an ISP. I am on a major complex HOA board, and have personally brought competition in. I see how it works and why it works that way. Banning those "kickbacks" and limited-time, at least, monopolies or near-monopolies will disincentivize investment by the ISPs. Just because it's an unintended consequence doesn't mean it was unforeseeable.

Comment Time/Money based decisions (Score 1) 391

The O.P. comes off badly with this. Anyone with any experience already knows the answer. Time-to-market, with no resources, is the standard demand. The customer (your company) doesn't even know what they want. You "mock" it up quickly, with a bit of a non-performant/non-scalable ORM to a database so they can play enough to understand, and they decide to ship THAT. Right THEN. It has nothing to do with the programmer and everything to do with the lack of enforcement around management shortcutting the process.

Slashdot Top Deals

It's great to be smart 'cause then you know stuff.

Working...