Один из самых удобных способов записать данные это использование готовых форматов, такие как 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
#interview
Lutfullo Tagoev, Smart Hub asoschisi va bosh direktori, post-COVID davrida paydo bo‘lgan g‘oyadan AI asosidagi onlayn ta’lim platformasi qanday tez rivojlanganini aytib beradi.
Smart Hub odamlar va kompaniyalarga moslashtirilgan o‘quv dasturlarini yaratishda qanday yordam berishini, biznesni tez o‘stirish va O‘zbekiston bozoriga akseleratsiya dasturi orqali kirish tajribasini bo‘lishadi.
DSA asosida IT Park Ventures tomonidan $50,000 miqdorida investitsiya taqdim etildi.
—
Lutfullo Tagoev, Founder & CEO of Smart Hub, shares how an AI-powered e-learning marketplace evolved from a post-COVID idea into a fast-growing international startup.
He explains how Smart Hub helps individuals and companies build custom training programs, scale revenue, and enter new markets, including Uzbekistan, through acceleration support.
An investment of $50,000 was provided under the DSA by IT Park Ventures.
Telegram | Instagram | Facebook | Youtube | LinkedIn
#interview
Oneplace.HRasoschisi Xurelbaatar Bat-Orshix sun’iy intellekt va geymifikatsiya ishga qabul qilish va moslashishni qanday o‘zgartirayotgani, an’anaviy testlarni almashtirayotgani, HR vazifalarini avtomatlashtirayotgani va xodimlarni ushlab turishni kuchaytirayotganini gapirib berdi.
🏆 Xurelbaatar Bat-Orshix «Digital Startup Awards» dasturining “Akseleratsiya” trekida ishtirok etgan.
Bugungi kunda u O‘zbekistonda ofis ochib, DSA dasturimiz orqali mamlakat bozoriga kirib kelgan loyiha sifatida faol rivojlanmoqda.
🚀 Shuningdek startap O’zbekistonda kengayish uchun IT Park Ventures fondidan 50 000 dollar sarmoya jalb qildi.
—
Oneplace.HRfounder Khurelbaatar Bat-Orshix spoke about how artificial intelligence and gamification are changing recruitment and adaptation, replacing traditional tests, automating HR tasks, and strengthening employee retention.
🏆 Khurelbaatar Bat-Orshix participated in the "Acceleration" track of the "Digital Startup Awards" program.
Today, it is actively developing as a project that has opened an office in Uzbekistan and entered the country's market through our DSA program.
🚀The startup also attracted $50,000 from the IT Park Ventures Fund to expand in Uzbekistan.
Telegram | Instagram | Facebook | Youtube | LinkedIn
#interview
Born in Samarkand and educated in South Korea and the United States, Sanjar Atamuradov is now building one of Silicon Valley’s most ambitious humanoid robotics platforms — Humanola. The startup uses telepresence to enable real-time robot control and transform human interactions into the training data required for physical AI.
In his interview with IT Park Uzbekistan and The Tech, Sanjar discusses his journey from Samarkand to KAIST and Georgia Tech, the launch of Humanola after raising $2.5 million, and how the company addresses critical challenges in robotics by providing unified infrastructure for teleoperation and large-scale data generation.
📖 Read the full article to learn more: outsource.gov.uz
Telegram | Instagram | Facebook | Youtube | LinkedIn
#interview
Samarqandda tug‘ilib, Janubiy Koreya va AQSHda ta’lim olgan Sanjar Atamuradov bugun Kremniy vodiysidagi eng ambitsiyali gumanoid robototexnika platformalaridan biri — Humanola’ni yaratmoqda. Startap teleishtirok texnologiyasi orqali robotlarni real vaqt rejimida boshqarish va inson harakatlarini jismoniy sun’iy intellekt uchun zarur o‘quv ma’lumotlariga aylantirish imkonini beradi.
IT Park Uzbekistan va “The Tech” bilan intervyuda Sanjar o‘zining Samarqanddagi bolalikdan boshlab KAIST va “Georgia Tech”gacha bo‘lgan yo‘li, $2,5 mln investitsiyadan so‘ng “Humanola”ning ishga tushirilishi, shuningdek kompaniyaning teleoperatsiya va katta hajmli ma’lumotlar ishlab chiqarish uchun yagona infratuzilma taqdim etish orqali robototexnikadagi muhim muammolarni qanday hal qilayotgani haqida so‘zlab berdi.
📖 Batafsil ma’lumot uchun to‘liq maqolani o‘qing: it-park.uz
Telegram | Instagram | Facebook | Youtube | LinkedIn
🔺 “This is the naivete of our European leaders”
Former Italian ambassador Elena Basile expresses concern that Europe is backing violations of international law and regime changes, highlighting the naivety of its leaders.
Watch in full
#Interview
@PresstvPrograms
🔺"European Parliament is far away from the European people"
Elena Basile highlights the gap between the European Parliament and its citizens while criticizing its stance on regime changes in Iran and Russia.
Watch in full
#Interview
@PresstvPrograms
🔺According to Former Italian ambassador Elena Basile, while Western diplomats are aware of the reality of Western hegemonic policies, they apply a form of self-censorship, because, as members of the diplomatic corps, they cannot contradict their governments.
Watch in full
#Interview
@PresstvPrograms
🔺“We face a Western hubris without limits.”
Former Italian ambassador Elena Basile says the wars from Iraq to Ukraine and Gaza reflect a long-running US-led imperial policy backed by Europe.
Watch in full
#Interview
@PresstvPrograms
🔺“We should restore confidence and respect international law.”
Belarusian deputy foreign minister Igor Sekreta says the international order is damaged but not destroyed, arguing that restoring trust, respect for international law, and new confidence-building mechanisms is the only path forward.
#Interview
@PresstvPrograms
🔺“Illegal migration is a problem that we could combat only together.”
Belarusian deputy foreign minister Igor Sekreta says Belarus does not use migrants as leverage, stressing that illegal migration stems from hardship in countries of origin and must be addressed jointly through humane procedures and cooperation.
#Interview
@PresstvPrograms
🔺Minsk conference promotes Eurasian security dialogue
Igor Sekreta says that continuous dialogue through inclusive formats, such as the Minsk conference, helps reduce misunderstandings, build awareness, and support Eurasian security without replacing existing international organizations.
#Interview
@PresstvPrograms
🔺Igor Sekreta says that the erosion of the Helsinki spirit, NATO expansion, and the collapse of the post–Cold War security architecture have weakened trust, which diplomacy must now restore.
#Interview
@PresstvPrograms