left-wing JS vs. right-wing TS

I think that JavaScript was implemented and currently is used and supported by people with Left-wing political outlook, by providing a way to create a software program using freedom, and having willingness to do anything in (coding) life deciding by human(developer) personally.

And TypeScript is implemented by Right-wing political opinionated developers, who suggest that something/someone has to decide what something/someone has to do or how to behave.

Since 2006, when I touched PHP, Java, I really don’t like strictly typing programming languages (these days I see lot of C#/.NET and I’m 🤢 ). But while ago, at my first steps in software programming “I also was a mess” when was working with unpredictable JavaScript. Nevertheless, I value more my freedom than a strictly typed code. I ACCEPT some amount of mistakes (because JavaScript is not as good in error-handling as TypeScript) and I can live with it to troubleshoot and find out the reason.

#philosophy #politics #programming

Continue reading “left-wing JS vs. right-wing TS”

Instagram and TikTok are dooming humanity

Instagram and TikTok are created to zombie people’s minds.

I got to such conclusion after realising that ONLY Instagram and TikTok doesn’t have a clear setting to disable Video Auto Play feature. This article is another way to say why I hate Video Auto-Play.

Those platforms are designed SPECIFICALLY for infinite video watching, as if we humans are already doomed and nothing else we have to do in our life…

The reason I wanted to work as a programmer in Software Development in the first place was because I wanted to do something efficient, useful, and helpful for others. But sometimes the platforms and services which I use as a consumer are “killing” my motivation to even think about software.

How Product Owners and regular developers from Instagram and TikTok teams discuss requirements?

  • PO: I got new feature how to drive people crazy
  • PO: I know how to force other people infinitely watching our customers’s great videos.
  • PO: I know how to cause a Instagram/TikTok addiction from people who don’t have self esteem and other things to do.

This way? Then I hate such Software and Product development.

Continue reading “Instagram and TikTok are dooming humanity”

Why AI isn’t yet better than human programmer?

In this article I provide basic examples of how silly Artificial Intelligence (AI) can be.

TL;DR I think AI is not dangerous yet, it’s simply a “baby” in terms of technological evolution. But no doubts it speeds up software development, although it requires human programmer to get ready.

Comparing different AI solutions I listed my examples, thoughts and outcomes, and as of Jan 2024 here is the list of AI tools I tried:

  • GitHub CoPilot (my 2020-2021 early Technical Preview test/thoughts)
    • GitHub CoPilot Chat (2023-2024 state – for individual and organisations)
  • ChatGPT (based on GPT v2, v3, v3.5, v4)
  • Limited usage of GPT-4 AI based Chat on Mozilla Development Network (MDN)
  • Bard AI (Gemini, Gemini PRO)
  • Microsoft CoPilot powered by DALL-E 3

Sure thing, in a few months this article will be outdated, and AI may evolve much faster as we all expect.

Continue reading “Why AI isn’t yet better than human programmer?”

Difference in the decimal places after AVG()

In many software development concepts I know basic, in some tools I know more than basic, and sure thing I may not know some very edge cases in some tools, which I’ve never faced. But some basics are expected to be always consistent. I am very surprised when my knowledge system breaks, because some basics are broken or inconsistent.

This article is about an edge case I realised during executing an SQL task on HackerRank platform, I got kinda surprised how different Database servers give me different results. In particular I got different result after AVG() when I have same table structure and same data values in columns.

Continue reading “Difference in the decimal places after AVG()”

How to learn TypeScript in 2023

Paper books about JavaScript and TypeScript? No, thank you.

I know there are many people who would disagree, and I can partially agree it’s my personal bad… but time time ago I read last paper book about software development. It was very disappointing and not convenient, because I while reading I also wanted to try code.

I think, that if so much public information is available online, for free I don’t want to waste time reading paper books. Instead, I was, and is apologetic towards learning ANYTHING from the very root source code. If God released his source code to GitHub I would rather look into that code, instead of talking with him 🙂 #aJoke

Continue reading “How to learn TypeScript in 2023”

The stupidest way to fix “Locked Notes is blank after unlock on Mac Ventura”

The problem with Apple Mac OS is that sometimes when a new release happens then at least one stupid issue exists and you search over the Internet for reasonable solutions, but mostly find Apple Support suggesting silly or non-helpful things. I h@te that.

It’s not the first time I have MacOS issues in “stuck” mode. Time ago my iTunes music was “stuck” between iPod, iPhone and MacBook. I couldn’t fix it via proper syncing but instead had to manually transfer/upload files via Wi-Fi, which was an extremely stupid but helpful way.

Then I had Mac OS Notes “stuck” with iCloud syncing for a few weeks. That was the first time I faced a non-intuitive “Delete from iPhone” setting which caused me to stumble upon whether to delete also from iCloud or not (coz it live sync).

And here I am, 2023, Mac OS Ventura. This new version goes with support of two ***ing passwords for Locked notes (login password and note password). I REALLY LOVED this Locked Notes feature BEFORE, when it was only ONE password. As developer I realize what security is and what consequences it could be if it’s broken, But c’mon – this NOT ONLY stupid approach but also BAD implementation (say as a consumer).

PROBLEM WAS: ALL MY LOCKED NOTES WENT into Recently Deleted, and I could NOT UNLOCK or VIEW them AT ALL.

Continue reading “The stupidest way to fix “Locked Notes is blank after unlock on Mac Ventura””

2 things I don’t like in Web Development the most

This is a short article, but with a lot of history behind it, and a lot of emotions I had in my past being a Web Software Developer and also a consumer of different web pages, platforms, sites, etc.

  1. Since I remember myself in web development, 2007-2008 I always hated hover event 🙂 Yes, that is such an irritating feature of the web, that I can’t express my feelings in text more than “hate” word. Especially when it’s used wrong or too much.
  2. When people, developers, product owners, designers, whomever else change usage of hover event back and forth, and do not consider User Experience, user feeling, user “love” to what already is on application.

I really like di.fm as a web platform to listen to electronic music, and I also have a paid account to avoid ads. And I remember that Web developers had a few design changes in the past. I significantly remember when they have a change in the development team or in the UX/Design team. Because in MOST cases website is very handy and useful for me. Plus mobile app also great.

DISCLAIMER: I am NOT UX designer or any kind of such specialist, I am just UI Developer, who likes great websites, and knows something about UX best practices and Usability paradigms.

But, let’s dive into details over example tracing design state and change of di.fm.

Continue reading “2 things I don’t like in Web Development the most”

How to install devDependencies in NODE_ENV=production?

Recently, I’ve faced with interesting research task at work related to AzureDevOps as a CI platform and NodeJS/npm as targeted resource. Our pipeline yaml file was configured to run npm command with deprecated flag – npm ci --dev and as turned out for npm@<7 it’s suggested to use --also=dev and for npm@>7 is suggested to use --include=dev. But when I tried different variants, to be sure if it works at all or not I saw no difference.

I always knew that npm ci designed to run specifically on CI (at least due to the fact that node_modules is being deleted and package-lock.json file recreated). But I didn’t know how environmental variable NODE_ENV value (either not set, development or production) actually influences work of npm. Reading npm documentation, Stackoverflow questions and answers it’s not always clear how it works. Yes, I know, that npm ci under the hood is actually npm install (alias npm i), but still both commands give us different behavior.

By default I always use npm ci (as it’s suggested to run on CI) on my CI instances (Jenkins, CircleCI, Heroku) so it always installed devDependencies for me and I never intended to include or omit. Work use case got me thinking more, so I decided to research very detailed.

Continue reading “How to install devDependencies in NODE_ENV=production?”