Weird, they used the latest version of C++ at my university. Had to use Assembly and C in embedded though.
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()
Accurate?
The sea should be marked as C considering that’s what you’ll discover when you get deep into it.
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.
A few days ago it was a refreshing 8° in Trondheim/Norway, now it’s 22°.
Never would have guessed I would ever see Devon Larratt on Lemmy
- The format works for both lossy and lossless compression, depending on the use case and need. Photographs can be encoded in a lossy way much more efficiently than JPEG and things like screenshots can be losslessly encoded more efficiently than PNG.
Someone made a fair point that having a format being both lossy and lossless is not necessarily a great idea. If you download a jpeg file you know it will be compressed, if you download png it will be lossless. Shifting through jxl files to check if it’s lossy or not doesn’t sound very fun.
All in all I’m a big supporter of jxl though, it’s one of the only github repos I actively follow.
but I don’t like the indentation crap
Do you not use indentation in other languages?
I got a table and some chairs from Torbjørn Afdal, Darby series that’s designed in the 1960s with Brazilian Rosewood. It’s not too expensive at ~2000€ and it’s a nice, well built table, and extendable for when you host an event, but having to worry about damaging the table vs some IKEA table you don’t really care about makes me prefer cheap furniture just for the ease of mind.
My father has reached an age where money means very little to him and his interest in “proper” furniture has skyrocketed. He will go out and buy a simple table for $3k-5k and tell me how the same model was bought for the American embassy in year x, or send me links to matching chairs by designer y.
I’ve yet to see a piece of furniture that’s worth twice the price of what you can find on IKEA. A table needs to be water/stain resistant and that’s about that. /rant
Overloading a createArray up to 249 times… I can only assume the person was paid per character typed.
It’s what happens when someone takes the joke “AI is just a bunch of if-statements” too literal.
Try changing to desktop mode, worked for me.
3, about two lines per contributor
The only two people arguing against the change were both authors/contributors of is-number lol
Looks inspired by it, but the emperor only has 1 mechanical eye lighting up.