261

No AI, Stack Overflow is dying, and tech posts get removed. How are we supposed to code?
u/Doomgriever  in  r/godot •  17d ago

"...those of you who are completely against AI-assisted coding, how are you actually solving problems these days?"

I mean, I've been a gamedev over 20 years, without using AI. Learn the basics of the programming language, and the basics of how to use the engine/tools. It's not like learning was this impossible task before AI. I honestly think people have become dumber in just a couple of years by relying more and more on AI solving every problem. The more you learn how to solve problems yourself, the better you become at it. The more you ask an AI to solve it for you, the less efficient you become.

All the knowledge (YouTube tutorials, etc.) are still available to us. I think it's a 100 times better to support these people with views and follows, than to cut their income by choosing AI over them. Over time you look up tutorials less and less, because you learn. But, the contrary is true if you export your thinking and agency to a machine.

361

modernCppVsOldCpp
u/joncrompy  in  r/ProgrammerHumor •  21d ago

This is, ironically, the exact reason C++ is the standard in some industries. Students can learn the OOP C++ then work in the same codebase as someone programming "touching the metal" low level C.

Most languages make trade-offs between performance, structure, memory safety, and ease of writing. Every language might have their use, but very few cover all use cases.

C++ lets each programmers choose those trade-offs individually, but that also allows them to choose none of the above.

110

On endangered crafts

COBOL guy here! Well, I was one, starting during Y2K remediation, and being shackled to the cross of it for the next 10 years or so until I stopped putting it on my resume anymore, so I could move on to something that didn't suck.

It's not that it's hard to do. Programming is programming, and if you can program in one language, then you just have to pick up the quirks and syntax to program in another. It's that what they want is you to learn this monstrous thing that they've spent decades creating, and then to spend the rest of your life keeping it going. Not fixing it. The audit requirements are too crazy for that. You can't fix anything without a business case, and a long audit trail.

They want you to maintain it. They want you to spend your whole life mucking out the mess of generations, without addressing the root causes of said mess.

It's a shit job, and the only thing it prepares you for is doing that shit job.

129

Is this a dream? The new proposed homepage is gorgeous
u/marktheprogrammer  in  r/PHP •  9d ago

Member of the marketing SIG here, replying in a personal capacity. I'm in no way associated with the foundation beyond being in the community group.

Don't hyper-focus on the design. Instead, focus on what the change *represents*.

We're trying to solve a problem: The current PHP website landing is utterly terrible at "selling" PHP.

A new person visiting php.net will take one look at the current landing page and immediately get the idea that PHP is outdated, doesn't take itself seriously, and doesn't care what other people think about it.

That only reinforces the all-too-common perception about what PHP is, when the reality is that perception is almost entirely wrong for modern PHP.

Regardless of the pros and cons of the outsourced design, this is the first small step to changing that perception.

The main beneficiaries of this work will be *you*. The people reading this. The people using PHP as their day-to-day language, building careers on it.

We want to start to fight back against this outdated idea that PHP isn't a viable, modern language.

We want PHP to be considered a perfectly valid choice when companies are deciding what their next piece of software is going to be written in.

If PHP is seen to have more value, then your skills with it will be seen to have more value, and the demand for those skills will hopefully increase.

Making the landing page be slightly less terrible is one small step towards that, even if it does look a bit homogeneous with a lot of other stuff out there. Consider asking yourself what your CTO is likely to think of the proposed design, or a new developer first looking into PHP.

Again, it's the beginning of the site overhaul, not the end.

If we can use this initial version to convince internals on the importance of this work, and the content on it, then we can stand to get a lot more creative in the design.

---------------------

Combining multiple pieces of feedback:

Firstly, I cannot comment on how long it took to make, or if AI was involved; I was not involved in its actual coding or principle design as it was outsourced at Matt's request. That said, it's not set in stone and if you have visual changes to recommend, please take them over to the GitHub issue.

Do people really choose their programming language based on that language’s homepage?

People may not actively choose a language based on its homepage, but they will absolutely dismiss any further investigation into a language based on its homepage.

First impressions count, and if the first impression is poor, then there's a much greater chance that an individual won't get so far as to learn about the benefits of the language, because they'll have hit the back button on their browser and be looking for something else.

I like that most code examples are from Symfony.

Technically, they just look like Symfony, but they could come from any suitable framework (I've created attribute-based routing like this in several projects). At the moment, official PHP policy prevents us from showing 'real' frameworks due to impartiality rules, so we tried to show what modern code looks like, without tying it to any particular framework.

New users will love these nonworking examples.

PHP is heavily dependent on its ecosystem to make for a good developer experience. Where as something like Node has an inbuilt http server, with request/response objects, routing etc, PHP has none of these, and a modern experience requires them being brought in via Composer.

As explained above, we believe official policy prohibits us from showing frameworks at this time, that leaves us with a few options:

  1. Show the "Plain PHP" way, accessing things through superglobals, creating responses by calling header functions, echoing out HTML, a .php file for every path in the webroot etc, 2002 style. I believe doing so would be a terrible idea, it's an antiquated design that we should not be promoting in 2026, and risks giving the impression that it's the best PHP has, which is absolutely not the case.
  2. Make examples of what code could look like, if using modern PHP development practices, when taking advantage of the tools and frameworks provided by the ecosystem, but without showing bias towards any particular one (hide dependencies, skip fully qualified class references). The downside is, this comes at the cost of the example not being directly runnable.
  3. Try and include code for an entire micro-framework in all the examples, or make one available via some other mechanism. This would bury the user under potentially hundreds of lines of framework code that they're realistically never going to need to look at.

We went for option 2 - It was our compromise that would allow us to show "Modern PHP" while avoiding getting the whole thing derailed with arguments about framework bias.

The bottom line is: focus on the language itself, and the product will sell itself.

The marketing team are separate from the C developers. The marketing team is comprised almost entirely of highly experienced userland developers, with a tilt towards management / corporate / gov. I assure you, our group working on this is not taking any time away from the development of the language.

Where's the elephant? WHAT DID YOU DO TO THE ELEPHANT?!

Good question o_O At our last SIG meeting we'd talked about putting it in place of that fancy outline logo thing at the top.

Various comments about liking the old site because it shows PHP's age.

A huge part of the problem we're facing is that people are holding on to ideas that PHP is still like it was 15, 20 years ago, when it was a much, much weaker language. We are actively trying to undercut that belief with this work. Emphasising the bad-ol-days is not a good strategy. As far as I am concerned, anything before 8.2 is irrelevant beyond providing some basic history.

86

Last prompt given by hyphenn before going to sleep, keep going until fps is capped at 30
u/GoldSrc  in  r/pcmasterrace •  3d ago

On the surface, sure, it looks silly and laughable.

But once you dig just a little, the computer will do as instructed. Just as it has always has been doing.

For decades. Humans have been telling computers to do X thing, and they did it.

Computer languages evolved to become easier to use because that was the main goal. You really don't see many people programming in Assembly, do you? No.

As soon as programming languages became easier, people flocked to them because it was less work and less time wasted. Which is what computers were made for. Humans were slow, computers were faster.

Using natural language to instruct a computer program to do something, in a language it understands better than any other thing, was something inevitable.

Asking someone who speaks only Chinese, to speak English, can be done but it would take them time to learn.

Asking someone who already speaks English, to speak English? Piece of cake.

79

Considering Rust for backend services handling 10k+ req/s - real experiences with dev velocity?
u/airodonack  in  r/rust •  3d ago

If you are using AI: Rust has the exact same dev velocity as any other programming language. Probably faster as you continue given that code you write has a lot more automated verification than the alternative.

If you are not, but are familiar with Rust: borrow checker is not the problem at all. The dev velocity penalty comes from it being a systems language so there are a lot more knobs to turn and buttons to press.

If you are neither using AI nor familiar with Rust: expect a learning curve of 1-6 months where everybody is trying to do it in some way they are used to, probably OOP, causing a lot of problems and pain. Need to learn to work in a simple way and unlearn much.

166

ELI5: What is the programming language Rust and why is it popular these days?
u/green_meklar  in  r/explainlikeimfive •  18d ago

Well, it's a programming language. More specifically, it's a compiled language, which means it's designed to be read by a compiler and transformed into an executable file that can be run directly by the computer hardware. (This is in contrast to interpreted languages, like Python, which are read and run by an interpreter program without being transformed directly into such an executable file.) But what sets Rust apart is its approach to managing memory.

In a traditional language, like C, the code can be written to ask the operating system for blocks of memory whenever it wants. The requested memory blocks are tracked with references (basically numbers that say where in the memory the blocks are, and how big they are), and the code can do anything with those references, including giving the memory back to the operating system whenever it wants. It turns out this 'anything' can easily become unsafe, either by code trying to use memory that was already given back to the operating system (an error, which causes the program to crash immediately), or by code requesting memory and then forgetting to ever give it back (not an error as such, but if it keeps requesting memory and not giving it back, eventually the operating system runs out and the program can't continue).

A widespread solution to this problem with C (and C++, and languages that work with memory like that) is to put an extra layer of logic under the memory requests, so that all the references to memory blocks are tracked while the program is running, and when the tracking logic finds that some memory has been lost (i.e. the code has deleted all the references to it), it automatically gives that memory back to the operating system. This is called 'garbage collection' (insofar as the lost memory blocks are 'garbage' memory until given back) and it is much safer because the memory is always safely available when there is a reference to it, but is always (eventually) safely given back when the references to it are all gone. Languages such as Java and Python do this. However, the extra logic for tracking memory takes some time, which slows down the entire program. The extra logic also doesn't guarantee exactly when the memory will be given back, and therefore sometimes uses more than it needs. Many programmers became frustrated with this inefficiency and unpredictability of garbage collection.

Rust is designed around a different solution. It makes the logic of safely requesting and giving back memory an inherent part of how the code is written. It comes with its own kinds of references that give guarantees about when they request memory or give it back. There's no extra (slow) layer of logic needed to track the memory because the references always request it at a specific point in the code and always give it back at a specific point in the code. If you try to use them in a way that doesn't, the result is just some wrong code that won't compile. This gives the same kind of safety guarantees that garbage collection provides, but without the inefficiency. It means you can compile Rust into an executable file that can be directly run by the computer hardware, very fast like a compiled C program, but the mistakes about memory requests and missing memory are impossible. The combination of safety and efficiency is very appealing to programmers. The disadvantage is that programmers intending to use Rust have to learn how to write code with these new kinds of references, which is hard because of how strict they are about how you can use them. However, because programmers can now use AI to write Rust code, and AI is already fairly good at writing Rust code, it is easier to use Rust in real projects without people having to learn about the new kinds of references.