Comment on: Poo in the loo 16 year old gurl "Prodigy" app dev found out to be a fraud.
0 16 Feb 2018 17:52 u/wesofx in v/programmingComment on: Report: 80's kids started programming at an earlier age than today's millennials
The first code I ever wrote was a lua script for my Roblox map to make a door disappear when you touch it.
Grandma variable naming strategy.
1 0 comments 15 Jan 2018 01:27 u/wesofx (self.programming) in v/programmingComment on: People on StackOverflow are assholes.
I only look at assembly to check if something was computed at compile time lol
Comment on: People on StackOverflow are assholes.
Pretty much. The most annoying reason I see them close threads for is "subjective questions" Apparently they don't like opinions. Want to ask about programming conventions? NOPE! Want to ask about best practices? NOPE!
Comment on: People on StackOverflow are assholes.
Not even just SJW. It feels like Reddit. Everyone is trying to karma whore and make dumb jokes.
I think it is making a copy though. Somebody who wasn't a troll suggested using std::optional<std::reference_wrapper<T>> and a newbie with no points linked me to this which seems to agree. I just tested it with sizeof(std::optional<T>) and it's about as big as T. (I should have done that in the first place)
Comment on: People on StackOverflow are assholes.
Juan, is that you? I was just BTFO'd by a Juan on SO
People on StackOverflow are assholes.
0 0 comments 23 Jul 2017 11:51 u/wesofx (self.programming) in v/programmingComment on: Rust: I like the language, I fucking hate the community - thoughts?
It's a good game.
Comment on: Some day we won't even need coders anymore
I can agree with that. There are much better trades to get into if you want to get a good job easily.
Comment on: Some day we won't even need coders anymore
No, my job is unrelated to programming, but it's been a hobby of mine since I was a teenager. The majority of my experience is in game development and fractal visualization software. Some of my code is featured on my github
Comment on: Some day we won't even need coders anymore
I'm not afraid to admit I think I'm a good programmer. The reason anyone can be a programmer today is because better programmers have already created compilers for higher level languages and massive reusable libraries of code in those languages.
Comment on: Some day we won't even need coders anymore
"Good enough" isn't always good enough when there's money to be made. Sometimes you need to write an algorithm from scratch and you need to use a programming language that lets you control the memory layout and program flow. These things require creativity and expertise.
Comment on: Some day we won't even need coders anymore
Are you saying a frozen pizza is as good as a pizza crafted by an expert chef? If you want good software it has to be crafted by an expert and the best tools for the job are programming languages that give you full control. Let's say you're creating Voat.co. You could say you want a website like Reddit, but what will the font-size be? How many posts per page? What will the background color be? How will all the data be stored and accessed? What algorithms will you use to sort all the posts? How will you restrict people from posting? It's not as simple as "I want a website like Reddit"
Comment on: Some day we won't even need coders anymore
It's still programming and a "programmer" would make better use of these tools the same way a musical expert would make better use of the music software. Typing out code is not much harder than graphical programming if you know what you're doing. Besides, what if you want to change what's happening inside those boxes? There's code inside those boxes. Same goes for music software. What if you want to change the way things sound in a way that can only be achieved by knowing how to play an instrument?
Comment on: Some day we won't even need coders anymore
More abstractions! MORE ABSTRACTIONS!
Comment on: Some day we won't even need coders anymore
Idk what your point is with this, but that's still programming. Those boxes are functions with parameters on the left and return values on the right.
Comment on: Some day we won't even need coders anymore
Automagic programmers already exist and they're called compilers! lol EDIT: they're*
Comment on: hello code wizards !! i would like to know, how do i download the internets?
User-name checks out.
Comment on: C++ library for saving and loading PPM images (only 931 bytes of source-code)
You made me read a lot about color spaces. I added sRGB color space support. I was going to add BT.709 support as you suggested, but AFAIK it has the same curve as sRGB but with a narrower range to allow for peaks. The PPM documentation says
BT.709's range of channel values (16-240) is irrelevant to PPM.
which I interpret as meaning I should still use 0-255. (I could be wrong)
In either case I coded the library in such a way that people can easily plug in their own color space conversion methods if they want.
An interesting thing I learned about sRGB is that it has a linear part and a non-linear part. The dark parts of the image are linear, but the rest of the image has a gamma of 2.4 applied to it.
Comment on: C++ library for saving and loading PPM images (only 931 bytes of source-code)
Thanks for the feedback. I'm not too familiar with colorspaces. I made this library for visualizing data and I figured 1:1 mapping of data to rgb values makes the most sense.
I'm able to open them with GIMP without any problems and I'm able to convert them into anything I want with ImageMagick.
Have you ever used imaginary numbers in code?
1 0 comments 19 Feb 2017 14:20 u/wesofx (self.programming) in v/programmingC++ library for saving and loading PPM images (only 931 bytes of source-code)
4 0 comments 17 Feb 2017 23:45 u/wesofx (..) in v/programmingYo dawg I heard you like Turing complete games.
1 0 comments 14 Feb 2017 15:16 u/wesofx (..) in v/programmingComment on: 50 Bytes of Code That Took 4 GB to Compile
It looks like it's missing the }'s. Are they implicit? Is that standard? I've never written assembly let alone assembly inside a c++ program.
Comment on: 50 Bytes of Code That Took 4 GB to Compile
Lol I didn't even consider an int being 4 bytes. And the article is interesting. I'd never really thought about the compiler itself having to deal with memory constraints. PS I thought that code compiled, but maybe I compiled the wrong thing.
Comment on: 50 Bytes of Code That Took 4 GB to Compile
What about just creating a 4GB array at compile time?
constexpr int a[0xffffffff] = {}; int main(){}
Comment on: A "final solution" to the image hosting problem
I think #1 is pretty smart. If you have Voat (or just a comment bot) automatically detect an image link and automatically upload the image to a list of alternate image hosts, there's copies on other hosts if one goes down. EDIT: with bots, it's not so long term because comments eventuall become outdate if all the hosts at the time the comment was made are down. Otherwise the bot has to update old comments. An offcial voat feature could be much more robust about staying updated.
Comment on: Birds
If you're curious, it's C++ code. It's part of an initialization of a tuple of a vector of tuples and an array.
Comment on: Can video game hacks ever be stoped?
I was making an text-based game recently and it occurred to me that you could have cheater-free multiplayer by doing everything server-side and just streaming the text to display back to the client. Translating this to a 3D action game, you'd need to render graphics server-size and stream video back to the client. Any amount of latency would likely be unacceptable for a fast-passed competitive game, but maybe not for a slow or casual game.
Comment on: Infographic for choosing your first programming language
0 14 Jan 2017 03:32 u/wesofx in v/programmingComment on: Using Perlin Noise to Generate 2D Terrain and Water
I've made a small c++ library for generating n-dimensional (templated number of dimensions) gradient-noise (similar to Perlin noise) in a style similar to the standard library's random number generator. https://github.com/WesOfX/gradient-noise
Comment on: What is the best comment in source code that you have ever encountered?
Linux source code out of context might as well be alien hieroglyphs
Comment on: How to connect the programming to the artist work
LOL off topic, but those names are too funny
Make shitty app.
Hire 10000 employees to make it slightly less shitty and mine marketing data.
Now you are Facebook.