The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
On a more serious note, It cannot come as a surprise that they have to slash the battery current as the batteries get older. Internal resistance goes up and they will catch fire otherwise.
And 620 kg of batteries per car (Model S 100D) that cannot be recycled economically. Approx. 5% is recycled today, the rest is going into landfills or "storage".
Working with my current favorite JavaFx using the IntelliJ IDE, I faced a problem earlier today. I had a two-dimensional array of objects to sort. Think for the array as something like:
Object myArray = new Object
Index 1 of each sub array held a string as an object. In other words myArray was a string object.
The problem: To sort the array in alphabetical order for this string.
I looked at the problem and thought: "No way is there a simple solution for this! I'm going to have to write a sorting class for the job. It took me a couple of hours but I got it working in less than 30 lines of code. And it worked well. Just as I was getting ready to pat myself on the shoulder, I developed a nagging thought (don't you just hate those spoiler nagging thoughts?) that I may have overlooked a more simple solution.
So I did an online search and came across a solution to do the sort in some 6 or 7 lines. Skeptically I tried adapting the code to my situation. As I was about to try it out, up pops IntelliJ, suggesting it would be simpler to use a Lambda expression. It even offered to do the conversion for me. So I thought: "What the heck, let's give it a try.
Sure enough IntelliJ's Lambda worked. About three lines of code!
But IntelliJ was not done humiliating me. Up it pops with a suggestion that it can convert the Lambda to a "super lambda" or something of the sort. What could I do? I had to tell it to proceed and voila: The whole sorting action on a 2 dimensional object array done in a single line of code! Here it is:
And here I was, a day or 3 ago, a little surprised my new phone used autocement to alter "b4" into "by".
The first time I tried out Augmented Reality on of all things, an Aldi catalog front-cover, my brain nearly melted. Ohhhhhhhhw - so that's why Pokemon Go has been so successful. :Checks last phone: - 7 years old....
Last Visit: 31-Dec-99 18:00 Last Update: 25-Sep-21 12:47