Похожие чаты

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 ответов

9 просмотров

ok, what about product requirments?

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

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

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

Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
Мужики и девушки, привет) в Вelphi xe7 в настройках во вкладке "Editor Options" далее " Color" есть список: "Elements", открыв который мы можем настраивать отображение разных...
Kraszx
14
is that okay?
Samurai 🇯🇵
21
Добрый вечер. Есть вопрос, а может и предложение. Был у меня диалог в другой группе о делфи и я задался вопросом: "А нельзя ли в делфи цвет //коментария и {комментария} сде...
Kraszx
24
How about the project bro Likes the community not that active ?
🅿️abby_FX
19
Всем привет! Подскажи, пожалуйста, как передать в TComboBox сразу значение и id записи. На Delphi я делал так: ComboBox1.Items.AddObject('Какое-то значение', Pointer(id запис...
Евгений
13
А вот это что за конструкция? Вернее, она тут нафига?
Serjone
10
Мдя, прикол, боевая сборка запускается (именно под отладчиком) после F9 примерно полторы минуты (97 секунд если быть точным). Начал копать - проблема детектится сразу - зависа...
Александр (Rouse_) Багель
38
Здравствуйте товарищи. А где вы смотрите маркеры/фенотипы клеток, чтобы подобрать антитело для задачи? Есть какой-то ресурс/база данных, или всё ручками по статьям? Мне нужно ...
Abruhmed
14
Мужики. привет) в Вelphi xe7 в настройках во вкладке "Editor Options" далее " Color" есть список: "Elements", открыв который мы можем настраивать отображение разных элементов...
Kraszx
2
Карта сайта