Tests are just booby traps for the other engineers so they don’t break your code by mistake.
Tests are just booby traps for the other engineers so they don’t break your code by mistake.
Oh crap he leaked your IP address then!!
Yeah but you know it exists lol how would someone just looking for the java run time know that openjdk exists to search for it?
It’s definitely an improvement to just being plain old dead
Yes you can but the little red squiggles show in your editor to warn you that it’s unused code. That’s what the whole post is about lol
Then it automatically imports the library for you too lol
How do you mean? You can’t type a word without using it in a word processor. Once the word is typed out it’s been used. Variables need to be declared then used so 2 separate steps.
I want the title of scrum master just because it sounds gross. Keep your dirty hands off my scrum!
That’s the life of a bean for ya
In the error shown a compiler would be just fine and run as usual but the person programming it would be expecting a different result so a compiler wouldn’t do this for you since it’s a logical error and not a syntax error.
I get your point about it being a trick question but I think in this case it’s pretty reasonable that you would see code like this in real life. Where the programming metaphor and your understanding of the real world clash. It’s a very important skill to be able to spot the difference.
Yeah I am loving all these micro Linux computer options. Not much bigger than a raspberry pi but it’s a full computer. If you need gpio you can hook up an Arduino through USB and connect super easily. The one I have been using even has an integrated video card. All for around $100 and they are always in stock lol.
Thanks! I have been having fun experimenting with them.
I have been making interactive dioramas with Linux.
By typed they mean declairing a type for your variables.
In some languages, variables needs to be told what kind of data they can hold. That’s it’s type. For instance a number without decimals would be an integer type. While text might be a string type or a list of character types.
Other languages don’t require types and sometimes don’t even support them. They will just infer the type from the data that’s in the variable.
If you see Elon Musk please explain this to him.
It’s kind of like graphQl you could make a compiler that would work with this.
That’s fair but if you had proper test coverage there wouldn’t be much risk. Who has that though? Lol
True
This is why I usually don’t comment on stuff like this in PRs. If it’s readable and easy to understand it doesn’t need more abstractions. Even if it’s less code. What’s it save like a few bytes? That’s not as useful as the whole team instantly knowing how the code works when they see it lol
I will say though if a jr dev came upon the last code they would just look it up and learn something so that’s a total valid path too. Just depends on your codebase and how your team works. I think it usually ends up being a mix with larger teams.
I called in sick today so I could skip all the meetings lol