most people don’t know how to properly formulate questions and it shows. 90% of new questions on SO are just bottom barrel which is why the rules are so strict about quality.
Absolutely true, but it’s also more difficult to ask a good question when you don’t know anything about what you’re asking.
People who know a lot about a topic can ask very good questions about that topic.
The problem I see with most questions people post online is that they make too many assumptions that their audience will will magically understand the context of their question.
Good questions require relevant context.
Determining relevancy requires expertise.
Expertise comes from experience.
No matter how many questions you ask and answers you get you’ll never “understand” something until you do it.
Instead of asking questions like “How do I do X?” people should be asking “I’m trying to accomplish X, I’ve tried Y, but I’m encountering Z. How could I resolve this?”
I guess my rule is that you should never ask someone a question without first trying to answer it yourself.
100% agree, and the new question page on SO makes most of those points but generally people dont read it. It would be kinda nice if they integrated an LLM to double check if questions need improvement before they get submitted.
It’s just another option, don’t gotta use it. Maybe you find yourself needing something like this, and the only other choice is making it public. At least with friend classes, you know which classes are friends so you can go look for any dependencies
There’s infinite ways to organize code. In C# or Rust where this isn’t an option, you might use nested classes or traits hidden behind a module/namespace.
Good use cases are data structures with associated helper classes. For example, a collection/tree and an iterator/tree-walker for working with elements of the collection. Or for something like a smart memory allocator (an arena or slab allocator), you might use a friend-class to wrap elements returned from the allocator, representing their connection back to it (for freeing up when done or to manage the allocation structure in ie a heap or sorted tree).
I think Vim is more popular with sysadmins because, historically, you could count on Vi or Vim being available on just about any server you had to do some work on, while Emacs might not be. That’s still probably somewhat true, although in the world of clouds, containers, and source-controlled, reproducible configuration, it’s probably less common to edit files in place on a server.
However, with Emacs tramp, you can edit files just about anywhere you can access, by any means, even if there is no editor installed there at all, using your local Emacs, with all your accustomed configuration. Like popping open a file inside a container running on a remote server by ssh, something I’ve done a lot of lately, debugging services running on AWS ECS.
Don’t need an if, just set the variable and collect the data. Saved you a jump instruction. The compiler is going to optimize it out anyway, but simpler code is better and some people forget the -O flag.
At the cost of getting new sysadmins who are less numerous, but ask for more money, and best of all, you get to pay Microsoft and Amazon to train them!
“Yeah we’re familiar with this issue design, and have opened 17 support requests and upvoted 5 user voice posts to Microsoft about it. But hey we have this workaround that is not maintainable that you can use meanwhile”
It’s almost like marketing makes it sound like it’s a fully-managed, worry-free service where users can just call up Bill Gates himself instead of hundreds of management portals someone has to babysit.
They said that about computers going to make books disappear forty years ago… They never printed so many books that attempted to explain how those damn computers worked!
The problem is you have comp sci majors who learned .Net or Java handed react, so they do their damndest to turn react into .Net or Java.
I have seen many travesties committed in react and angular from people trying to turn them into what they know instead of letting them be good at what they are.
programmer_humor
Top
This magazine is from a federated server and may be incomplete. Browse more on the original instance.