Forwarded from Jem
https://johnpublic.mataroa.blog/blog/the-asshole-test
Some years back I applied to join IBM's grad scheme, there was a peculiar stage to the process I've not seen elsewhere. It was during the onsite day, where a batch of 20 or so applicants were put through various tests in an IBM office. They called it the "group test".
Around 8 of us were led to a room and asked to solve a puzzle together. Each of us was given an information pack, there was a white board, and a timer ticking down from 60 minutes. At first there was silence as we looked at our packs, then the first voice: "Let's pool our information", someone stands up by the whiteboard, grasping a marker. Silence, it's not clear how this information should be parsed. One person starts reading theirs out word for word. This is not going to scale. Someone interrupts. Before long the whiteboard leader has been deposed and another is wielding the marker. Then another fights for control. The 60 minutes has run out, the puzzle is unsolved. Confused and drained we head off to the next test.
At the end of the day the group is split into two rooms, my room is given the good news and I go on to join the grad scheme.
Six months later I am shadowing a colleague who is running the "group test". I asked him if he'd ever seen a group complete the test? "Oh, it's not about that, this is an asshole test. You see who turns into an asshole under pressure and they don't make it to the next round".
Some years back I applied to join IBM's grad scheme, there was a peculiar stage to the process I've not seen elsewhere. It was during the onsite day, where a batch of 20 or so applicants were put through various tests in an IBM office. They called it the "group test".
Around 8 of us were led to a room and asked to solve a puzzle together. Each of us was given an information pack, there was a white board, and a timer ticking down from 60 minutes. At first there was silence as we looked at our packs, then the first voice: "Let's pool our information", someone stands up by the whiteboard, grasping a marker. Silence, it's not clear how this information should be parsed. One person starts reading theirs out word for word. This is not going to scale. Someone interrupts. Before long the whiteboard leader has been deposed and another is wielding the marker. Then another fights for control. The 60 minutes has run out, the puzzle is unsolved. Confused and drained we head off to the next test.
At the end of the day the group is split into two rooms, my room is given the good news and I go on to join the grad scheme.
Six months later I am shadowing a colleague who is running the "group test". I asked him if he'd ever seen a group complete the test? "Oh, it's not about that, this is an asshole test. You see who turns into an asshole under pressure and they don't make it to the next round".
👍16👎1
Jem
https://johnpublic.mataroa.blog/blog/the-asshole-test Some years back I applied to join IBM's grad scheme, there was a peculiar stage to the process I've not seen elsewhere. It was during the onsite day, where a batch of 20 or so applicants were put through…
Но у меня есть некоторые сомнения в этичности такого теста
#prog #rust #rustlib
В стандартной библиотеке есть тип std::ffi::CStr, предназначенный для представления невладеющих C-строк. Не смотря на то, что для определения этого типа не нужно ничего, чего не было бы в
Таким образом, хоть
В стандартной библиотеке есть тип std::ffi::CStr, предназначенный для представления невладеющих C-строк. Не смотря на то, что для определения этого типа не нужно ничего, чего не было бы в
core
, у этого типа есть методы, в сигнатурах которых фигурирует CString
, владеющая C-строка. CString
для работы требует доступа к динамическому выделению памяти, поэтому не может быть определён в core
.Таким образом, хоть
CStr
и полезен, из-за этих моментов CStr
определён в std
и потому не может быть использован в #![no_std]
программах. Это стало достаточно большой проблемой, чтобы появился крейт cstr_core, который по умолчанию зависит только от core
и подключает фичи, требующие alloc
, только по явному требованию. К счастью, в скором времени это станет ненужным, так как CStr переедет в core, а CString — в alloc.doc.rust-lang.org
CStr in std::ffi - Rust
Representation of a borrowed C string.
🔥4
Блог*
My programming proverbs: Short code is nice but not required. Ensure preconditions are met. No hungarian notation. Delegate allocations to caller. Narrow interfaces are preferable. Universal solution is not always the most efficient. Development is not only…
А помогите, пожалуйста, составить из всего этого броскую аббревиатуру, по типу SOLID
Forwarded from TOV_MULTIMASSO
Тайплевел фикс без генериков - это как марсовая палуба без корабля
🔥2🥰1
Forwarded from Маги шутят
Умер раввин, попал в рай, и спрашивает Бога:
— Господи, расскажи, как ты сотворил вселенную?
— Сингулярность, потом Большой Взрыв, экспоненциальное расширение... Физики ваши, в принципе, всё верно поняли.
— А как же ты сотворил всё живое?
— Ну как... Сперва абиогенез, потом мир РНК, дальше эволюция, клетки, потом многоклеточные организмы...
— А человека ты как сотворил, Господи?
— Слушай, это же ещё Дарвин описал. Сперва приматы, потом использование орудий, речь, прямохождение... Ты что, школу прогуливал?
— Господи, но ведь в Торе написано про семь дней, про сотворение человека из глины...
— А как бы ты сам, ребе, если бы оказался тогда на горе Синайской, объяснил бы безграмотным пастухам с бронзовыми мечами — про кварк-глюонную плазму, ДНК и естественный отбор?
©romeo969
— Господи, расскажи, как ты сотворил вселенную?
— Сингулярность, потом Большой Взрыв, экспоненциальное расширение... Физики ваши, в принципе, всё верно поняли.
— А как же ты сотворил всё живое?
— Ну как... Сперва абиогенез, потом мир РНК, дальше эволюция, клетки, потом многоклеточные организмы...
— А человека ты как сотворил, Господи?
— Слушай, это же ещё Дарвин описал. Сперва приматы, потом использование орудий, речь, прямохождение... Ты что, школу прогуливал?
— Господи, но ведь в Торе написано про семь дней, про сотворение человека из глины...
— А как бы ты сам, ребе, если бы оказался тогда на горе Синайской, объяснил бы безграмотным пастухам с бронзовыми мечами — про кварк-глюонную плазму, ДНК и естественный отбор?
©romeo969
❤22😁9🔥5👍1