Want more GNU in Linux, so Guix, btw. पूंजीपति will be sent to corrective labour camp.
That is not my program actually. Here’s what I’ve come up with:
rna_transcription.c
#include "rna_transcription.h"
static char transcribe_nucleotide(char nucleotide) {
switch (nucleotide) {
case 'G':
return 'C';
case 'C':
return 'G';
case 'T':
return 'A';
case 'A':
return 'U';
default:
return nucleotide;
}
}
char *to_rna(const char *dna) {
size_t len = strlen(dna);
char *rna = malloc((len + 1) * sizeof(char));
for (size_t i = 0; i <= len; ++i) {
rna[i] = transcribe_nucleotide(dna[i]);
}
return rna;
}
rna_transcription.h
#ifndef RNA_TRANSCRIPTION_H
#define RNA_TRANSCRIPTION_H
#include <string.h>
#include <stdlib.h>
char *to_rna(const char *dna);
#endif
I could not find the equivalent of map in standard library, so that is why I was interested in the community solutions.
It is not close-sourced. There are various repositories out there:
I read their webpage, but it is really vague. From a legacy point-of-view, wouldn’t it be better to incrementally add better language features, and if there happens to be a huge, breaking paradigm shift, initiate necessary refactoring of code base?
Basically, what I mean is something like:
C --> Cyclone --> improved dialect v1 --> improved dialect v2 --> Memory-safe unintelligible future dialect
There’s a dedicated page for my country, but I’m hearing about this for the first time. I’m not really sure on how to leverage this page to my current requirement.
Perhaps it’s a little different in other countries, but where I’m from, a CS degree is the most expensive of all B.E. or B.Tech degrees (well, engineering and medical degrees are pretty expensive). I have nothing on me, and I don’t want to stress my old parents. It’s not about me knowing CS stuff, truth be told, I didn’t learn shit during those years because I’m a tier-3 college grad.
I’ve been procrastinating every day staring the roof. Neither do I have any project to show to employer, nor did I prepare for any coding round. Haven’t applied anywhere, be it internship or full-time, because I am so exhausted, I don’t feel like doing anything.