Rhymelikedime
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Alex@lemmy.ml to Programmer Humor@lemmy.ml · 1 year ago

A week of fprintfs has me wanting to code rust next week

lemmy.ml

message-square
67
fedilink
78

A week of fprintfs has me wanting to code rust next week

lemmy.ml

Alex@lemmy.ml to Programmer Humor@lemmy.ml · 1 year ago
message-square
67
fedilink
  • Cyborganism@lemmy.ca
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    1 year ago

    My brother. That’s why you do unit tests.

    • milkjug@lemmy.wildfyre.dev
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      But are you even a real programmer if you don’t test in production?

    • magic_lobster_party@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I shouldn’t need to do unit tests for quick one off scripts

      • R0cket_M00se@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Shouldn’t be forgetting for one off scripts either, if that’s the logic you want to go with.

        The tool exists, either you do it or you don’t and end up getting an error until the interpreter hits that line. It’s just the nature of being compiled at runtime.

        • magic_lobster_party@kbin.social
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          “Ohh, I got all these numbers I want to crunch using numpy or pandas and plot it using matplotlib. Hold on, I just need to write unit tests first.”

          • Cyborganism@lemmy.ca
            link
            fedilink
            arrow-up
            0
            ·
            1 year ago

            Well. Yeah. That’s test-driven development. It’s a very good practice.

            • magic_lobster_party@kbin.social
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              TDD only works well if the problem is clearly specified before the first line of code has been written, which is rarely the case when I need Python for something.

    • ryannathans@aussie.zone
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      And lint

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        👆 definitely linting first 👆

        finding errors as you type is even better than finding errors at compile time

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 244 users / day
  • 1.06K users / week
  • 3.33K users / month
  • 9.9K users / 6 months
  • 2 local subscribers
  • 37K subscribers
  • 1.83K Posts
  • 39.5K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org