Один из самых удобных способов записать данные это использование готовых форматов, такие как 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
🗣Top Genres of Podcasts Among Avid Fans
More than 61% of American households have a fan of #podcasts in the music genre.
- 37 million of these households identify as avid fans;
- 24 million consider themselves casual fans.
🚀@PerspectiveIX
❓ Do you listen to podcasts?
#podcasts
Great, engaging and beneficial podcasts
Let's not forget, English podcasts are the kind of content that takes the least time for us to use.
You can make the most of your time by listening to English podcasts and revitalizing parts of the day that may be unused for whatever reason.
How to use podcasts⁉️
English podcast for fast language learning😍😍
🌟If you want to listen to the podcast as efficiently as possible, follow these steps:
🔰Listen to podcasts every day. Listen to podcasts daily and cultivate this habit easily.
Find podcasts that interest you. Ask yourself, "What podcasts should I listen to," and try to choose one that suits your interests.
🔰Listen to podcasts that have transcripts or text. This helps you find new words and phrases quickly in the text and understand the structure of different sentence types.
🔰After listening to the podcast with the text, in the next step try to do it without the text. This will strengthen your listening skills and help you to understand native English speakers more easily, even if they speak very fast.
🔰Do not despair if you listened to an English podcast and could not fully understand it. There are countless ESL podcasts designed for different levels, from beginner to advanced. Surely you can find a podcast that fits your level every day
@TowardDiscoveringEnglish
@TowardDiscoveringEnglish
@TowardDiscoveringEnglish
@TowardDiscoveringEnglish
This is the best foster mom in the world!
🔻Lynx Alyona lives in the Irkutsk Zoo, and she has a very strong maternal instinct.
🔻Over several years, she has already raised orphaned kittens, bear cubs, five puppies, and two Amur tiger cubs.
🔻Alyona makes sure the babies are well-fed, clean, and well-behaved.
🔻As soon as she hears the pitiful meows of abandoned babies, she understands: "Oh, these are mine!"
⏺Here are the🇷🇺(word stress)+🇬🇧texts for you to practice! https://telegra.ph/Podcast-07-04-2
❗️You can also send me the recording of your reading of the Russian text to @RCR_feedback_bot and get feedback!
#podcasts
#brief_and_interesting
😎RCR | Support | Boost
¿Que puede hacer este bot?
@podcastly_bot
Encuentre nuevos podcasts por sistema de búsqueda o recomendación, envíe notificaciones sobre nuevos episodios.
Idiomas: varios incluido español
(Visto en @botsgram_cu)
#podcasts#búsqueda
🎧About 1 in 4 Consumers Say They’ve Made A Purchase After Hearing A Podcast Ad
The US population has embraced podcasts, with the majority of Americans over the age of 12 years listening to them on a weekly basis. And, per a survey by Adobe, more than half (52%) of these #podcast enthusiasts are listening to #podcasts while commuting to work or while they are working.
Among the nearly three-quarters (72%) of respondents who report having heard an ad while listening to a podcast, 1 in 3 say the ads are more engaging than on other formats and 2 in 5 say they are less intrusive. This could be due to the type of ads heard on podcasts, as the majority of ads are still host-read, which aids in maintaining continuity within the podcast.
🦅@PerspectiveIX via MarketingCharts.
🎧The Steady Rise of Podcasts
Over the past decade, #Podcasts have seen a steady rise in popularity. According to Edison Research, 64% of Americans are now familiar with the term “podcasting” and more than 4 in 10 have listened to a podcast themselves.
The format’s rise in popularity clearly coincides with a general increase in digital media consumption, specifically on mobile devices. Also, #Podcast is the only format users can consume passively.
❗️You can start listening to some fantastic podcasts on📻@iXRadio.
🚀@PerspectiveIX via Statista.
❓How familiar are you with podcasting? I...
AI Podcasting Startup Raises $1.3M
Retellio secures $1.30 million in funding to develop AI agents that convert thousands of hours of customer calls into 30-minute podcasts. More details at Retellio's website.
#AI#Funding#Podcasts#Startup#CustomerExperience#Tech
А для всех тех, кто любит неспешно заниматься своими делами в ночной тиши под приятные беседы умных людей, у нас сегодня новый подкаст с канала Pam Grossman — "#156 - Loretta Ledesma, The Death Witch" c ведьмой смерти Лореттой Ледесмой.
Впрочем, разумеется, днём его слушать тоже можно.
Слушать по ссылке.
#podcasts
#witchcraft
#western_esoterism