• HOME
  • IT playlist
  • IT articles
  • Books review
  • Linkedin
  • About & Contact
  • HOME
  • IT playlist
  • IT articles
  • Books review
  • Linkedin
  • About & Contact
  • HOME
  • IT playlist
  • IT articles
  • Books review
  • Linkedin
  • About & Contact
  • how to test vue js teleport
    Mini essays,  Code,  vue js

    How to test Vue JS teleport and portal component

    /

    We all had this teleport issue where vue js component just renders beyond the DOM in the shadow realm and we ned to look for it all around. May or may not have an id that is more or less random. Very problematic. This is a short pos on how to use the options to test vue js teleport and portal features. How test teleport in vue js ? Example code below to enable testing What stubbing of teleport does ? This works rather for integration test when we need to check components made from other components. Otherwise we can just run unit tests but we still need to check…

    read more
    Piotr Kowalski Comments Off on How to test Vue JS teleport and portal component

    You May Also Like

    Dead horse meaning

    September 28, 2025
    How to reduce github copilot`s premium requests usage and maximize efficiency

    How to reduce github copilot`s premium requests usage and maximize efficiency

    January 26, 2026
    Deeplearning.ai text-embedding model error.

    Deeplearning.ai text-embedding model error. Change to text-embedding-005

    January 16, 2026
  • WebExtension Manifest.json permissions options list
    Code,  Data,  Mini essays

    WebExtension Manifest.json permissions options list

    /

    WebExtension Manifest.json permissions options list is quite long. Let us see what we can access with our plugin for FF. This hsould inspire You to write Your own for quality of life and ease of doing things… or avoid them all together. For avoidance i would highly recommend to look into prper ad block filter and creating / adding your own. Rule : Do not scare users Remember when Your app requires and asks for access. You either explain to user in every detail what for and go with bare minimum. Just as a rule of thumb of not beeing accused of getting and selling info. It is always scary…

    read more
    Piotr Kowalski Comments Off on WebExtension Manifest.json permissions options list

    You May Also Like

    Vitest not rendering vue component

    Vitest not rendering vue component

    May 14, 2024
    Typescript default parameters

    Typescript default parameters in constructor for GA

    May 9, 2024
    no access, access denied, monitor, computer, protection, office, internet, marketing, technology, advertisement, screen, workplace, no access, access denied, access denied, access denied, access denied, access denied

    GIT token access issue – use special API url !

    October 13, 2025
  • Typescript perfect sync - 3 tricks to keep it tight
    Mini essays,  Code

    Typescript perfect sync – 3 tricks to keep it tight

    /

    Typescript perfect sync can be kept using couple of strategies. Most of us start with simple union types, like this: const ScenarioStatus = 'success' | 'fail' | 'error' | 'other'; So far so good. That works great… until you need to iterate over those values for rendering, validation, or other logic. And now You are stuck with two separate definitions: one array for logic, and one string union for the type. Sooner or later, they’ll fall out of sync and provide headaches to people. You could go for en enum…. Below behold the three TypeScript tricks to make your code tight, hard to break, cleaner, safer, DRYer and resistant to…

    read more
    Piotr Kowalski Comments Off on Typescript perfect sync – 3 tricks to keep it tight

    You May Also Like

    Kaizen in ai agent plan writing

    Kaizen in ai agent plan writing

    May 8, 2026
    What is heuristics ? Key Definitions and 10 biased examples people use without any data

    What is heuristics ? Key Definitions and 10 biased examples people use without any data

    June 1, 2026
    Greek gods in software development

    Greek gods in software development

    June 23, 2026
  • Lauers Law why less code is better
    Mini essays

    Lauers Law – why less code is better

    /

    Lauers Law – why less code is better as a very solid idea. Just remind Yourself about all those DTOs that could be a simpler one with a mapper or a dedicated if-else-tree somewhere around data transformation. It challenges developers to prioritize efficiency and elegance in their coding practices, ultimately leading to cleaner, easier to understand and more maintainable systems. The Essence of Lauer’s Law At its core, Lauer’s Law emphasizes that reducing the amount of code can lead to better outcomes. The principle suggests that if developers had twice as much time, they could create a system with half the code while maintaining or improving its quality. The idea…

    read more
    Piotr Kowalski Comments Off on Lauers Law – why less code is better

    You May Also Like

    Effective Programming in Scala Coursera

    Effective Programming in Scala course by Coursera. Simple review.

    May 1, 2024
    Improve your AI instruction on the fly ...

    Improve your AI instruction on the fly …

    July 7, 2026
    First principles methodology in AI by Aristotle

    First principles methodology in AI by Aristotle – 5 step framework

    June 1, 2026
  • graphql approach to api
    Mini essays

    GraphQL approach to APIs

    /

    GraphQL is a query language and runtime for APIs that has transformed the way developers approach data retrieval and manipulation. Developed by Facebook in 2012 and open-sourced in 2015, GraphQL offers a more efficient and flexible alternative to traditional REST APIs. Its core principle is to allow clients to request precisely the data they need, no more and no less, which significantly reduces over-fetching and under-fetching of information. GraphQL provides a single endpoint where clients can send complex queries to fetch data from multiple sources in a single API call. One of its key strengths lies in its use of a strongly-typed schema that defines the structure of available data,…

    read more
    Piotr Kowalski Comments Off on GraphQL approach to APIs

    You May Also Like

    Universal Principles of Design Third Edition - book review (4)

    Universal Principles of Design: Third Edition

    January 29, 2025
    Kaizen in ai agent plan writing

    Kaizen in ai agent plan writing

    May 8, 2026

    RICO prompt model

    November 14, 2025
  • How to write code part 1
    Code

    How to write code – part 1

    /

    How to write code ? Writing Code for Future Comprehension. How to write code In the “fast-paced” world of software development is a very tricky question… The ability to “write code so in one year you or anyone else will be able to easily understand what it is about” can be a crucial skill. This practice not only enhances the longevity of your projects but also significantly improves team collaboration and code maintenance. Gives a lot less headaches also. Let’s explore why this approach is essential and how you can implement it in your coding practices. As always.. take a grain of salt with a dose of common sense… The…

    read more
    Piotr Kowalski Comments Off on How to write code – part 1

    You May Also Like

    how to set empty array in dijon

    How to set empty array in dijon using scala

    April 1, 2024

    Law of Demeter in programming

    December 3, 2025
    Structure for instructions, agents and skills

    Structure for instructions, agents and skills

    January 28, 2026
  • Computed vs ref properties in Vue
    Code

    Computed vs ref properties in Vue

    /

    Computed vs ref properties in Vue are used to manage reactive data. There are very similar but they serve different purposes and have distinct characteristics. Here’s a detailed comparison of computed and ref. Ref To obtain a reference using Composition API, You need to provide a ref attribute with a name that matches the template ref attribute’s value: <template> <input ref=”input” /> </template>. You will be able to use the methods of the component directly in the script part of the code. Computed In-template expressions / references are very convenient, but they are meant for simple operations. Front should usually READ data, backend should do computing. Too much logic in…

    read more
    Piotr Kowalski 0 Comments

    You May Also Like

    clean code commandments

    Another clean code bullet points to remember

    June 12, 2026
    Productive struggle vs AI slop

    Productive struggle vs AI slop

    January 8, 2026
    !! operator double negation in typecsript and vue components

    !! operator in vue components

    April 22, 2024
  • Vitest not rendering vue component
    Code

    Vitest not rendering vue component

    /

    Vitest not rendering vue component might be many, hugely depends on the config but what i discovered is that…. You have to UNMOUNT the component at the end of the test. Otherwise mounting it again in the next test will just not render it, like it uses some old obsolete version of the object. Best part is that the pinia store is changing as it should. The component is not rendering the html. Code example First test will always pass, second one will pass when running it alone, solo. When running both the second one will fail due to bad managment of components. I would imagine that mounting will always…

    read more
    Piotr Kowalski 0 Comments

    You May Also Like

    Literate programming by Donald Knuth

    Literate programming by Donald Knuth

    June 6, 2024

    MarkItDown: convert 20+ file types to markdown for AI & LLM Ingestion

    April 27, 2026
    Data contracts. Building universal data access proxy api

    Data contracts. Building universal data access proxy api

    December 9, 2025
  • Typescript default parameters
    Code

    Typescript default parameters in constructor for GA

    /

    Typescript default parameters are the same as in scala. While working on multple google analytics projects it is good to now we can hardcode part of the object and then just use the simple, single object in a constructor, without having to pass the default values. However !! Typescript default parameters should be the last on the parameter list in constructor That said the not optional, required and demanded parameters need to be first. Otherwise intellij or what ever other ide You use might complain and will NOT TELL YOU THAT. I love that small little things You assume would be obvious but then You spend a lot of time…

    read more
    Piotr Kowalski 0 Comments

    You May Also Like

    how to set empty array in dijon

    How to set empty array in dijon using scala

    April 1, 2024
    estimation in sprints are ludicrous

    Estimations in sprints are ludicrous ?

    May 29, 2025
    how to test vue js teleport

    How to test Vue JS teleport and portal component

    June 12, 2026
  • script setup lang ts
    Code

    Script setup Vue 3 – ❮Script lang=”ts” setup❯

    /

    Script setup <Script lang=”ts” setup> is something i really appreciate after migrating from vue 2. It is a part of the new Script Setup feature introduced in Vue 3. It replaces the traditional <script> block and provides a more concise and focused way to write components. The purpose of <script setup> is to simplify component code by removing unnecessary boilerplate and reducing redundancy. What Does It Do? The code inside <script setup> is compiled as the content of the component’s setup() function. You can remember it from vue 2 for both, composition and options api.Unlike the normal <script> block, which executed only once when the component is first imported, code…

    read more
    Piotr Kowalski 0 Comments

    You May Also Like

    Best Phrases to Test LLM Security Bypass in Red Teaming

    Best Phrases to Test LLM Security Bypass in Red Teaming – jailbreak, overrides, etc

    July 14, 2026
    how to set empty array in dijon

    How to set empty array in dijon using scala

    April 1, 2024
    !! operator double negation in typecsript and vue components

    !! operator in vue components

    April 22, 2024
 Older Posts

Putting back common to common sense.

agile ai architecture best practices clean code code quality coding complexity copilot cost data data engineering decision making design developer tools documentation engineer estimation github GitHub Copilot instructions JavaScript learning LLM machine learning management mcp model performance planning productivity prompt prompt engineering psychology rules scrum security software design software engineering team culture testing tokens typescript vue work

  • AI
  • Books
  • Code
  • Data
  • Mini essays
  • Psychology
  • Tech
  • Uncategorized
  • vue js
  • Youtube
Piotr Kowalski 2026 ©
  • HOME
  • IT playlist
  • IT articles
  • <