An array is the most basic primitive data structure to store a group of elements.
It stores its elements in a contiguous block within your computer's memory and can't grow in size dynamically
Please note:
Although I am using JavaScript code here, I'm talking about a real primitive array.
The Array in JavaScript is an object, that is backed by a real primitive array, but abstracts away a lot of the stuff I am going to present to you within the next few days.
We will also cover ArrayLists at some point, which will give you the knowledge about how a JavaScript array is approx. implemented under the hood. 😊
Improving developer experience is always a good investment.
It's even one of the investments with the highest return, in my opinion!
Some things that help to improve DX:
🧵👇
1) Providing All Relevant Information Up Front
Ensure that all information necessary is present in a README.md within the project's repository.
It should be sufficient enough to state what the project does, what problems it tries to solve, etc.
2) Making Sure Starting Out Is Easy
Does the project require some setup to be able to run/test/develop locally? -> Write an interactive script which sets everything up, maybe creating a config file / .env with meaningful defaults or settings from script input.
Some things you also have to consider when building services and software systems:
- Logging
- Metrics
- Tracing
🧵👇
1) Logging
Logging may be obvious for many devs, but there's more to it than just doing it.
Choosing a format, which can be processed easily, should be a priority.
Then asking how those logs are collected and where they can be viewed is also pretty important.
1.1) Log Format
Plain text may be easy to read, but can sometimes be pretty difficult to process automatically.
You should also consider so-called tags, which is like a map where certain variables can be set, like request ids, to be able to follow the execution of a call.