Open Side Menu Go to the Top

08-12-2018 , 02:40 PM
  1. Imagine the bar chart/grid as either 2D concrete (the colored blocks) or 2D air (the empty blocks).
  2. Now let's say you put walls on each side as high as the highest bar and fill the empty air space in with 2D water. So all your grid space is filled with either water or concrete.
  3. Now remove the walls on the side and let all the 2D water that isn't trapped flow off to either side.

What area of water to you have left in the grid?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
08-12-2018 , 02:42 PM
Quote:
Originally Posted by _dave_
I bookmarked this when it popped up on HN the other day - a very quick overview / tips of almost every possible thing AWS can provide: https://github.com/open-guides/og-aws
fap fap fap fap fap
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 02:45 PM
Quote:
Originally Posted by suzzer99


Can someone explain to me what an "etherium client" does? Assuming I'm reading this thread correctly?
Mostly it does the same things a bitcoin client would do, e.g. it can run as a node on the network, read the blockchain, mine, etc.

The part about JVM/EVM is that ethereum has a concept of smart contracts, and I believe that means that part of the contents of a block can be code which can be executed by an "Ethereum Virtual Machine", which is part of what a client implements.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 03:22 PM


So much this.

Quote:
Full script here: https://medium.com/@mpjme/f03fcb9c1531

This video is a complete and utter ripoff of a Quora answer by a spectacular former colleague of mine, Blixt. (https://www.quora.com/What-are-the-g.../Andreas-Blixt) Blixt talks about three phases in the life of a developer:

1. The novice hacker
2. The philosophizing abstracter
3. The wise hacker

The wise hacker knows the same patterns and has the same optimisation skills as the philosophising abstracter — the difference is that the wise hacker knows that you should almost never use this knowledge.
Quote:
The philosophizing abstracter

"This code works for now, but if I move this part into a factory, and create an interface for these methods, it'll also support all these future cases I can think of!"

They've read all the articles on how to structure code. There's a lot of patterns out there for object-oriented (or functional!) code. Their code has all sorts of useful interfaces, abstraction layers, factories, extension methods, data structures.

Things break down when the project needs to move in an unexpected direction and it turns out that implementing the change requires changing a lot of the codebase because there were a bit too many abstractions that ended up creating hidden dependencies across the code.
So many of the code bases I've had to work in were like this. Way too complicated. Just write straightforward naive code and only for concrete requirements you have in hand. It's so much easier to factor out redundancy later than remove an unneeded layer of abstraction. Always assume change in ways you can't expect, but never assume requirements*.

* And of course like all rules these can be broken when you're 90% sure of a future requirement and 100% sure of how you want to handle it (usually because you've done something exactly like it in the past).

In a lot of ways we make our jobs way more complicated than they need to be.

/soapbox
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 04:31 PM
Quote:
Originally Posted by suzzer99


Imagine you filled all the empty space in this panel up with water. How much water would it hold? Expected answer is 5 "units" (ignore the y axis labels), because only Susan would hold any water and only up to the level of Millie.
I'm imagining there are more clever ways of doing this, but it was fun to play with:

http://jsbin.com/puruwid/edit?js,console
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 06:19 PM
Quote:
Originally Posted by suzzer99
Rusty, or anyone else have any favorite books, videos, sites for learning AWS as a rank beginner?

Also of interest - favorite resources for learning DevOps or microservices architecture - particularly on AWS. I have a microservices book from when docker was just coming out and it's a whole new universe now.
I can ask around but I learned all this stuff on the job.

Quote:
Originally Posted by suzzer99
Can someone explain to me what an "etherium client" does? Assuming I'm reading this thread correctly?
Etherium is a distributed crypto system to execute "smart contracts"

The language used was designed for use with etherium, it's called 'solidity'

It's one of the ****tiest languages I've ever laid eyes on. It has major usability problems. It is nearly impossible to write a correct program, even something on the level of "hello world."

The idea itself may have some merit but the implementation needs to die, immediately.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 08:28 PM
Quote:
There is no garbage collector. Dead allocations are never reclaimed, despite the scarcity of available memory space. There is also no manual memory management.
Hahahaha oh my god what
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 08:53 PM
Quote:
Originally Posted by goofyballer
Hahahaha oh my god what
what, you like that, but not

Quote:
In some situations, the optimizer replaces certain numbers in the code with routines that compute different numbers
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 08:54 PM
It would be excellent if it we're all intentional trolling
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 10:07 PM
It is perhaps worth noting that Solidity is not Ethereum, it's similar to Java / JVM
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 10:15 PM
Quote:
Originally Posted by _dave_
It is perhaps worth noting that Solidity is not Ethereum, it's similar to Java / JVM
I haven't looked into it recently, but it also seemed true when I last looked a year ago that there were not any other fully functional contenders.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 10:37 PM
The thing I posted says those other clients are JVM based.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 10:37 PM
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 10:41 PM
My favorite is the #todo
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 11:28 PM
556 is the most wtf. 568's 2nd argument is the most irritating.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 11:29 PM
556 was the funniest to me but that thread pointed out that it exposes allpasswords to the user and you could hack the site by just dropping a cookie that says “yes” hahaha.

Stuff I definitely noticed even though i’m terrible at this stuff - the raw sql argument
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 11:36 PM
That cannot be real
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 11:37 PM
I've worked on much worse - in Java/JSP form. An internal app also.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 11:52 PM
at least the front end raw sql query doesn't involve js user inputted variables..
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-12-2018 , 11:54 PM
Well yeah except a malicious user could easily hack the code and get everyone's username and password.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-13-2018 , 12:08 AM
Quote:
Originally Posted by Grue
at least the front end raw sql query doesn't involve js user inputted variables..
You can run the sql in the console and the PWs aren't hashed! lol, I am still not buying it
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-13-2018 , 12:09 AM
my favourite by far is the reddit username
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-13-2018 , 12:11 AM
Quote:
Originally Posted by suzzer99
Well yeah except a malicious user could easily hack the code and get everyone's username and password.
I expect they elsewhere in the code disabled the right mouse button and F12 key to prevent such sophisticated hacks
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-13-2018 , 12:12 AM
LOL
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m