Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML.
Из плюсов такого подхода стоит отметить вот что:
🔸 готовый, повсеместно используемый и поддерживаемый формат
🔸 простой и понятный файл, удобочитаемый для человека
🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек
Но есть и минусы
🔹 затраты времени при записи файла (кодирование данных в нужный формат строки)
🔹 затраты времени при чтении файла (декодирование данных в Python объекты)
🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...)
🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда)
🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные
Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи.
Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳.
🔸 очень быстрая запись
🔸 чтение значительно быстрей чем JSON, YAML итд
🔸 размер файла значительно меньше, так как нет разметки
🔸 можно записывать данные по мере поступления не загружая всё в память
🔸 можно извлечь любую часть данных независимо
Из минусов
🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата)
🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию.
🔹 не так-то просто создать такой файл без специальной библиотеки
В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии.
(Это не означает что нельзя записать данные разного типа, просто это будет не так удобно)
Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого
f15d cd29 a564 4578 ...
09e2 9bc4 a696 1253 ...
84e9 4de1 3b23 c24a ...
2534 5161 28e0 709d ...
...
Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла.
К чему это я? Читайте в следующем посте...
#tricks#basic
На просторах интернета наткнулся на китайский стартап Dora AI. Пишешь промпт — и вуаля: анимация таблиц, инфографика, визуализация карт, симуляция чатов и куча всего.
Выглядит круто, но что-то слишком уж гладко и просто. Не тянет ли на очередной развод с «ИИ»? Чувствую, за ширмой тысяча индусов пашут. 😅
Были же прецеденты:
1. Builder.ai (оценка $1,5 млрд) обещал кодить софт и упростить разработку программного обеспечения до уровня "заказа пиццы", а на деле 700 человек вручную работали, обманув Microsoft и Amazon на $500 млн.
2. Kaedim хвастался 3D-моделями от ИИ, но их лепили люди из Аргентины и Индонезии за $1–4.
Dora AI — реальный ИИ или очередной фокус? Можно зарегаться на ранний доступ через Discord
#earlyaccess#ainews | AcidCrunch
🔥 20,000+ Runs and Counting — You’re Forging Legends!
Forgers, you’re absolutely unstoppable🚀
Together, you’ve already completed over 20,000 runs — and the numbers keep climbing.
That’s 20,000+ battles fought and strategies tested.
You’re not just playing — you’re shaping the future of DeckForge with every move.
⭐️ As a thank you:
We’re sending a wave of Stars to the most active players.
Check your wallets — you’ve earned it.
🎁 More rewards are coming!
➡️DeckForge - Play Now!
We see your clips, your insane combos, your feedback.
We see you. And we’re grateful.
Stay fierce. Stay forged.
#DeckForge#ClosedBeta#EarlyAccess
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements👉DeckForge
From the Forge #11: 🔨 | Closed Beta Is Forged
Our Adventure Map is ready to welcome the first wave of players — every node, every choice, every twist now set in place.
Meanwhile, our Art Team is hard at work bringing new Jokers and Bonus Cards to life — adding layers of depth and crazy combos to your future decks.
We’re also preparing a special challenge for our early players — with rewards waiting for those brave enough to take the first steps.
The Closed Beta is just days away.
Get ready — the Forge is heating up 🔥
#DeckForge#ClosedBeta#EarlyAccess
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements👉DeckForge
From the Forge #10: 🔨 | UI Overhaul & Art Expansion
Big things are happening behind the scenes
Over the past weeks, our team has been reworking the UI of DeckForge — and it’s now smoother, sharper, and far more enjoyable to navigate. The updated interface is already integrated into the latest Closed Beta build.
But we’re not stopping there.
Our ARTists are hard at work expanding the visual universe of DeckForge — refining old elements, creating new ones, and pushing the style to the next level.
We're feeling incredibly optimistic as we finalize the build for our earliest players. Soon, you'll step into the experience and help us shape the game’s future.
Your feedback is our forge.
Together, we’re getting closer to Open Beta — one step at a time.
Stay forged 🔥
#DeckForge#ClosedBeta#EarlyAccess
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements👉DeckForge
Why Early Matters
We’re still early.
Which means you’re not just joining a game — you’re getting in before the noise.
🔵 Early players will enter Closed Beta before the public launch.
🔵 You’ll get access to exclusive rewards and collectibles — not available later.
🔵 You’ll help shape the game through feedback, testing, and community votes.
🔵 You’ll build reputation and status before the seasonal competition begins.
🔵 Your progress and impact will carry forward into the full release.
Now’s the time to get in early.
Join the Discord. Get the role. Be part of the first wave.
#DeckForge#EarlyAccess#ClosedBeta
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements
Omchain DID Early Access now! Earn 100 Points to unlock OMC Coin! 🔥🔥
🔥 Secure your Omchain Profile today! 🔥
https://did.omchain.io/?referrer=97187422
Connect your Metamask or mobile wallet, sign in, provide your email, and confirm via email. Invite friends for even more rewards! Stay tuned for exciting updates.
Don't miss out on this limited opportunity! Act now and be part of the Omchain revolution! ✨
#Cryptocurrency#Blockchain#OMCCoin#EarlyAccess
🎙NEW PROJECT 30-100X🔥🔥🔥
🤌 CROSS THE AGES🚀🚀
💫 This is your opportunity to be among the first to experience the #crosstheagesgame and #Metaverse💫
Join this #giveway complete tasks and become apart of something monumental 🤯
Join now🧨
👉https://gleam.io/drnAT/the-cross-the-ages-nft-giveaway👈
#earlyaccess
🎮 DeckForge Discord is LIVE.
The gates to the Forge are finally open — and you can be among the first to enter.
👑 Early players will receive the Pioneers role — a special early access badge that will unlock exclusive rewards and the future Founder Pack.
Here's how to claim your role:
1. Join the DeckForge Discord server.
2. Check out the rules and verify yourself.
3. Go to the #claim thread and get the Pioneers role.
💰 Pioneers role = early access to the Beta, unique rewards, and hidden advantages before the global launch.
The earlier you forge your legacy, the greater your rewards.
See you inside.
🔗DeckForge Discord
#DeckForge#EarlyAccess#FoundersPack
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements