Forwarded from Пездуза
Please open Telegram to view this post
VIEW IN TELEGRAM
🤡13😁3❤2
Forwarded from Таксики и лытдыбр σποραδικος
Мы с Иваном Ильичом
Премию вручали
Я мудак и он мудак
[ДАННЫЕ ПРОПАЛИ]
Все мы фонд SCP
Премию вручали
Я мудак и он мудак
[ДАННЫЕ ПРОПАЛИ]
Все мы фонд SCP
🌚16😁8🔥4🥰1🤯1
#cpp
P2723R1 Zero-initialize objects of automatic storage duration
Можно прочитать только ради секции об отзывах
P2723R1 Zero-initialize objects of automatic storage duration
Можно прочитать только ради секции об отзывах
😁6🤔2👍1
#prog #article
Writing Mac and iOS Apps Shouldn’t Be So Difficult
Вопреки названию, не специфично для эппловских платформ.
Автор также отмечает, что в силу того, что скрипты также хранились в базе данных, это позволяло применять обновления приложения без рестарта и без копирования большого количества нативного кода.
Writing Mac and iOS Apps Shouldn’t Be So Difficult
Вопреки названию, не специфично для эппловских платформ.
The app was implemented in two pieces:
The kernel, written in C, implemented the database, networking, inter-application communication, various built-in data types, script compiler and evaluator and debugger, and so on
The scripts used the kernel and implemented most of the actual app behavior
Since it was an app, it had plenty of UI — menus, contextual menus, buttons, larger UI components, and so on. What was brilliant was that you could, for instance, add and edit menus, and when you chose a menu command it would run your script. (Or when you clicked a toolbar button, etc.)
You could write an entire static blog publishing system and the UI to go with it without ever restarting the app. Click a thing, then see what happens in the app — and if it’s not right you’d edit the script, which would be automatically recompiled when called the next time.
In other words, there was absolutely no friction when it came to iteration. Write some code without restarting and see your changes immediately.
But I wanted to bring up a second aspect to this: it’s not just frictionless iteration that was so great, it was also the scripting language and environment.
One of the best parts of this was how easy persistence was. I mentioned the hash-table-based database. Hash tables could contain hash tables
<...>
In any script, at any time, without any ceremony, you could read and write from the database simply using dot notation: user.prefs.city = "Seattle" would set the value of city in the prefs table which was contained by the user table. This value would persist between runs of the app, because it was stored in the database.
I’ll remind you of the timing: this was the ’90s. We worked this way for real, and we were amazingly productive.
Автор также отмечает, что в силу того, что скрипты также хранились в базе данных, это позволяло применять обновления приложения без рестарта и без копирования большого количества нативного кода.
🤔3