The cake is a lie что значит
The cake is a lie что значит
Забились мы с товарищем приготовить торт из Portal. Оба любим эти игры, да и от вкусняшек никогда не отказывались.
И вот, прошло 10 месяцев, и мы наконец-то собрались. Стоит отметить, что до этого торты мы не делали, так пришлось повозиться. После 8 часов факапов с перерывами на овервотч полкчили вот это:
Ну. Мы пытались По крайней мере на вкус он офигенен :3
Хочешь кусочек?
Все скидки и промокоды в одном месте
Вы там как, готовы к осенним распродажам? Чтобы не пропустить самые интересные и выгодные предложения, подпишитесь на полезный телеграм-канал Пикабу со скидками. Да, Пикабу не только для отдыха и мемов, но и для экономных покупок!
В «Пикабу Скидки» вы найдете актуальные предложения:
• доставки еды (KFC, Delivery Club, «Папа Джонс»);
• книги («Читай-город», «Литрес», Storytel);
• услуги и сервисы («Делимобиль», Boxberry, «Достависта»);
• маркетплейсы и гипермаркеты (Ozon, «Ашан», «Яндекс.Маркет»);
• одежда и обувь (Adidas, ASOS, Tom Tailor)
• бытовая техника и электроника («М.Видео», «Связной», re:Store);
• товары для дома (IKEA, «Леруа Мерлен», Askona);
• косметика и парфюмерия («Л’Этуаль», «Иль де Ботэ», Krasotka Pro);
• товары для детей («Детский мир», TOY, Mothercare);
• образование («Нетология», GeekBrains, SkillFactory);
The Cake is a Lie
Have you ever thought — How to explain programming to the one never faced it before? It could be a problem, as long a new one will not understand you.
So, let’s imagine — you have a friend, who is not soiled by computer science, never tried to automate something, never played factorio, never written a single line of code.
So, let’s imagine a normal human being.
And let’s call him Bill. He is not very good in Maths, just “not good”, but he loves candies!
Your task is to teach Bill some basic(or magic) IT things, you are doing every day. The simplest ones.
So what shall you do first? Basically — FEED HIM!
Feed him!
Long story short, but one day Andrey Alexandrescu asked Bill:
— Andrey: Hi Bill, do you want a candy?
— Bill: Yep, sure!
Then Bill got the candy, unwrapped it from Candy wrapper and ate the payload.
Simple? And we have used two magic words!
Just a few days later Wirth asked Bill:
— Wirth: Hi Bill, do you want a candy?
— Bill: Yep! SURE!
— Wirth: Hey, I’ve got another one, do you want it too?
— Bill: Yep! SURE!
This is a condition-controlled loop, or a cycle.
— Wirth: Hey, I’ve got another one, do you want it too?
— Bill: Yep! SURE!
But there was no candy, and Bill got a common null pointer exception.
Beware — if Alexandrescu will suddenly return and continue to feed Bill with candies — a buffer overflow will occur. As long as Bill will always accept a new candy.
Next day Wirth was prepared. He has got a big bag of candies.
— Wirth: Ok, let me check the bag of mine….
— Wirth: I still have candy. Bill, do you want a candy?
— Bill: Yep! SURE!
In this case, Wirth will provide a candy only if he has one.
Here we got a cycle with precondition.
But one day Bill come to Wirth`s house, and house:
— Bill: GIVE ME A CANDY!
— Wirth: Nothing lasts forever! You have eaten everything!
— Bill: But I will take it IN ANY CASE.
— Bill: DO YOU HAVE A CANDY.
It was a cycle with postcondition. Sad story. Thank god police were nearby. Be careful next time, and do not feed wild birds (and Bill).
Decades later Dan Abramov comes to Bill and put all his candies on the table:
— Dan: speechless gazing at Bill.
— Bill: speechless gazing at a first candy
— Dan: Bill, do you want one on these candies?
— Bill: Yes, sure.
— Dan: Here you are.
It was a collection-controlled loop.
Just after it, Dan got another bag, put all candies on the table, count them, and put back to the bag.
— Dan: Bill, look like I still have candy. Do you want a candy?
— Bill: Yes, sure.
— Dan: Here you are.
It was a count-controlled loop.
Sooner or later, but Bjarne Stroustrup comes to feed Bill.
— Bjarne: Bill, do you want a candy.
— Bill: Yep, sure.
— Bjarne: Here it is.
— Bjarne: Bill, do you want a candy.
— Bill: — — —
Bill was munching a candy. He was busy and nothing can disturb him. He has raised a mutex, the thread got locked and time stops…
Bjarne was a very clever one, and he found a solution:
— Bjarne: Bill, do you want a candy.
— Bill: — — —
— Bjarne: Ok, I`ll wait until for finish munching…
Here we got a thread synchronization.
Ok, this time we will call for Peter_Norton.
— Peter: Bill, do you want a candy.
— Bill: Yep! Sure!
— Peter: I`ll provide a whole pack. Munch it by yourself.
Next Bill will get candies, one by one, from a bag, and eat them, one by one.
This operation or sequence is called LIFO — Last it, First out. As long the candy from the bottom of the pack will be eaten last.
At the same time, Bill`s digestion is a FIFO — first in, first out. You had to know it before.
Donald_Knuth also joined the feeding team. But one day he got tired of buying new candies for Bill, and he asked a catering company to do it.
— Donald: Hey, my friend, can you buy the best candies in the nearest shop and present them to Bill? Here are Bill`s address and money…
Since that time Bill always has new candies from Donald.
In this case, a catering company is a function, and address and money are arguments. And a candy is a return value.
If for the same address and the same amount of money Bill will always get the same candies — it will be called a pure function.
But only in case the company will only transfers candies from point A to point B, and a shop will always be a non-pure function, as long it loses candies by selling them… and getting money! So it changes the internal state.
But Dennis_Ritchie was even clever!
— Dennis: Hi Bill, do you want a candy?
— Bill: You know it!
— Dennis: So here is an address. You will found your so desired candy there.
It was a pointer.
But, then Bill reached that address he found only a secret military object. Nobody saw him since then.
A few months later, after escaping from jail, he tried to repeat, but yet again can’t reach “the target”. This time something was stopping him at a distance — invisible, and indestructible walls of bounds checking.
But one day… Even, to say the truth — night — Cyberdemon comes to Bill`s house and shout:
— Cyberdemon: DO YOU WANT A CANDY?
— Bill: YES! AT THE DAYTIME, AND THEN THE STARS SHINE! ALWAYS!
So, Bill has got his candies yet again. But this is a bit sad story, as long he forgets to check the type of payload or perform any other data validation. ️
After that Bill woke up in a void, and hear:
— Cosmos: Bill! Do you want a candy?
— Bill: Yes!
— Cosmos: Bill! Do you want a candy?
— Bill: Yes!
— Cosmos: Bill! Do you want a candy?
— Bill: Yes!
This is how ping works.
In the disturbed systems with non-zero latency this might look so:
— Cosmos: Bill! Do you want a candy?
— Cosmos: Bill! Do you want a candy?
— Cosmos: Bill! Do you want a candy?
— Bill: Yes!
— Bill: Yes!
— Bill: Yes!
But this case valid only for TCP/UDP. In the case of TCP/IP, it might be
— Cosmos: Bill! Do you want a candy? Bill! Do you want a candy?
— Cosmos: Bill! Do you want a candy?
— Bill: Yes! Yes! Yes!
As long sibling packets will be joined by time or size factor(aka MTU).
The End
I have a lot of untold stories, like a Bill and Gang-of-Four, or non-cross-browser candy.
But let me told the last one, about The Indivisible Candy:
Bill eats it hundreds of times, but it zaps back to his hand, unmunched and even still sweet!
So Indivisible candy may be a singleton or a memory leak, as long garbage collector can’t digest it.
So, can you describe something from IT in a candy style? To feed teach Bill, and get him in IT.
Bill is still very hungry, and he is starving. You have to feed him. Here. In comments.
PS: This is a translation of 10 years old article. Original article “The Val`s Candies” was released 8 years ago, and since that time it got a lot of new examples as user comments — recursion, delegation, interfaces, stack overflow, procedures vs functions, classes, B-trees, and so on. But… in another dimension.
The cake is a lie что значит
Пишу слова, зову стихами
И в Пикабу даю на суд.
Вы сразу не кидайтесь пирогами,
Хочу доставить удовольствие,
Не повредив ваш тонкий слух,
И может с тортиком и чайной кружкой
Прочту, что мне в ответ напишешь, друг.
А если ты уже собрался
Свои стихи отдать в народ
Я буду ждать всех публикаций
А сам пока проверю брод.
Знакомьтесь, Александр Торт,
Бисквитный добрый малый,
Но вот увы уже не тот,
Глазурь осыпалась местами.
И кровоточит конфитюр,
Там где проложены коржи
И миллионы пузырьков
Опали в глубине души.
Бисквит был вымочен в вине,
Потом и в водке, в роме.
Я словно вишня в коньяке:
Попробовал, и ну к застолью.
Я словно праздник, весь нарядный,
Украшен свечкой и бизе
И даже может кто-то скажет:
«Рецептик дай моей жене».
Меня осталось три кусочка
И гости, видно с горяча,
Чуть не отправили в помойку.
Я лучше всех, когда в округе праздность
В обычный день, я на витринах жду
Три дня и наступила старость,
Ну что ж вы снова взяли колбасу.
Все скидки и промокоды в одном месте
Вы там как, готовы к осенним распродажам? Чтобы не пропустить самые интересные и выгодные предложения, подпишитесь на полезный телеграм-канал Пикабу со скидками. Да, Пикабу не только для отдыха и мемов, но и для экономных покупок!
В «Пикабу Скидки» вы найдете актуальные предложения:
• доставки еды (KFC, Delivery Club, «Папа Джонс»);
• книги («Читай-город», «Литрес», Storytel);
• услуги и сервисы («Делимобиль», Boxberry, «Достависта»);
• маркетплейсы и гипермаркеты (Ozon, «Ашан», «Яндекс.Маркет»);
• одежда и обувь (Adidas, ASOS, Tom Tailor)
• бытовая техника и электроника («М.Видео», «Связной», re:Store);
• товары для дома (IKEA, «Леруа Мерлен», Askona);
• косметика и парфюмерия («Л’Этуаль», «Иль де Ботэ», Krasotka Pro);
• товары для детей («Детский мир», TOY, Mothercare);
• образование («Нетология», GeekBrains, SkillFactory);
Portal
the cake is a lie (торт — это ложь)
Похожие цитаты
There is a patience of the wild — dogged, tireless, persistent as life itself.
У хищников есть особое терпение — настойчивoе, неутомимое, упорнoе, как сама жизнь.
Fear is not real.
Fear is simply the product of thoughts that you create.
Danger is very real,
but fear is a choice.
– Он человеколев.
– Что ещё за «человеколев»?
– Наполовину волк, наполовину лев.
– He’s a Löwenmensch.
– What the hell is a Löwenmensch?
– It’s part-wolf, part-lion.
No response is a variety of feedback.
Жизнь человека — дальняя дорога к мечтам.
The human life is a long road to the dreams.
Жизнь человека — бесконечная борьба со временем.
The human life is an endless struggle with time.
Жизнь человека — падение капли дождя в реку забвения.
Man’s life is the fall of a raindrop into the river of oblivion.
Жизнь человека — падение хрустальной вазы на гранитный пол.
The human life is the fall of a crystal vase on a granite floor.
Жизнь человека — это лишь миг между поцелуем матери и смерти.
The human life is only a moment between the kiss of mother and death.
Жизнь человека — испытательный полигон для ошибок и ударов судьбы.
The life is a testing ground for mistakes and blows of destiny.
Жизнь человека — это болото, и только леший с кикиморами в нём не утонут.
The human life is a swamp, and only the wood-goblin and the kikimores do not drown in it.
Жизнь человека — это большой спорт с многочисленными травмами и сверхнагрузками.
The human life is the professional sport with numerous injuries and overloads.
Жизнь человека — спектакль, где режиссер — это судьба, а люди лишь марионетки в её руках.
The human life is a performance where the director is fate, and people are just puppets in her hands.
Жизнь человека — раскраска, заработаешь деньги на краски, будет красочной, не заработаешь, будет серой.
The human life is colouring, if earning money for the paints will be painted, if not earning will be somber.
The cake is a lie что значит
Employee #1: Yo, Dave, manager says we will probably get a promotion if we meet the sales expectations for this quarter.
Employee #2: Yeah, so, don’t get your hopes up on that one, Ed. The cake is a lie.
Employee #1: Really, aw crap.
(six months prior to Vista release) «Vista will be the greatest operating system ever!»
(three months after Vista release) «The cake is a lie.»
The Cake is a lie: To have a Cake you need time and money. Therefore: money + time = Cake
According to smart people, time is money.
Therefore: 2time = Cake
According to other smart people, time goes on forever.
This indicating: time = infinity
Therefore: 2infinity = Cake
Because no person has achieved infinity, let alone 2infinity. The Cake is not possible.
The Cake is a lie!
The written language is the most powerful form of language.
The embodiment of cake is not in the cake itself. Cake is delicious, but not satisfying without the experience that usually accompanies cake. When you have cake, it is not the cake that creates the most magnificent of experiences, but it is the emotions attached to it. Celebration with friends, the social interaction usually surrounding a joyous occasion. Without this interaction between the cake and the world, the cake would just be any other pastry. However, cake can be enjoyed by some but not by others in any social interaction. Each perspective is unique to each individual.
A cake alone can be enjoyed, but not in the sense that cake should be.
As I walked down the coast, walking her hand in mine, my heart was filled, my mind content, and in that moment I was happy.
As I walked away from her, alone to my car, I knew the emotions experienced by being with her were untrue. Her thoughts and feelings were not mine.
The cake was delicious, the experience wonderful, but in the end, it was still just cake.