I’m announcing this new project that I have been working on for a little while now called KeyData.
KeyData is a key-value store (similar to Redis) that I am building from scratch using golang.
#buildinpublic#100DaysOfCode#coding#backend#golang#redis
@ExodusPgame@dmitriid Honestly I’m getting tired of these “open source” projects that are built entirely with LLM code. At this point it would be better off for people to not even contribute to these projects in the first place.
@sefzig@kaka_ruto Yeah all of this decisiveness of the immigrants kind of makes it hard for people to just view in a rational way. These countries have aging populations with no actual replacement coming from the native population.
@sefzig@kaka_ruto But honestly speaking this would make sense, but I feel like these European countries are doing these immigration policies to deal with low birth rates.
@dhh@kaka_ruto But honestly I feel like you are ignoring one glaring reason why the mass immigration is happening in the first place, low fertility rates. If most of Europe have a birth rate lower than replacement levels, you are just going to deal with the same issues as Japan and South Korea.
@tmaiaroto@zekramu Yeah I was going to say the same thing. Usually these startups are running on lower funds. The infrastructure they have won’t be well suited for hiring ex faang employees that are used to large corporations with a bureaucratic process.
@Davidmicdan_ Trust me the backend development world gets even more deep when you start learning about performance optimizations for your application like caching and paging.
@davidcorto Definitely saving for later. Would you say that pprof can be used in a test environment or should we make a macro benchmarking suite to get a good idea of CPU usage etc?
Backend Bytes #3:
Database transactions can fail. Know how your ORM handles those failures.
ORMs like Django and Prisma don’t automatically retry failed transactions.
Instead, they raise an exception and expect your application to handle the failure..
#backend#databases
Backend Byte #2
t.Fatal() vs t.Error()
t.Error() marks the test as failed but continues execution.
t.Fatal() marks the test as failed and stops execution immediately.
Use t.Fatal() when the rest of the test depends on that step succeeding.
#golang#testing#backend
@carrotdev_ I’m wondering how safe is mutating existing keys when concurrency is involved. Sounds like you still need to have a mutex variable or only one go routine to handle changes to the map.
Backend Bytes #1:
Writing file I/O tests in Go?
Use t.TempDir().
It creates a fresh temporary directory for your test and automatically cleans it up when the test finishes. No custom cleanup code required.
#golang#backend