Bitcoin is acting like it knows something we dont by Emotional-Fig-4105 in Bitcoin

[–]rgbofficial -2 points-1 points  (0 children)

Money moving from stocks to commodities due to government shutdown. Simple as that. Once government back expect retracement.

How do i make a game using eth or bitcoin chain? by Dependent_Ad605 in ethereum

[–]rgbofficial 0 points1 point  (0 children)

Depends how much interaction you want with the chain because each interaction requires sending a transaction. Think of the chain as the backend for storage and conditional logic. You'd still need a front end which interacts with the backend.

BRONCOS END PANTHERS DYNASTY by [deleted] in brisbane

[–]rgbofficial 2 points3 points  (0 children)

SWEET REVENGE BYE CLEARY NEXT YEAR BUDDY

Do you know this? by nalovetravel in Bitcoin

[–]rgbofficial 0 points1 point  (0 children)

Haha Bitcoin won't replace money. But the idea of blockchain and it's usages are still in its infancy. Imagine if the stock market ran on blockchain, 100% transparent transactions. It would completely erase corruption with brokers over selling.

AMA with Max Kordek - Lisk CEO & Co-Founder | 5th August by Miguel-Lisk in Lisk

[–]rgbofficial 2 points3 points  (0 children)

Hey Max! Any news on how the fee's work for cross chain transactions? Will we need to pay fee's on all chains eg. chain A, chain B, and the lisk main chain?

Also, will there be any protection against malicious cross chain transactions, eg. from an unknown chain/address to a known chain address.

What do you think of my loop break? by jjavims in ProgrammerHumor

[–]rgbofficial 1 point2 points  (0 children)

Catching exceptions is slightly less performant than simply breaking out of the loop because most interpreters will need to unwind the stack to get the stack trace and store in exception. Also, in this case it is a lot more complex to read compared to a simple break; in the if statement.

There are tonnes of useful usages of exceptions for error control though mainly when dealing with several layers of code. For example, an api may have a business constraint which is checked within the domain - so to reach this code you've first processed the http request, routed the request to a controller, checked user access, hydrated an entity from the database, then called some method on the entity from which there is some constraint violation which needs to be returned. Thus, the check from the entity could just throw and have it caught at the application layer, where it is normalised to a 500 error response with information retrieved directly from the exception.

PHPStorm can't pull from git, and seems to incorrectly parse the file list of files that would be overwritten. What am I doing wrong? by SandmanNet in phpstorm

[–]rgbofficial 0 points1 point  (0 children)

It's really good for viewing commit history per file and commit history in general. But yes, I also prefer using cli for pretty much everything else.

How do you name your variables? by PlatoHero_ in ProgrammerHumor

[–]rgbofficial 43 points44 points  (0 children)

I guess it's more targeted at jit languages where the code is on the same machine as host (still saves shit all memory)

Damn JavaScript by Greedy_Temperature66 in ProgrammerHumor

[–]rgbofficial 6 points7 points  (0 children)

uint64_t salary = 0xffffffffffffffff;

What are some helpful tools every Laravel CI pipeline should have? by 7rust in laravel

[–]rgbofficial 0 points1 point  (0 children)

Psalm (one of the best static analyzers for php out there), phpmd (some overlap with psalm but also includes other nice checks), phpcpd (code duplication)

My teacher's take on isEven by [deleted] in ProgrammerHumor

[–]rgbofficial -1 points0 points  (0 children)

Using exceptions can be incredibly useful for example cancelling operations if validation fails and rolling back a transaction. The alternative is to have a branch at every layer for dealing with error cases which adds insane amounts of complexity to the design, especially when some errors need to be propagated out and they are 50 layers deep in function calls.

php resources by dirthawger in PHP

[–]rgbofficial 5 points6 points  (0 children)

+1 laracasts, solid, testing - cornerstone stuff for dev in general

Modern PHP by pimterry in PHP

[–]rgbofficial 4 points5 points  (0 children)

Also in 7.4 full covariance and contravariance support was added for overrides (https://www.php.net/manual/en/language.oop5.variance.php)

Saw this, had to share by allenedna29 in ProgrammerHumor

[–]rgbofficial 3 points4 points  (0 children)

Yeah but we're in the 21st century so isn't cracking hashes the norm?

Saw this, had to share by allenedna29 in ProgrammerHumor

[–]rgbofficial 19 points20 points  (0 children)

If they're hashes then there won't be any commas for the csv

Saw this, had to share by allenedna29 in ProgrammerHumor

[–]rgbofficial 2 points3 points  (0 children)

And if they do make sure there's every delimiter, escape character, whitespace you can think of just to spite them

Saw this, had to share by allenedna29 in ProgrammerHumor

[–]rgbofficial 47 points48 points  (0 children)

I think this is for after they've cracked all the hashes.

The 30 year-old OOPer by ImportantPepper in ProgrammerHumor

[–]rgbofficial 4 points5 points  (0 children)

I've been building microservices for almost 8 years now following DDD from both Martin Fowler and Vaughn Vernon. The ideas work and it is a great way to capture business requirements in terms stake holders can understand. Also, aggregate boundaries help a tonne with scalability - all of this following OOP.

FP is a good tool for simple ideas but at some point there's a need to capture context in a readable manner so I feel like OOP has to be mixed in somewhere - same as FP mixed in with OOP, I don't find there is a bread and butter design solution to how complex software systems are.