Local timeline

Сегодня попалась в Instagram цитата:

Если бы ты вернулась и исправила все свои ошибки, ты стёрла бы саму себя».

С одной стороны, вроде как верно, ибо именно наш уникальный опыт (в котором ошибки составляют немаловажную часть) делает нас теми, кто мы есть. С другой — лично я считаю, что если бы мне удалось исправить две главные ошибки своей жизни, то как личность я остался бы тем же самым, но был бы куда довольным собой и жизнью в целом, как следствие, более спокойным и добрым к окружающим.

А вы как считаете, остались бы вы собой или наоборот, стёрли бы себя в результате исправления ошибок? #цитаты #сложные_вопросы #размышления

Дочитал «Алмазного огранщика» Майкла Роуча. Эта книга заставила на многое в своей жизни взглянуть иначе. Подробнее отписался у себя на сайте: https://4xpro.ru/art/2284/ #книги #саморазвитие

Replying to @Constantine174
@Constantine174 так же, как и в обычных соцсетях: первая кнопка (стрелка влево) под записью, если ты используешь обычный Web-интерфейс, а не сторонние клиенты.

Как тут писать комментарии?

Replying to a post that is no longer available
@13i в итоге остановился на VS Code из соображений «бесплатно, достаточно функционально и есть под Linux». Из недостатков — потребляет память гигабайтами и запускается сравнительно медленно.
Поэтому когда нужно что-то поправить по-быстрому в одном/двух файлах прямо на сервере, использую Geany.
Самое понятное объяснение Специальной теории относительности:
https://habr.com/ru/articles/798293/
#наука #физика
Replying to @JZX777

@JZX777 Хотелось бы в это верить… Но по-моему, этому тренду противостоит такое человеческое качество как нежелание напрягать мозги и разбираться, как всё это работает. Из-за этого большинство и предпочитает не свои сайты (или инстансы) делать, а сидеть на сверхцентрализованных площадках типа ВК, Telegram и YouTube. А стремиться к децентрализации будет разве что наиболее технически продвинутое меньшинство. (Кстати, в поисках такового я и пришёл в своё время в Fediverse, Yggdrasil, i2p и тому подобные места.) Кроме того, есть ещё одна составляющая: как это ни странно, на сверхцентрализованной площадке данные в бо́льшей безопасности. Там, по сути, есть только риск исчезновения самой площадки либо введения правила «неактивные аккаунты удаляются после N лет». Тогда как при самостоятельном хранении данных рисков куча: попасть в больницу и из-за этого не проплатить домен/хостинг вовремя, уронить сервер/базу данных своими руками, риск исчезновения конкретного хостера.

Поймал себя на том, что при поведении итогов дня учитываю только то, что было запланировано изначально. А то, что было сделано вне плана (а такого у меня обычно больше), просто как-то вытесняется и просто не вспоминается. Как результат — постоянное недовольство собой на тему «сделал слишком мало». И вроде как бороться, понятно: садиться и вечером вспоминать и выписывать всё, что было сделано. Но при моём образе жизни это не получается...
#самопознание #сложные_вопросы #личная_эффективность #планирование
Интересно, почему в Рунете так мало популярнен #Svelte? Только из-за того, что появился позже #React и #Vue, и большинству лень переучиваться? Или есть какие-то объективные недостатки? #вопросы
Оказывается, Яндекс.Браузере есть такая полезная возможность как краткий пересказ видео с тайм-кодами, который создаётся с помощью ML-алгоритмов. Очень полезно для просмотра всяких интервью и вебинаров, чтобы быстро выцепить главное (и вообще понять, имеет ли смысл смотреть это). Только почему-то не работает с видео из ВК.
#личная_эффективность
Replying to @4X_Pro

@4X_Pro @shuro думаю в течение ближайших лет 10-20 с чередой кризисов и утратой доверия к медиакартелям и big tech олигархам. Тренд на децентрализацию интернета уже в прошлом десятилетии наметился и расширяется.

Cargo cult programming patterns

In the post about software engineers’ burnout I briefly mentioned cargo cult programming patterns. Recently I got an insipation to introduce one notable example of them.

Callbacks. Normally callbacks serve for “lazy” or asynchronous execution. When precomputing some data has high pure computation costs, may trigger unnecessary invocation of garbage collector on big chunk of data. When part of computation is outsourced to other components/systems which live their life, and can parameterize computation with their own data (a very notable example is the client-server interaction when server can use internally stored data along with client’s data, “agent” callbacks). I.e. when computation triggers long pause at some moment. So asynchronous/“lazy” execution of code can be explained as doing a big working task X (executed by both agents Alice and Bob) in two separate smaller tasks: one for Y thing, one for Z thing, Z depends on Y, Y is executed by agent Bob, Z is executed by agent Alice. So executing “X(Alice, Bob)” is turned into executing “Y(Bob, () -> Notify(Alice, “can-do”, Z))”. And thus while Bob executes Y, Alice can do other things without waiting for Bob. When Bob finishes his task, he notifies Alice that she can do task Z. And thus Alice and Bob do their work in more efficient way, than if she and Bob executed the task X together.

However, I saw misuse of callbacks in code several times. This was in a code like this:

const funcX = () -> {
  const something = () -> {
    return anObject;
  };

  return funcY("somedata", something());
};

Instead of more pure and reasonable code:

const funcX = () -> {
  return funcY("somedata", anObject);
};

The first pattern remained stable in a project, that I worked for. It was even forced on code reviews for some time (until I took a part as individual contributor to a project).

The first chunk of code is a clear example of cargo cult pattern: when programming tool is used not for which engineering problems it solves. But because it seems “cool” on automatism, when original meaning of it is saturated and then new “meaning” is reinforced by some “cool guy” until some point. However, unreasonable complications (which are called “cargo cult patterns”) lead to loosing a stability of project’s coding patterns and then features, leading to architectural collapses and yard of bugs.

#blog #programming #work

Burnout

I think, the main problem of burnout of software engineers lays in keeping the same simplistic behavior patterns for several years. Be them either simple obedience or too authoritarian style of critics and proposals. Autistic engineers especially struggle from these patterns (besides just intransparent culture and communications which cannot be handled individually) leading them either to learned improvement or drowning into poverty sink.

I think, best behavior lines lay somewhere in the middle. You can’t implement a solution that has a good engineering value (correctness, simplicity, flexibility for addons etc.) without forcing an order of concerns. As most problems with “endless” bugs and spaghetti code lay in that people usually can’t tell clearly what they want from software product. Either because of their limited vision with maximalist desires, or because they have too low trust for engineers (however this can be solved with isomorphic abstract entities: ex. substitute “an s-coin” with “a fun gem” but structure remains the same). So my position for this is to talk until I get necessary preconditions and postconditions for implementation (I’m not of type of a “sonic sports player”, leave this for masc phenotypical people). That’s how I once implemented one feature for which no ready tools were present, in one iteration without bugs meeting pretty short deadlines (it was 3-4 days before X-Mas).

However, you can’t simply enforce your suggestions and questions. Otherwise, you will be claimed as “toxic authoritarian guy”. People needs a feedback. A positive feedback provides them a more sense of value of their actions. A negative feedback does the opposite. Negative feedback should not break their hard incentives (this is hard to know for ASD-ie from the first place, though I follow a “socialized autist” path with periodic informal meets). Otherwise, what’s called as “loosing trust” happens. This is like constantly DDoS-ing some service in wish that it removes some noisy popups from their site. But it bans your IP instead.

#blog #work

  1. Work should be ecologic for humans as creative and explorative beings which live as long as they essentially can.

  2. So the best code which solves a given (real or imaginary/perspective) problem, is no written code. If this solution for given problem exists.

  3. Periodicity of multiple patterns/modes is a mitigation of negative effects of the Goodhart’s law. “Work hard” and “follow easy path” are also patterns with limits.

  4. So write less boilerplate “monkey” code, write more business-related and engineering code which provides you a recovery in future pauses.

#blog #programming #softwareengineering #work

Making bots with PromptQL: code embeddings

Recently I wrote another article on making bots by prompt engineering with PromptQL. I explained how expansion and execution of code embeddings brings full power to prompt templates. Here it is:

https://medium.com/@jzx777/making-bots-with-promptql-code-embeddings-5b21efd52c51

For purpose of examples, I ran bot with the Openhermes Mistral 2.5B model and the llama.cpp server.

Openhermes model: https://huggingface.co/TheBloke/OpenHermes-2.5-Mistral-7B-GGUF

llama.cpp server: https://github.com/ggerganov/llama.cpp/tree/master/examples/server

#PromptQL #promptengineering #prompts #ai #golang #go #programming #opensource #library #programminglanguage #llm #LocalLLM #openhermes #llamacpp #cottagesoftware #craftprogramming #indietech

PromptQL v6.x

I released the PromptQL v6.x. Now PromptQL composition capabilities can be implemented fully from PromptQL side! It introduces execution of embedded PromptQL code. You can play with this new feature with these examples:

https://gitlab.com/jbyte777/prompt-ql/-/tree/release-6.x/tests/code-embedding/execute-embedding

The 6.x version can be installed following instructions in this branch:

https://gitlab.com/jbyte777/prompt-ql/-/tree/release-6.x

#PromptQL #promptengineering #prompts #golang #go #programming #opensource #library #programminglanguage #cottagesoftware #craftprogramming #llm #LocalLLM

Replying to a post that is no longer available

@halva thanks to Thinkpad from 2013. It actually forces to think about clean code more as hot reloading is a pain in ass. Powerful hardware just gives an easier reward path in which hot reloading runs fast. And this mostly makes a need to write efficient and understandable code as obsolete thing, unfortunately.

Replying to a post that is no longer available
@13i А что мешает нагенерировать столько подписей, сколько потребуется? Аналогично тому, как сейчас можно зарегистрировать множество почтовых ящиков. Или предполагается, что подпись будет только квалифицированная и выдаваться государством? Тогда это конец Интернет-анонимности будет...
Replying to a post that is no longer available
@13i в то, что голосовое управление вытеснит клавиатуру, не верю. По крайней мере, пока живы поколения тех, кто за компьютер сел в 1990-х и начале 2000-х.
Replying to a post that is no longer available
@tennoseremel Из всего open source, что я перепробовал, больше всего понравилась Hestia CP. Пользуюсь с прошлого лета, проблем не наблюдалось.
Load older posts