Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)RC
  • Amateur programmer despite the fact that I have a polytechnic diploma 😅
  • Currently in my 2nd year of CompSci at uni
  • Working towards becoming a frontend and/or fullstack web developer
  • Interested in GIS as well cus Im minoring in EnviroSci
  • Might try cybersecurity just for the $ for my fam
Posts
2
Comments
2
Joined
1 mo. ago
  • I honestly never realised the terminology was that important (so I never put much effort into remembering any of it). Yes I meant logging. I'm having trouble understanding the rest of what you mean though.

  • No Stupid Questions (Developer Edition) @programming.dev
    3rr4tt1c @programming.dev

    Is it okay to leave tests in your code?

    Like if I'm using print statements to test my code. Is it okay to leave stuff like that in there when "publishing" the app/program?

    Edit: So I meant logging. Not "tests". Using console.log to see if the code is flowing properly. I'll study up on debugging. Also, based on what I managed to grasp from your very helpful comments, it is not okay to do, but the severity of how much of an issue it is depends on the context? Either that or it's completely avoidable in the first place if I just use "automated testing" or "loggers".

  • Sounds like they're still very relevant and very important. Python isn't a language I've used a lot but I'm still surprised I've never heard about docstrings till this tutorial. Thanks for the info.

  • Python @programming.dev
    3rr4tt1c @programming.dev

    Are docstrings commonly used?

    Was going through a Python tutorial, but it seems kinda dated. Wanted to know if people regularly use docstrings in the workforce. Or are they somewhat irrelevant because you can convey most of that info via comments and context? Do jobs make you use them?