HNHacker News
TopNewBestAskShowJobs

needcheapbw

4 karma · joined August 23, 2017

submissionscomments
needcheapbw··on Code Smells: Iteration
Like, for(int i=0; i<10; i++) { // todo } OK well yes there can be bugs using the index and even C++ back when I was doing it had the Boost library which had for_each. In Java we got something similar back in Java 5 or 6. Also we have fancy stream operations now in Java 8 which took me the longest time to come to appreciate. The only down side is removed compatibility with other languages like C and C++ and C#, locking in the app to a specific language more.

There is on rare occasion, however, sometimes a problem that is solved more clearly or handily using indexing, similar to step indexing in BASIC.

One use case where I've seen stepped indexing useful is in the field of robotics, which uses step characteristics for synchros and servos.

needcheapbw··on Alaska’s thawing soils are now pouring carbon dioxide into the air
That is correct. Glaciers melt constantly, new snow forms as moisture accumulates in higher elevations and condenses, falling as snow. The snow becomes the beginning of the glacier. It's a cycle that repeats. It is repeating right now, every year.

https://nsidc.org/cryosphere/glaciers/life-glacier.html

https://www.iceagenow.com/List_of_Expanding_Glaciers.htm

http://www.esa.int/spaceinimages/Images/2016/11/Pio_XI_Glaci...

needcheapbw··on Water Found Deep Inside the Moon
Agree with all of that, been saying it for years. Even people who aren't into the whole space exploration thing do agree that the Moon would be much better for the foreseeable future.
needcheapbw··on Alaska’s thawing soils are now pouring carbon dioxide into the air
Citation? How long is the lag? Years? How long does it take to fill a bathtub? If so much ice is really, actually melting in the world and has been for years; no shoreline changes have occurred anywhere in the world, then that must be some amazing lag.
needcheapbw··on Alaska’s thawing soils are now pouring carbon dioxide into the air
If you take a look at some of the locations, many are not steep, many are at or near the waterline.
needcheapbw··on Code Smells: Iteration
> There are very few cases where a for-loop is the right thing to write.

I'm trying to get my head around that, do you mean any for loop is bad or many nested loops?

needcheapbw··on Alaska’s thawing soils are now pouring carbon dioxide into the air
Has the waterline changed:

https://www.zillow.com/homes/for_sale/AK/3_rid/waterfront_at...

needcheapbw··on Introducing Network Service Tiers
A US location will be welcome. Might have to start using a real server for a change.
needcheapbw··on Introducing Network Service Tiers
:-) Well Bezos is a genius, perhaps he will figure out that mom and pop businesses are the backbone of the world economy.
needcheapbw··on Introducing Network Service Tiers
My Lightsail gives me 3TB. It's a huge card for me. The only reason I use them at all for hosting.
needcheapbw··on Introducing Network Service Tiers
OVH isn't an American company, that probably matters to a lot of use cases.
needcheapbw··on Introducing Network Service Tiers
> if you rented 1000 x $5 droplets from Linode/DigitalOcean, and maxed out all of their traffic quota, you would get kicked out.

It might happen but it doesn't refute the parent's point:

"Right now Linode's and DO's smallest $5 plan offers 1TB of transfer, which would cost $85.00 on Google's new standard plan."