u/wesofx - 36 Archived Voat Posts in v/programming
u/wesofx
  • home
  • search

u/wesofx

7 posts · 29 comments · 36 total

Active in: v/programming (36)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: Poo in the loo 16 year old gurl "Prodigy" app dev found out to be a fraud.
  1. Make shitty app.

  2. Hire 10000 employees to make it slightly less shitty and mine marketing data.

  3. Now you are Facebook.

0 16 Feb 2018 17:52 u/wesofx in v/programming
Comment 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.

0 25 Jan 2018 20:40 u/wesofx in v/programming
Grandma variable naming strategy.
1 0 comments 15 Jan 2018 01:27 u/wesofx (self.programming) in v/programming
Comment on: People on StackOverflow are assholes.

I only look at assembly to check if something was computed at compile time lol

0 24 Jul 2017 18:17 u/wesofx in v/programming
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!

1 23 Jul 2017 16:09 u/wesofx in v/programming
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)

0 23 Jul 2017 14:35 u/wesofx in v/programming
Comment on: People on StackOverflow are assholes.

Juan, is that you? I was just BTFO'd by a Juan on SO

0 23 Jul 2017 13:40 u/wesofx in v/programming
People on StackOverflow are assholes.
0 0 comments 23 Jul 2017 11:51 u/wesofx (self.programming) in v/programming
Comment on: Rust: I like the language, I fucking hate the community - thoughts?

It's a good game.

0 13 Jul 2017 15:46 u/wesofx in v/programming
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.

0 08 May 2017 22:11 u/wesofx in v/programming
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

1 08 May 2017 21:04 u/wesofx in v/programming
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.

1 08 May 2017 20:49 u/wesofx in v/programming
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.

1 08 May 2017 20:27 u/wesofx in v/programming
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"

1 08 May 2017 20:15 u/wesofx in v/programming
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?

1 08 May 2017 20:00 u/wesofx in v/programming
Comment on: Some day we won't even need coders anymore

More abstractions! MORE ABSTRACTIONS!

0 08 May 2017 19:50 u/wesofx in v/programming
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.

1 08 May 2017 19:41 u/wesofx in v/programming
Comment on: Some day we won't even need coders anymore

Automagic programmers already exist and they're called compilers! lol EDIT: they're*

8 06 May 2017 20:39 u/wesofx in v/programming
Comment on: hello code wizards !! i would like to know, how do i download the internets?

User-name checks out.

1 23 Mar 2017 03:06 u/wesofx in v/programming
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.

0 23 Feb 2017 05:01 u/wesofx in v/programming
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.

0 21 Feb 2017 02:10 u/wesofx in v/programming
Have you ever used imaginary numbers in code?
1 0 comments 19 Feb 2017 14:20 u/wesofx (self.programming) in v/programming
My first mandelbrot!
5 0 comments 18 Feb 2017 03:29 u/wesofx (..) in v/programming
C++ 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/programming
Yo dawg I heard you like Turing complete games.
1 0 comments 14 Feb 2017 15:16 u/wesofx (..) in v/programming
Comment 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.

0 13 Feb 2017 17:50 u/wesofx in v/programming
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.

1 13 Feb 2017 17:40 u/wesofx in v/programming
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(){}
7 13 Feb 2017 16:34 u/wesofx in v/programming
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.

1 10 Feb 2017 11:28 u/wesofx in v/programming
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.

0 04 Feb 2017 02:23 u/wesofx in v/programming
Birds
2 0 comments 03 Feb 2017 08:50 u/wesofx (..) in v/programming
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.

1 18 Jan 2017 02:29 u/wesofx in v/programming
Comment on: Infographic for choosing your first programming language

LALALALA I'M NOT LISTENING LALALALALA

0 14 Jan 2017 03:32 u/wesofx in v/programming
Comment 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

2 01 Jan 2017 00:34 u/wesofx in v/programming
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

0 09 Dec 2016 22:02 u/wesofx in v/programming
Comment on: How to connect the programming to the artist work

LOL off topic, but those names are too funny

0 01 Dec 2016 02:32 u/wesofx in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.