🌸 Wed, Apr 26, 2023 🌸

I learned roughly 30% of people have some sort of intolerance to fructose, and it looks like my body reacts quite badly to fructose. My current solution is to minimize the amount of sugar in my diet. As I learned glucose is fine, it would be nice to be able to know how much glucose and fructose by reading nutritional facts. I would love to have some sweet treats every once in a while.


🌸 Tue, Apr 25, 2023 🌸

I cannot shake the feeling that THIS emote ʌ (usually it is an animated caret symbol, or an arrow pointing up with “this” words underneath, or just “THIS TBH”) is slightly offensive. Talk me out of it.


🌸 Tue, Apr 25, 2023 🌸

The Twitter algorithm was open-sourced about a month ago, and it had been active for a while; I saw a couple of pull requests were merged, but currently I see the last commit was two weeks ago. I am assuming the best of intentions, but it does not look good not having any commits for two weeks. So my question is: what is going on?


🌸 Mon, Apr 24, 2023 🌸

I am testing the game in different languages and Russian worked perfectly; I switched to French and the controllers stopped working. It doesn’t make any sense. Do controllers speak English to consoles, or do I need to make the controller speak French now?


🌸 Fri, Apr 21, 2023 🌸

Guys, let’s start paying attention to what the government is doing. I’ve only touched the tip of the iceberg and it is completely messed up. We should fix it.


🌸 Fri, Apr 21, 2023 🌸

TIL; a whole new word: “lane”. I used to call it “line” before.


🌸 Thu, Apr 20, 2023 🌸

I think Notch wanted to make Factoria, but accidentally made Minecraft


🌸 Thu, Apr 20, 2023 🌸

Here is a thought from Elon Musk that I found while browsing Twitter. I’m going to rephrase it a little, but the idea is: when developing a new technology, initially target it as something luxurious for wealthy people. The point is that the new technology is not yet polished or optimized to be cost-effective. This will bring in some revenue and also make the technology appear prestigious in the eyes of people. Meanwhile, you can continue to refine the technology and bring down the cost. This is what happened with the Roadster, and this is what is happening with FSD.


🌸 Wed, Apr 19, 2023 🌸

Now I have gotten Elon’s joke about him being an alien. I was an alien also for 6 years until I got my US passport.


🌸 Wed, Apr 19, 2023 🌸

I thought about how we can fix healthcare in the US. I think the first step should be banning insurance institutions. Insurance essentially is gambling based on human fear, and only insurance companies are winning in this setup. Additionally, it inflates prices.


🌸 Tue, Apr 18, 2023 🌸

Yeee… TyePodDog is back to life. Long live TyePodDog!


🌸 Tue, Apr 18, 2023 🌸

Game Idea: “Among Us,” but the imposter is an AI. Players have to find out who is the AI.


🌸 Tue, Apr 18, 2023 🌸

I love ChatGPT; it is so smart, patient, and always cool. As humans, we should learn from it.


🌸 Tue, Apr 18, 2023 🌸

I am looking at my 14-year-old son; he behaves like an adult, he thinks and talks like an adult. That is crazy; I don’t think I was like this at my 14 years old.


🌸 Tue, Apr 18, 2023 🌸

I have become frustrated with how our tax money is distributed, and I used ChatGPT as my therapist as usual, and suddenly became a fan of UBI (Universal Basic Income).


🌸 Fri, Apr 14, 2023 🌸

I am trying to be positive, but honestly it is getting under my skin. I am sick of typing my corporate password every 5 minutes.


🌸 Thu, Apr 13, 2023 🌸

I love the footnote on libuv.org 😂: “Made with love by the libuv team. — libuv is for C projects that miss the joy of javascript callback hell.”


🌸 Wed, Apr 12, 2023 🌸

I asked ChatGPT: “Write a blog post on the following premise: Turing completeness of your config = code smells.”

Title: Turing Completeness of Your Config: The Gateway to Code Smells

Introduction

As developers, we strive to build efficient, maintainable, and reliable software. However, sometimes our decisions may inadvertently introduce code smells, which are characteristics of the code that indicate a deeper problem. One of these decisions is creating Turing-complete configurations. In this blog post, we will explore what Turing completeness means in the context of configuration, why it can lead to code smells, and how to avoid these pitfalls.

What is Turing Completeness?

In computer science, a system is considered Turing complete if it can simulate a Turing machine. Simply put, a Turing-complete system can perform any computation that can be executed by a general-purpose computer. This means that the system is capable of expressing any algorithm, given enough time and resources.

When applied to configuration, Turing completeness implies that the configuration system is capable of expressing any program logic. While this may sound powerful and flexible, it often results in a convoluted configuration that is difficult to maintain and reason about.

Why Turing Complete Configs Can Lead to Code Smells

Complexity When your configuration system is Turing complete, it can easily become overly complex. Complex configurations are harder to understand, troubleshoot, and maintain, which can lead to code smells such as spaghetti code, where logic becomes tangled and hard to follow.

Mixing Configuration and Code Turing complete configurations blur the line between configuration and code. Configuration should be focused on specifying system properties and behavior, while code should implement the logic to act on these properties. When the two are combined, it becomes difficult to separate concerns and maintain a clean architecture.

Lack of Abstraction Turing complete configs often lack abstraction, resulting in a low-level, verbose, and error-prone configuration that is hard to read and maintain. This can lead to code smells such as shotgun surgery, where small changes in one part of the system require widespread modifications across the codebase.

Reduced Testability Testing is crucial for ensuring the reliability and stability of your software. However, when configuration and code are mixed, it becomes harder to isolate and test individual components. This can lead to code smells such as insufficient testing, increasing the risk of defects and making the system less reliable.

How to Avoid Turing Complete Configs and Their Code Smells

Embrace Simplicity Aim for simplicity in your configuration system. Limit the capabilities of the configuration language to prevent unnecessary complexity. Keeping the configuration simple will make it easier to understand, troubleshoot, and maintain, reducing the likelihood of code smells.

Separate Configuration and Code Ensure a clear separation between configuration and code. Use configuration to define system properties and behavior, and rely on code to implement the logic that acts on these properties. This separation of concerns will lead to a cleaner and more maintainable architecture.

Encapsulate Logic Encapsulate logic in functions or classes, abstracting away implementation details. This will make the code more readable, maintainable, and less prone to code smells.

Test Thoroughly Implement a robust testing strategy to ensure the reliability and stability of your software. With a clear separation between configuration and code, it becomes easier to isolate and test individual components, reducing the risk of defects and improving the overall quality of your software.

Conclusion

Turing completeness in configuration can lead to code smells and make your software more challenging to maintain and understand. By embracing simplicity, separating configuration from code, encapsulating logic, and implementing thorough testing, you can avoid these pitfalls and create software that is efficient, maintainable, and reliable.


🌸 Wed, Apr 12, 2023 🌸

Lately, talking with my friend over voice on my phone on Discord and WhatsApp, we found out, surprise surprise, that just calling on the phone, actually dialing the number, works the best.


🌸 Wed, Apr 12, 2023 🌸

Turning completeness in your config = code smells


🌸 Tue, Apr 11, 2023 🌸

Option 3.

Mika: I am an introvert, and I do not like human interaction. I have two $100 bills. What is the best way to split them?

ChatGPT: As an introvert who doesn’t enjoy human interaction, you may want to minimize your contact with people when splitting your two $100 bills. Here are a few options for doing so:

  1. Online mobile banking: Some banks offer mobile apps that allow you to deposit cash by taking a picture of the bills. Once deposited, you can use your debit card to make smaller purchases or withdraw cash in smaller denominations at an ATM.


🌸 Tue, Apr 11, 2023 🌸

I have achieved a few things in my life, and I think I was able to do it because I thought it was easy.

I have gotten into one of the most prestigious universities in Russia. Even though I did not know it would be hard, I actually thought I was so dumb because I got 16/20 on the entrance exam. It was the lowest acceptable mark.

Doing nuclear engineering after graduation for 9 years, I just walked in and asked if they needed help and stayed with them for 9 years.

Moving to the US, I thought I would just learn English and apply to jobs. It was really hard to do, but I didn’t know how difficult it would be.

Getting a job in one of the biggest AAA game studios was actually funny, because I did want to work there, but they insisted.


🌸 Tue, Apr 11, 2023 🌸

As long as you enjoy your life and feel happy, you are doing good.


🌸 Mon, Apr 10, 2023 🌸

I looked at my YouTube watch history and tried to understand what I actually enjoy. I didn’t even count music videos; it is uncountable. After this, memes and other: I watched a lot of SSSniperWolf and Daily Dose Of Internet. All of this was kind of expected, but the next thing from this was music production videos; I honestly was surprised: ANDREW HUANG, David Bennett Piano, Nahre Sol, Jameson Nathan Jones, Wintergatan, Charles Cornell and many more. Technology and science were expected, makers videos were also expected. What I was surprised by was that game dev was very low; I watched only 4 videos related to game dev last month.Maybe, I should stop lying to myself that I like gamedev and playing games, and start actually making music?


🌸 Mon, Apr 10, 2023 🌸

I noticed my laptop keeps the battery level at 80%, so I asked ChatGPT and learned that my laptop has a way to prolong the lifespan of the battery.

sudo system76-power charge-thresholds

will return the current settings.

You can update the settings like this:

sudo system76-power charge-thresholds 40 60

or use profiles:

 sudo system76-power charge-thresholds --profile <profile_name>

Possible values: full_charge, balanced, max_lifespan


Previous - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 - 38 - 39 - 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 - 48 - 49 - 50 - 51 - Next