If there’s a linter with such opinionated rules there should also be a pre-commit hook that auto-formats accordingly.
If there’s a linter with such opinionated rules there should also be a pre-commit hook that auto-formats accordingly.
It make sense for a wrapper layer to do this and I had to fight against APIs that didn’t. If I make a single HTTP call that wraps multiple independent API calls into one, then the overall HTTP code should reflect status of the wrapper service, and the individual responses should each have their own code as returned by the underlying services.
For example on one app we needed to get user names by user id for a bunch of users. To optimize this, we batched calls into groups. The API would fail with an error code if one of the user ids in the batch was bad or couldn’t be found. That meant we wouldn’t be getting data for any of the users in the batch and we didn’t know which userId was bad either. Such a call should return 200 for the overall call and individual result for each id, some of which could be errors.
aything is better as GMail, only Hotmail is worse
So yahoo mail?
Ah, I was thinking of Bulgarian and wondering how it could fit in this graph.
Where do you see Bulgaria in the circle?
TIL Germany is in Easter Europe
I’ll never understand consuming this type of information in video format.
I use multilingual keyboard layouts, so I know that at least on Windows, the selected layout is specific to each window. If I chat with someone in one language, then switch to my IDE, it will not keep the layout I used in the chat window.
But I also have accidently hit the combination to change layouts while doing something, so it can happen. I’m just surprised that Cyrillic с is on the same key as C, instead of S.
Oh, right, using the same function name in multiple structs is what threw me off
There’s probably a rule that requires variables to start with a letter or underscore. Emoji are nor marked as letters. Something like _👍
will probably work.
I can’t imagine how something like homograph attacks can happen accidentally. If someone does this in code, they probably intended to troll other contributors.
Isn’t unicode support for programming not something new? I’ve seen a lot of code using Cyrillic or Chinese characters.
Am I blind? I can’t see where 👀 is defined.
For me it’s just convenience. It’s not because vim is better, but because it works on any terminal. I don’t depend on a particular IDE setup, I can jump on any computer and start working. And since I’ve been using it for so many years I’m very fast in it. The best tool is often the one you know best.
Not sure why you’d remember the ones you rarely need. I just memorized the things I use. Remembering stuff you use is much easier than learning a programming language. I’ve been programming for over 30 years and I’ve been using vim as my only “IDE” for the last 14 years. It would take me significantly less time to teach someone vim than to teach them programming.
And vim/emacs are rated just as difficult as a programming language
She looks cool af in that pic, I can’t take the comparison as a roast.
a UI library like jQuery
Um… what?
That’s up to each individual developer’s own setup. But hooks are a way to ensure uniformity since they apply to all commits.