Comment on: How many of you can still read your own code you created years ago?
4 30 Dec 2016 03:33 u/Lopsid in v/programmingComment on: Prime numbers.
haha yes CPU cycles matter on the Mars rover.
Comment on: Prime numbers.
Made a little sieve of Eratosthenes. When a number is not prime, it's crossed out (set to 1).
int main()
{ int list[100] = {-1, -1};
for(int prime = 2; prime <= 10; prime++)
{ if(list[prime == 0])
{ for(int cross = prime + prime; cross <= 99; cross += prime)
{ list[cross] = 1;
}
}
}
for(int x=0; x <= 99; x++)
{ printf("%2i: %2i\n", x, list[x]);
}
return 0;
}
Comment on: Will being a programmer become a near minimum wage occupation?
Oops that reply was because I thought your comment was posted to my recent thing where I'm asking people to insult my whiteness haha
Comment on: Will being a programmer become a near minimum wage occupation?
Actually my grammar is excellent compared to the average Google, and I can tell a computer what to do https://pastebin.com/u/wavicle
What's up.
Comment on: Will being a programmer become a near minimum wage occupation?
I think human programmers will cease to exist. Not so long ago they handled everything. Now we have languages and compilers but the need to learn a language before writing in it still exists. That'll disappear shortly. There will be code for everything you've ever wanted to do and with speech recognition and compilation, there will be no need to learn syntax of any kind. Just tell the machine what you want built and the circuits will obey.
Computer science as a study will never disappear because there will always be those who want full control over what their program is doing. Memory, low level stuff, and efficiency.
Comment on: Idea: Using AI to eradicate the private data companies have on you.
Actually that's fucking brilliant. it's like having another you... swimming through the internet looking at stuff and services wouldn't know your true interests. I mean it's creepy, I made choices inside my own brain and someone is selling them for profit.
I think I had a similar idea but possibly for metadata on services you can't escape: https://voat.co/v/CodeRequest/comments/969369
Comment on: Alternatives to notepad++
I use Geany. License: (GLPv2)
Geany is a text editor using the GTK+ toolkit with basic features of an integrated development environment. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. It supports many filetypes and has some nice features.
It has plugins and all kinds of shortcuts. It's really fast and lightweight. Minimal non-current version because Debian.
Comment on: Concerning type float, if I typed out 38 digits, put a decimal point anywhere on that number except for the ends, and chose my 7 significant digits, can I really deal with those significant digits?
https://www.youtube.com/watch?v=eCJ76hz7jPM -best resource for significant figures.
Well the code is beautiful as always but there just aren't many comments so I have to re-understand everything. I don't know, comments make code ugly by taking up all the space... well for small programs that is. Surely there will be essays in my bigger projects.