TIL I write better commit messages in my hobby projects than some Linux maintainers
TIL I write better commit messages in my hobby projects than some Linux maintainers
Sounds like a nothingburger, sovereign wealth funds investment in a diverse set of industries. And especially industries their own economy isn’t big in.
Weird, they used the latest version of C++ at my university. Had to use Assembly and C in embedded though.
I don’t want to get into an Internet argument over pedantry. Linter is often used as a catch-all term for static analysis tools.
Wikipedia defines it as
Lint is the computer science term for a static code analysis tool used to flag programming errors, bugs, stylistic errors and suspicious constructs.
Catching type errors and attribute errors would fit under this description, if you use a different, more precise definition at your workplace, cool, then we just have different definitions for it. The point is that your IDE should automatically detect the errors regardless of what you call it.
OP suggested that linters for python won’t catch attribute errors, which they 100% will if you use type hints, as you should.
What happens at runtime is really relevant in this case.
class MyClass:
def __init__(self, x: int):
self.whatever: int = x
def foo(x: MyClass) -> int:
return x.whatevr
Any decent IDE would give you an error for unresolved attribute. Likewise it would warn you of type error if the type of x.whatever
didn’t match the return type of foo()
Looking For 2 More
The pommel is spiked to end your enemies extra righteously
The sea should be marked as C considering that’s what you’ll discover when you get deep into it.
Everything by voidtools is incredible and makes Windows slightly more bearable. It’s a shame Linux doesn’t have anything as good as it.
It’s free, but not open source though.
The author pointed out how exceptions are often faster than checking every value. If your functions throws an error often enough that Exception handling noticeably slow down your program, surely you got to take a second look at what you’re doing.
They both have their place. I just recently discovered a bug in lemmy bot I wrote where the lemmy API module will raise an Exception if login fails (response status code != 200), which feels extremely out of place, as the error/status code do matter in that case.
Other times exceptions make more sense as Phillip pointed out.
It’s easier faster to ask for forgiveness than permission after all.
As a Norwegian, that got to be our coolest stat, however I have no idea how it can be true. Even in my engineering bubble there aren’t that many people using Linux. It’s all Windows and macs for home computers.
The spring and summer is pretty good in Norway. Several weeks with 20+ weather and sunshine. It’s maybe more unstable on the west coast, but Norwegian summers are easily better than the heat wave summers you see south in Europe.
Expected to see the stave church that one black metal band member burned down just to spread misery
That’s a narrow view of art
Peaked in 2005
Harrison Ford recently said he always knew that he was a replicant. He didn’t say it in the start since he felt Deckard would want to believe he was human
Is this some Swedish psyop meant to trigger Norwegians? The Scream was painted by Edvard Munch.
You also didn’t link to the actual painting.