Похожие чаты

I'M far from an expert in baking systems, and I've

learned not look down on domain knowledge — building a system that can actually be used always requires much more effort compared to my intuition.

I have a few "simple" questions, after roughly examine the requirements.

1. Interest and minimum balance may change. How to prepare for the change? Is it worthwhile to simply put it a constant, at the cost of recompiling? Or provide a universal configuration interface?
2. I don't think a fixed type of accounts works in the long run. How to prepare for the change of "account types"?

From the perspective of low level things, many things should also be considered.

1. If the class is placed in a shared library, the "account type" change may break the binary compatibility. How to design the classes to minimize the cost of change? Is it worthwhile?
2. How to store balances? Floating point numbers surely won't work, but fixed point numbers are also tricky. Is the assumption that "two places after decimal point" correct in this scenario? Should the balance be signed? How to handle the overflow correctly? How to compute the interest if the data type is a fixed point number?
3. How to ensure the atomicity of operations? At which level should the enforcement be placed?

I can easily write more questions if I dig deeper. I won't write more, because the examples are enough to show my point:

Homework is simplified version of real-world problems. For a real-world banking system, the business logic is too complex that rarely a single person can comprehend. The homework only shows the tip of the iceberg, but the underwater part is usually what technical and design decisions depend on.

If you just treat homework as homework, not much can you learn from it. I think setting the bar low is not the optimal attitude — just write some silly code, who can't?

2 ответов

10 просмотров

ok, what about product requirments?

It doesn't have to actually be able to be used, it's homework

Похожие вопросы

Обсуждают сегодня

This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
есть ПО, которое лежит папкой, по сути и не инсталится, а просто запускается. Надо раскидать по машинам в домене. Я так понял, что прям настройками GPO, копировать я смогу тол...
Dmitriy
8
any reference of this implementation?
BitBuddha
29
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
Привет)) уже кажется эту тему перемусолили, но вот я так и не понял. Я сейчас сижу на 27дюймов 2к мониторе. На Актуальной макоси, если я куплю 27д 4к монитор: - будет ли изобр...
Vladislav Piskunov
16
Добрый день! Скажите пожалуйста, а какие программы вы бы рекомендовали написать для того, чтобы научиться управлять памятью? Можно написать динамический массив, можно связный ...
Филипп
7
Also, why can’t the community have a vote/ say when it comes to initiatives like buybacks. Isn’t the point of crypto decentralisation? Don’t we deserve input as long term supp...
👨🏽‍🦰
13
Карта сайта