Home > Today’s Crypto News
bitcoin
bitcoin

$87959.907984 USD

1.34%

ethereum
ethereum

$2920.497338 USD

3.04%

tether
tether

$0.999775 USD

0.00%

xrp
xrp

$2.237324 USD

8.12%

bnb
bnb

$860.243768 USD

0.90%

solana
solana

$138.089498 USD

5.43%

usd-coin
usd-coin

$0.999807 USD

0.01%

tron
tron

$0.272801 USD

-1.53%

dogecoin
dogecoin

$0.150904 USD

2.96%

cardano
cardano

$0.421635 USD

1.97%

hyperliquid
hyperliquid

$32.152445 USD

2.23%

bitcoin-cash
bitcoin-cash

$533.301069 USD

-1.94%

chainlink
chainlink

$12.953417 USD

2.68%

unus-sed-leo
unus-sed-leo

$9.535951 USD

0.73%

zcash
zcash

$521.483386 USD

-2.87%

Open/Close

What Is Open/Close?

Open/close can refer to the price at which a cryptocurrency opens at a time period, for example at the start of the day; the price at which a cryptocurrency closes at a time period, for example at the end of the day. In general, these terms were more useful in traditional financial markets as there are fixed hours of the day in which trading occurs.

In software development, open/close refers to the programming principle of software parts (functions, modules etc.) being extendable without allowing any kind of change in the source code. The code itself permits flexibility while restricting the ability to change its fundamental parts. This eliminates the need to change the software completely every time when new requirements arise. It was first described by Bertrand Meyer and forms part of the SOLID principle of object-oriented programming. Open/close is especially important for blockchain and crypto projects design because of their immutable nature.

Blockchain and its parameters aren’t easily changeable once implemented. This is because any change has to be agreed by all nodes and participants of the network and a consensus needs to be formed, which isn’t exactly easy. For that reason, blockchain platforms and decentralized applications are typically only changeable through a hard fork, which means starting on a new chain. 

Hard forks are an inconvenient procedure and quite risky for users. It’s not practical for projects to hard fork every time they need to pursue changes and add/modify functionalities. Hence, blockchain programming relies heavily on the open/close principle, which means leaving room for extending capabilities without causing drastic changes.