There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmerhumor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

kala_telo , in Welp, guess I'm going to hell
@kala_telo@lemmy.blahaj.zone avatar

Cross-platform web™ when platform isn’t chrome on windows

xusontha OP ,

What is this “firefox” you speak of? Is it some sort of chrome addon, like my 45 convert to pdf addons?

writeblankspace , in A broken clock fixed by taping a working one over it is a perfect metaphor for every project you'll encounter during your career.

Comment out the broken clock 😭

ByGourou , in Me, migrating my code from JavaScript to TypeScript:

Typing < type hinting

beckerist , in Me, migrating my code from JavaScript to TypeScript:

deleted_by_author

  • Loading...
  • fibrechips ,

    Ah yes, node, the JS runtime that very famously doesn’t ever get used with typescript

    xmunk ,

    Managing a node project is like juggling twelve barrels full of monkeys… and those monkeys have rabies. Trying to keep all your dependencies in line is insane.

    rolaulten ,

    Just use npm to install all the dependencies. What’s the worst that can happen.

    scubbo ,

    It is absolutely insane to me that people rag on the Python packing ecosystem when TypeScript exists. Sure, Python’s not perfect (Rust and Go seem better, from the small amount I’ve dabbled with them), but way easier and more stable than any TS project I’ve worked on.

    alokir ,

    Typescript is a language, Node is a platform and framework. You can use Typescript in your Node project, they’re not mutually exclusive.

    The way I see it Typescript is more popular than ever, almost all (popular) libraries come with types and every job offer I get they use Typescript.

    And with good reason, our team recently took over a small Javascript app and there are tons of bugs that would never have existed if they were using Typescript. Things like they refactored something but missed to update a reference, or misspelled a variable name, failed to provide a required parameter to a funcrion, referenced a field that existed in another config object etc.

    kautau ,

    And thankfully we might be getting to a point where TS no longer needs to exist: github.com/tc39/proposal-type-annotations

    It’s about time JS gave us the ability to be strict on types, and have that as part of the interpreter as opposed to needing to transpile TS with the overhead involved

    7heo , (edited ) in How Upgrading Node Broke My Build but Saved My Marriage

    expired

    sebastiancarlos OP ,

    Both are incomplete, but the article is no longer paywalled

    Pandybear24 , in I swear I didn’t change anything

    Hahahaha

    TheAnonymouseJoker , in Package managers be like
    @TheAnonymouseJoker@lemmy.ml avatar

    I avoid NPM after node-ipc Ukrainian malware incident.

    kornel , in Why bother with make when you can link header files?

    Rust Evangelism Strike Force drops in:

    Imagine living your life without maintaining header files.

    Fades , in Hitler finds out the project has failed to do TDD

    every project is like this, you’ll get used to it

    Hahahaha sad but true

    Knusper , in The coding experience

    I mean, it’s not unlikely for a programming beginner to write Python, but I certainly had a hunch this was Python before reading to the end.

    So, yeah, this is at least partially the Python experience, not generally the programming experience…

    BeigeAgenda ,
    @BeigeAgenda@lemmy.ca avatar

    I can suggest using pylint, it can find a lot of the syntax errors.

    Enkers ,

    I’ve had this experience in other languages, but never python. Find the missing semicolon and getting a cryptic error message is a very common programming experience.

    The reason I never had this problem in python is that by the time I learned it, I was already a fairly experienced developer, and I used better tooling from the get go. This kind of error is reallllllly hard to make in a modern IDE using a linter and formatter.

    That suggests to me that this is more likely a fairly language agnostic experience. It might even bias people against the languages they learn first.

    Knusper ,

    I mean, I guess, it depends on your perspective. Some folks work in garbage/proprietary languages all day and would be very glad to have Python-levels of compiler help. Others work in JS/TS and do have similar nonsense to deal with as in Python.

    But lots of languages, e.g. JVM languages, Rust etc., don’t struggle with semicolons and the like.
    And they don’t have to compile at runtime, so they can easily outclass Python for more complex error reporting, which is at least my experience.

    Personally, I have pretty much only had the experience of “tell me where the error is” in Python and TS.

    lukas , (edited )
    @lukas@lemmy.haigner.me avatar

    I’ll always appreciate Lisp for the most powerful REPL in existence of programming languages by a long shot. Name me one programming language that empowers developers to troubleshoot and fix runtime errors with high availability like Lisp does:

    • Meh, who cares. Let’s continue to run.
    • Here’s a REPL with the app state at the time of the runtime error. Happy debugging!
    • Fix the bug in production inside of the REPL while everything continues to chug along.
    • Save the changes to disk and check it into version control.

    The REPL in Lisp is so powerful that there’s an entirely different approach to developing apps in Lisp. You can, and some do, code everything inside of the REPL. When they’re done, they save the file to disk.

    tdawg ,

    As someone who has taught people a variety of languages. No. This happens regardless of what language you choose. It’s just a universal programmer experience to get frustrated at your work

    Knusper ,

    I am not saying that you don’t get frustrated at your work in other languages. I’m saying this particular frustration is characteristic.

    tdawg ,

    What issue is that you think is unique to python?

    Knusper , (edited )

    Well, I’m not just talking about issues.

    everything looks good, time to run it

    This sounds like they did not or could not explicitly compile it. Pretty much all popular languages are compiled. JS isn’t, but people are less likely to say that they ‘run’ that one. Ruby isn’t, but it’s not as popular as Python.

    Well, and my preferred version of “everything looks good” is “everything compiles”, which with a strict enough language does also make failure during the first run much less likely.

    I’m also not saying that these aspects are unique to Python.

    The language failing to tell you where the issue is also happens in JS/TS, C/C++ and I’m going to presume Ruby, too.
    Python is just again rather popular and some of these choices don’t make sense with my first hunch.

    tdawg , (edited )

    Honestly man it just sounds like you have struggled with dynamic languages and by extension prefer static (compiled) ones. Which is totally fine you don’t have to like everything. But I do think you’re missing the real issue with “everything looks good.” It’s a lack of experience with the tool. It doesn’t matter if you’re using something as strict as Rust or dynamic as Lisp. “Everything looks good,” is always bad. You should know “this is how this works,” which is just not something a newbie can handle when they still don’t know the difference between pass-by-reference and pass-by-value (or that those words even exist!)

    Moc , in Lel

    Tail recursionTail recursionTail recursion

    shiveyarbles , in Think about it

    From energon cubes

    cupcakezealot , in fuuuuuuuuuuture
    @cupcakezealot@lemmy.blahaj.zone avatar

    the walls are also covered with green slime

    sebinspace OP ,

    no, they always do that

    DarkenLM , in Think about it

    With themselves!

    ssboomman , in Think about it

    That are almost always built by lower level programing languages

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines