-
Informed captain decision making in team
Informed captain decision making in team is another idea, from netlifx, to make everything in a company better, decentralized and so on and so forth. Fater, better harder stronger 😉 The generic idea is about “empowering teams and individuals” but here are the key points about this concept. Short story : Informed captain listens to everyone than is trusted to take the best decision to move forward. Informed Captain Responsibilities The captain owns the team’s mission, mandate, and metrics, and has full decision-making authority within their scope. Decision-Making Process Decisions are not made by consensus or committee votes. The captain has the final say after considering different viewpoints. Kinda like…
-
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…
-
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…
-
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…
-
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…
-
Estimating complexity vs time ….
Estimating complexity vs time… it cannot be done one without the other. First i will write why we should estimate complexity and then a very short point ’cause in the end…’. At least this might feel like it for some of us… Why should we estimate complexity in scrum Overall, estimating complexity versus time in Scrum promotes a deeper understanding of project requirements, enhances collaboration and communication within the team, and enables more accurate planning and risk management, ultimately contributing to the success of the project. Why estimating anything doesn`t really work I totally agree that splitting the task in smaller steps is the best thing we can do. Smaller,…
-
Effective Programming in Scala course by Coursera. Simple review.
Effective Programming in Scala course by Coursera is one of the official learning paths, described on https://www.scala-lang.org/, one can take to learn and dive into scala language. The main outcome is that You should definetly try it but there is always some “but”. Main things to do Lectures During the course You will watch short and very neat and straight down to the point lectures. This is always a given in every course. If i remember my long hours and the university i wonder how did i endure all that and why everything was so convoluted. Here we get everything short and sweet. Coursera time frame Somethimes it might feel…
-
GitLab dev to qa merge conflict with no resolution options
GitLab dev to qa merge conflict with no resolution options can occur on multiple different occasions. One of the main reasons You can run into is : You can still check it out locally. The merge request You will be able to see and resolve in intellij or command line, whatever You fancy. At least you will be able to pull and just use the things that causes the conflic from QA. Unfortunetly it might require You to work on some changes again. For more stability i would do it one branch after the other so gitlab will not have issues when we first merge everything from QA using qa…
-
Before:2023 google hack – get results before the AI crap
Before:2023 – add this before the search query and get results before the AI crappy era. In addition it should also render a lot more organic results without pesky ads. Since the algorith changes it feels like everything thing is either sponsored or just plain in ad. Call me a tin foil hat but the dead internet theory isn`t that dead anymore 😉 I miss the internet where people blogged and wrote their thoughts like on myspace. Too bad it didn`t work out, everything got monetized. Try to add “+blog” to hopefully find a personal blog of a person that really dug into your problem and has a nicely documented…
-
Vite findByText to get all the elements
Vite findByText method could help us a lot, especially while testing any kind of i18n and similar. Of course we should always get the proepr component / element but such methods are very usefull when developing and debugging, later we can scrape it all. Later, when we know it works as we expect it. FindByText method can be especially usefull when we have a big flat table that may or may not be dynamically populated. Works great as a function to watch the vaues beeing present in the dom so we can catch the proper moment. Altough we could use the debugger, i find that printing a lot of stuff…



























