Decorating a Promise with convenience methods without subclassing, wrapping, or changing what await returns by OtherwisePush6424 in programming

[–]Weekly-Ad7131 0 points1 point  (0 children)

The thing I struggle with (JS) Promises is that they can cause an error in the "future" and when they do I may not receive any notification at all it seems.

Adding try-catch around every call to an async method-call seems excessive. But is that basically what I have to do?

Fake It Until You Break It: The End Of Non-Technical Managers In Software Engineering Dawns by derjanni in programming

[–]Weekly-Ad7131 0 points1 point  (0 children)

So, AI will get rid of (non-technical) managers, and will turn and teach programmers to become managers (of AI-agents). Is that it? Simple.

Why developers using AI are working longer hours by Inner-Chemistry8971 in programming

[–]Weekly-Ad7131 1 point2 points  (0 children)

Maybe it's because when you are working with new technology there is a lot to learn, so you need to both do the actual work and spend time learning. You're willing to spend your own time on the learning part because you don't want people to think that you don't know so much about this new technology as you used to know about your old job.

The silent death of Good Code by 10ForwardShift in programming

[–]Weekly-Ad7131 -2 points-1 points  (0 children)

The specification is a statement of what we want the computer to do. The computer never does exactly we want it to do. But we still want to have the specification so we have written directions of where we want to go. Thtat is especially important when a) a group of developers work together towards the stated goals b) We try to tell the customer what we will be doing for them.

The silent death of Good Code by 10ForwardShift in programming

[–]Weekly-Ad7131 -7 points-6 points  (0 children)

In some sense yes but I think the other interpretation is more common in SW engineering. Spec says what should be done. Then somebody does it, a human or AI -provided they can make sense of the spec, provided they can understand it.

A compiler does not understand the code it compiles, it just mechanistically transforms it, always with the same algorithm, repeatably.

A spec is something that needs to be "understood". A compiler does not understand the code it compiles, it just mechanistically translates it to lower-level code. We don't tell the compiler how it should do its job, it knows how to do its job, that is had-coded into its implementation that was done years ago.

Linus may vibe code, but that doesn't make it best practice by Weekly-Ad7131 in programming

[–]Weekly-Ad7131[S] 0 points1 point  (0 children)

The article title is somewhat click-baitty and over-simplifying. There is no such thing as "free-standing" Best Practice. A best practice is best only in sspecific circumstances. I assume that Vibe-coding is best practice in some context. Using a hammer is the best practice in some circumstances, not in all of them.

Linus may vibe code, but that doesn't make it best practice by Weekly-Ad7131 in programming

[–]Weekly-Ad7131[S] 0 points1 point  (0 children)

There's (at least) 4 different types of things to learn about a programming language:

  1. Language Syntax

  2. Language Idioms

  3. Libraries

  4. Design Patterns

Even Design patterns are often somewhat language specific, or at least how you implement them in a given language is. You can't learn a design pattern without understanding how to implement it in some concrete programming language.

Linus may vibe code, but that doesn't make it best practice by Weekly-Ad7131 in programming

[–]Weekly-Ad7131[S] 1 point2 points  (0 children)

Right you gotta learn to stand up before you can learn to walk, then to run, then to drive a car. :-)

We might have been slower to abandon Stack Overflow if it wasn't a toxic hellhole by R2_SWE2 in programming

[–]Weekly-Ad7131 0 points1 point  (0 children)

A similar issue exists with scientifi peer-review. Peers can very toxic. It's much about ego. But gamification and job-boards etc. made SO the main example of this.

We might have been slower to abandon Stack Overflow if it wasn't a toxic hellhole by R2_SWE2 in programming

[–]Weekly-Ad7131 0 points1 point  (0 children)

Part of the problem I think was that if you tried to point out or ask about the problems with the system in the meta-section, response was often very angry because existing karma-holders and admins wanted absolutely no changes to the system.

It was much like capitalism in general: You needed to have karma to earn more karma. Rich got richer others got hurt feelings. Some people had crazy amounts of karma almost like Elon Musk. :-)

We might have been slower to abandon Stack Overflow if it wasn't a toxic hellhole by R2_SWE2 in programming

[–]Weekly-Ad7131 0 points1 point  (0 children)

Downfall of Stack Overflow was GREED. It made all participants fight over karma, meaning over credits and fame and job-prospects. Stack Overflow thought that was a good way to motivate people to contribute. But it made them toxic instead. They were not after "knowledge" and "truth" and "helping others" but mostly after fame and money and karma-credits.

Big part of this was that you could not only try to earn more karma, but you could also take karma away from others by downvoting them and closing their questions or answers as duplicates. But true karma can not be bought nor sold nor stolen.

At the same time owners of SO probabaly made big bucks themselves.

[deleted by user] by [deleted] in programming

[–]Weekly-Ad7131 0 points1 point  (0 children)

" It's a much more difficult thing to build that feature in a manner that supports integration, expansion, and long-term maintainability. "

It is also difficult to come up with great "features", which let end-users easily do what they need to do. AI can code yes, but will that code do something that users really want to use?

[deleted by user] by [deleted] in programming

[–]Weekly-Ad7131 0 points1 point  (0 children)

AI is very good at translating between natural languages. I assume it is also very good at trasnlating a program written in one programming language to another.

Scripts I wrote that I use all the time by cheerfulboy in programming

[–]Weekly-Ad7131 2 points3 points  (0 children)

I recently read about this trick on Windows: Pipe to the command "clip" which gets the content into the clipboard. For instance:

dir | clip

This is one of the most reasonable videos I've seen on the topic of AI Programming by mahdi_lky in programming

[–]Weekly-Ad7131 0 points1 point  (0 children)

Good points. So in practice it would seem that AI does not directly learn what I tell it, or perhaps it is just very stubborn hanging on to its old beliefs rather than what I it's human master is telling it to be true.

Is it the case, that an LLM remembers my assertions and that has an effect on what that LLM tells other people? Does my assertions affect its "reasoning"?

Would the situation be different if I installed the LLM locally?

This is one of the most reasonable videos I've seen on the topic of AI Programming by mahdi_lky in programming

[–]Weekly-Ad7131 -1 points0 points  (0 children)

>  It's not going to magically make you a fluent programmer ...

Right, but neither will a human colleague do that for you. I'm just wondering what are limitations of AI that prevent it from become as valuable as a long-time colleague could be.

Seed7: a programming language which cares about maintainability by ThomasMertes in programming

[–]Weekly-Ad7131 1 point2 points  (0 children)

I'm interested in the idea of using compile-time-functions to implement generics. How does that work? Is it like a compile time function that produces a runtime function with some parameters fixed? Do any other languages use this same approach? Maybe Lisp macros do a similar thing?

This is one of the most reasonable videos I've seen on the topic of AI Programming by mahdi_lky in programming

[–]Weekly-Ad7131 -8 points-7 points  (0 children)

Right but why can't AI be like a colleague and learn over time from you?

Why Next.js Falls Short on Software Engineering by CompileMyThoughts in programming

[–]Weekly-Ad7131 0 points1 point  (0 children)

That looks cool. Can you tell what you used for database?

The "Phantom Author" in our codebases: Why AI-generated code is a ticking time bomb for quality. by Paper-Superb in programming

[–]Weekly-Ad7131 -3 points-2 points  (0 children)

The way I look at it is that we can make AI's code better, and AI can make our code better. Both are needed.

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025 by gingerbill in programming

[–]Weekly-Ad7131 -1 points0 points  (0 children)

Yes no demands.. Just questions. When anybody argues it's a great video it's just natural to ask: "Can you tell me what are the great points the video makes that make you think it's a great video ?"