Why I am coding?

I started coding when I was 8 years old, and I am 46 today. This implies I've got 38 years of software development experience, roughly 25 as a professional - And to be honest with you, the answer to the above question is actually "drugs". But before you dismiss this article, let me elaborate on what exactly I mean.

According to research into the human brain, there exists several altered states of consciousness. For instance, lucid dreaming, once thought to be a superstitious belief in the equivalent of unicorns and fairies, have been proven to exist over the last 2 decades. Similar experiments have proven the existence of "flow". Flow again, is almost the exact same state of mind humans get as they are micro dosing on LSD. For the record, don't micro dose on LSD - It's much smarter to do as I do ... ;)

How Tackle.io Monitors Performance In Serverless

Serverless technology is increasingly being adopted by organizations. According to The New Stack’s analysis of a community survey on GitHub, 75% of users plan to build a greenfield serverless application over the next year. Tackle.io, which has built a platform that helps independent software vendors (ISVs) get their software listed in the cloud marketplaces quickly, is one company that has adopted a serverless architecture. While serverless helps developers to quickly create and scale new applications and services, the inherent lack of visibility into the underlying architecture and how the performance of that architecture impacts users is a significant challenge.

In this Q&A interview with Tackle.io founder and Chief Technology Officer Dillon Woods, we talk about how they have overcome the challenge of monitoring a 100% serverless stack. We also discuss what it’s like building software for other software engineers and how this impacts their expectations, as well as why he believes code monitoring will in a few years become just as important as infrastructure monitoring in the DevOps pipeline.

10 Steps to Optimizing DevOps and Security

Failure to implement sufficient information security measures in today’s world could lead to severe consequences. Information security needs to be an inseparable part of the continuous delivery pipeline, which is why the concept of DevSecOps has become more and more popular.

DevOps may offer a way to remain agile and operate at immense efficiency, but that heightened efficiency should never come at the cost of security. To optimize DevOps and security as an integrated part of the pipeline, here are the 10 steps you can take.

How Do You Catch More Bugs In Your End-To-End Tests?

How much is it worth to catch more bugs early in your product release process? Depending on where you are in your release process, you might be writing unit or systems tests. But, you need to run end-to-end tests to prove behavior, and quality engineers require a high degree of skill to write end-to-end tests successfully.

What would you say if a single validation engine could help you ensure data integrity, functional integrity, and graphical integrity in your web and mobile applications? And, as a result, catch more bugs earlier in your release process?

Executing Stringified Source Code in Java 8 and Later

Executing stringified source code in Java is hard to realize with only jdk core libraries but, if we are going to use the CodeExecutor of Burningwave Core, the task will become simple and we can accomplish it in one of three different ways that we can choose:

  • through BodySourceGenerator
  • through a property located in Burningwave configuration file
  • through a property located in a custom Properties file

Executing Code With BodySourceGenerator

For the first way, we must create a ExecuteConfig by using the within static method forBodySourceGenerator to which must be passed the BodySourceGenerator that contains the source code with the parameters used within: after that we must pass the created configuration to the execute method of CodeExecutor as shown below:

Getting Started With Chrome and Firefox Developer Tools

Getting Started With Chrome And Firefox Developer Tools
Chrome and Firefox are modern web browsers that have built-in tools to help developers edit pages and fix problems directly in the browser. Chrome has its developer tools and Firefox has its developer tools. Both have many overlapping features and some unique features. In …

The Three Types of Code

Every time I start a new project, I organize the code I’m looking at into three types, or categories if you like. And I think these types can be applied to any codebase, any language, any technology or open source project. Whether I’m writing HTML or CSS or building a React component, thinking about these different categories has helped me figure out what to refactor and prioritize, and what to leave alone for now.

Those categories: Boring Code, Salt Mine Code, and Radioactive Code.

Let me explain.

Boring Code

Boring code is when it makes perfect sense when you read it. There's no need to refactor it, and it performs its function in a way that doesn’t make you want to throw yourself into a river. Boring code is good code. It doesn’t do a kick-flip and it’s not trying to impress you. You can use it without having to write even more code or engineer hacks on top of it. Boring code does exactly what it says on the tin and never causes any surprises.

This function makes sense, this prop is clearly named, this React component is straightforward. There are no loops within loops, no mental gymnastics required here.

However, boring code is near impossible to write because our understanding of it is almost always incomplete when we start tackling a problem. Just look at how many considerations can go into a styling a simple paragraph for contrast. To write boring code, we must be diligent, we must endlessly refactor, and we must care for the codebase beyond a paycheck at the end of the month.

Boring code is good because boring code is kind.

Salt Mine Code

This is the type of code that’s bonkers and makes not a lick of sense. It’s the sort of code that we can barely read but it’s buried so deep in the codebase that it’s near impossible to change anyway. However! It’s not leaking into other parts of our code, so we can mostly ignore it. It might not be pretty, and we probably don’t want to ever look at it so long as we live, but it’s not actively causing any damage.

It’s this type of code that we can mostly forget about. It's the type of code that is dangerous if opened up and tampered with, but for now, everything is okay.

The trouble is buried deep.

Radioactive Code

Radioactive code is the real problem at the heart of every engineering team. It’s the let’s-not-go-to-work-today sort of code. It’s the stuff that is not only bad but is actively poisoning our codebase and making everything worse over time. Imagine a codebase as a nuclear reactor; radioactive code is the stuff that’s breached the container and is now leaking into every part of our codebase.

An example? For us at Gusto and on the design systems team, I would consider our form components to be radioactive. Each component causes more problems because we can never use the component as is; we have to hack it to get what we want. Each time anyone uses this code they have to write even more code on top of it, making things worse over time, and it encourages everyone on the team to do the same.

In our design system, when we want to add a class name to the div that wraps a form element, we must use the formFieldClass prop in one component, and wrapperClass in another. There is a propType called isDefaultLayout and everyone sets it to false and writes custom CSS classes on top of it. In other words, not only does radioactive code make it hard for us to understand all this nonsense code, it makes it increasingly difficult to understand other parts of the codebase, too. Because the file we’re looking at right now has dependencies on eight different things that we cannot see. The result of removing this radioactive code means changing everything else that depends upon it.

In other words, radioactive code — like our form components — makes it impossible for the codebase to be trusted.

Radioactive code is not only bad for us and our codebase, but it is also bad for our team. It encourages bad habits, cruelty in Slack threads, not to mention that it causes friction between team members that is hard to measure. Radioactive code also encourages other teams in a company to go rogue and introduce new technologies into a codebase when the problem of radioactive code is not the tech itself. Anyone can write this type of code, regardless of the language or the system or the linting when they’re not paying enough attention to the problem. Or when they’re trying to be a little too smart. Or when they’re trying to impress someone.

How do we fix radioactive code? Well, we must draw a circle around it and contain the madness that’s leaking into other parts of the codebase. Then we must do something utterly heroic: we must make it boring.

The post The Three Types of Code appeared first on CSS-Tricks.

A Look at the Scala Main Class

Check out this quick look at adding a main class in Scala.

Adding a main class in Scala is something that I always end up searching online, so next time, it shall be through this blog post! Let's get started.

Linux Find Command Tutorial (With Examples)

When it comes to locating files or directories on your system, the find command on Linux is unparalleled. It's simple to use, yet has a lot of different options that allow you to fine-tune your search for files.

Read on to see examples of how you can wield this command to find anything on your system. Every file is only a few keystrokes away once you know how to use the find command in Linux.

Road to Great Code, Challenge #1 — Shuffle Playlist

Hone your craft with this Java coding challenge!

No matter what your profession is, it’s important to hone your craft. Uncle Bob (Rob Martin) in his book titled The Clean Coder suggests that us programmers should regularly practice writing code and solve common problems. Once we get good at solving them, he goes as far as recommending that we program to the rhythm of the music. Not to mention that we shouldn’t only stick to one programming language that we’ve mastered. We should constantly expose ourselves to different languages to get a better understanding of the programming universe.

You may also like: Clean Code Principles

Helidon: 2x Productivity With Microprofile REST Client

Make yourself for productive with Helidon.

We have already many articles before on how to write Microservice using the Helidon framework. We are going to further enhance our code with Microprofile REST Client to increase 2x productivity.

Microprofile REST Client Overview

There are many frameworks available in the market to test REST APIs + automation. Microprofile introduced a new concept of REST Client by default. That we can write type-safe REST Client while writing our code with few lines of code. This will speed up our API development and automation productivity in a great style.