Amazing Julia Evans posts about the things she missed in Go.
This is kinda a promotion of the book "100 Go Mistakes and How to Avoid Them" and you know what, now I want to read it!
P.S. Unfortunately, I don't have a chance to write much in Go lately, which makes me sad. Maybe, it will push me towards creating some side-projects, probably, someday, maybe 😭
#programming #golang
This is kinda a promotion of the book "100 Go Mistakes and How to Avoid Them" and you know what, now I want to read it!
P.S. Unfortunately, I don't have a chance to write much in Go lately, which makes me sad. Maybe, it will push me towards creating some side-projects, probably, someday, maybe 😭
#programming #golang
Julia Evans
Go structs are copied on assignment (and other things about Go I'd missed)
I’ve been writing Go pretty casually for years – the backends for all of my playgrounds (nginx, dns, memory, more DNS) are written in Go, but many of those projects are just a few hundred lines and I don’t come back to those codebases much.
👍11🔥1🤗1
Some people know that I'm not a fan of Python. Yet, I have to tolerate it because it is objectively one of the most popular and widespread programming languages.
So, here is an article about asynchronous code in Python.
Enjoy!
#programming #python
So, here is an article about asynchronous code in Python.
Enjoy!
#programming #python
👍9❤1
An interesting article was shared in our chat yesterday.
This is a summary of the analysis of AI's influence on code quality. Some excerpts:
> The data strongly correlates “using Copilot” with “mistake code” being pushed to the repository more frequently.
> The 17% decrease in “move” operations when compared to 2021 hints at
the built-in trait of AI assistants to discourage code reuse. Instead of
refactoring and working to DRY (“Don’t Repeat Yourself”) code, they offer a one-keystroke templation to repeat existing code.
> Especially next to the decrease in “moved code,” the 11% increase in the proportion of duplicated code confirms the drop in overall code quality in 2023 when compared to 2021.
And my favorite one:
> In the absence of a CTO or VP of Engineering who actively schedules time to reduce “tech debt,” “copy/pasted code” often never gets consolidated into the appropriate component libraries.
Although, I saw this even before AI.
#ai #programming
This is a summary of the analysis of AI's influence on code quality. Some excerpts:
> The data strongly correlates “using Copilot” with “mistake code” being pushed to the repository more frequently.
> The 17% decrease in “move” operations when compared to 2021 hints at
the built-in trait of AI assistants to discourage code reuse. Instead of
refactoring and working to DRY (“Don’t Repeat Yourself”) code, they offer a one-keystroke templation to repeat existing code.
> Especially next to the decrease in “moved code,” the 11% increase in the proportion of duplicated code confirms the drop in overall code quality in 2023 when compared to 2021.
And my favorite one:
> In the absence of a CTO or VP of Engineering who actively schedules time to reduce “tech debt,” “copy/pasted code” often never gets consolidated into the appropriate component libraries.
Although, I saw this even before AI.
#ai #programming
Arc Talent Career Blog
Humans do it better: GitClear analyzes 153M lines of code, finds risks of AI - Arc Talent Career Blog
GitClear's study on AI code impact: code churn, duplication, and quality trends in programming.
👍9🤔2
Today I stumbled upon an interesting project: Withmarble helps you to learn computer science topics using interactive flash cards.
It also looks like it uses some LLM under the hood to generate certain answers, but this is just a guess.
In any case, the project is very raw: it has only a couple of cases, it has bugs on both mobile and desktop, etc. For example, if you opened a flash card, there is no way to close it and go back to the list.
Still, I think it's a nice idea to teach folks computer science. Maybe, some of you could take this idea and execute it better :D
#programming
It also looks like it uses some LLM under the hood to generate certain answers, but this is just a guess.
In any case, the project is very raw: it has only a couple of cases, it has bugs on both mobile and desktop, etc. For example, if you opened a flash card, there is no way to close it and go back to the list.
Still, I think it's a nice idea to teach folks computer science. Maybe, some of you could take this idea and execute it better :D
#programming
👍5
There is a slight disagreement between those who believe that AI is here to save the world from software developers with a job, and those who believe that this is just an advanced autocomplete.
This article provides some arguments to the latter point.
For me, first and foremost, it is interesting insight on the ways how people test new AI models.
P.S. If you are from the optimistic tribe, make sure to check out Den's video (in Ukrainian) about Cursor - an AI-powered editor.
#ai #programming
This article provides some arguments to the latter point.
For me, first and foremost, it is interesting insight on the ways how people test new AI models.
P.S. If you are from the optimistic tribe, make sure to check out Den's video (in Ukrainian) about Cursor - an AI-powered editor.
#ai #programming
Substack
LLMs don’t do formal reasoning - and that is a HUGE problem
Important new study from Apple
👍7❤2
A story of debugging OOMs of a Go application in Kubernetes.
Now, I do not agree with the author of this article that the fact that Go is not aware of memory limits is a problem. In my opinion, it works as expected: you don’t want to have environment-dependent runtimes.
However, this article provides some examples of how one can manage Go’s memory utilization and tune garbage collection a little bit. Plus, it has links to articles that describe Go’s garbage collector in more detail, which is also cool.
#go #programming #kubernetes
Now, I do not agree with the author of this article that the fact that Go is not aware of memory limits is a problem. In my opinion, it works as expected: you don’t want to have environment-dependent runtimes.
However, this article provides some examples of how one can manage Go’s memory utilization and tune garbage collection a little bit. Plus, it has links to articles that describe Go’s garbage collector in more detail, which is also cool.
#go #programming #kubernetes
Medium
When Kubernetes and Go don’t work well together
Go is not aware of the limits set for its container, causing some issues not easy to track. This is a story about how I stumbled into one…
👍6❤1
If you work with NodeJS on backend, this article may be useful to you.
This one is about how to increase (or decrease) memory limit for NodeJS when working with PM2.
#programming #nodejs
This one is about how to increase (or decrease) memory limit for NodeJS when working with PM2.
#programming #nodejs
Grizzlybit
Increase Node.js Memory Limit (Bonus: PM2) 🆙
Node.js has memory limitations that you can hit quite easily in production. By default, Node.js (up to 11.x ) uses a maximum heap size of 700MB and 1400MB on 32-bit and 64-bit platforms, respectively. You’ll know this if you ever tried to load a large data…
🔥2
Regardless my feelings about Python, it's still a very popular language among the platform people.
So, here is a bundle of Python books by Pearson that I forgot to share with you earlier!
This offer is still valid for 7 days. As usual, you can pay about €25 to unlock the whole bundle.
#books #programming #python
So, here is a bundle of Python books by Pearson that I forgot to share with you earlier!
This offer is still valid for 7 days. As usual, you can pay about €25 to unlock the whole bundle.
#books #programming #python
Humble Bundle
Humble Tech Book Bundle: Become a Python Expert by Pearson Encore
Whether you’re a newbie or pro, this Python programming bundle will help you master the ins and outs of this ubiquitous programming language.
❤3
Seva from UkrOps has started an English version of his blog with the first post about handling concurrency in Bash!
Bash still does a lot of heavy-lifting inside automation tools, task managers, and "CI/CD" systems, as well as for automating mundane ad-hoc tasks. So, you can easily apply ideas from this article in your setup.
#bash #programming
Bash still does a lot of heavy-lifting inside automation tools, task managers, and "CI/CD" systems, as well as for automating mundane ad-hoc tasks. So, you can easily apply ideas from this article in your setup.
#bash #programming
❤12👍6👎3🔥2
One of the strengths of Go is the existence of default helper tools such as
For quite some time now, I have to write Python code in professional setting and an automated import is one of the things I miss the most. There are tools to achieve that, ofc, but still.
Another thing about such helper tools is that we often take them for granted, especially when they are default. But you don't have to!
This article describes on a high level how
#go #programming
gofmt and goimport. Thus, you don't have to worry about formatting, for example. These tools can also be easily integrated into your editor of choice.For quite some time now, I have to write Python code in professional setting and an automated import is one of the things I miss the most. There are tools to achieve that, ofc, but still.
Another thing about such helper tools is that we often take them for granted, especially when they are default. But you don't have to!
This article describes on a high level how
goimport works. While it is kinda intuitive, it's always nice to see a bit deeper perspective. And if you want to dive even deeper, you can always just read the code yourself.#go #programming
Niko, doko?
Goimports explained
sorcerers conjure spirits with spells, but programmers invoke processes with code
👍5❤1