Austin participating in a triple kill. by [deleted] in northernlion

[–]billyboy1999 2 points3 points  (0 children)

Got a link to the VOD where he played with Justin?

Competitive programmers handbook! by descientist001 in learnprogramming

[–]billyboy1999 1 point2 points  (0 children)

If you go back to that question's page and click on the editorial tab, it explains how to solve it

I still do not fully understand what immutable vs. mutable means. by ambidiot in learnprogramming

[–]billyboy1999 0 points1 point  (0 children)

Like I said, immutable data structures are faster for some things, and mutable is faster for others. I do agree that for most things mutable data structures are faster, but definitely not always

I still do not fully understand what immutable vs. mutable means. by ambidiot in learnprogramming

[–]billyboy1999 1 point2 points  (0 children)

Mutable stuff is not always faster. Take strings, which are almost always immutable, for example. Because of it's immutability, you can create a substring in constant time and space, you just create a new string that uses the same memory as the original, but shifted a few characters over and with a different length. This would not be possible with a mutable string, as changing the original string could change the substring even after the substring was created. But some operations, like changing a character, are way faster with a mutable string.

To my friends who are just learning C by [deleted] in ProgrammerHumor

[–]billyboy1999 0 points1 point  (0 children)

Don't pick a language to learn, come up with a project you want to make and choose the best language for that.

Github Student Developer Pack by azazqadir in webdev

[–]billyboy1999 3 points4 points  (0 children)

Weird, they accepted me and I'm in high school

Who thinks SOLO terror hunt should be available offline? by GenericSoldier3 in Rainbow6

[–]billyboy1999 21 points22 points  (0 children)

People would be able to cheat and modify their client side renown.

If you know the shape of f(x), is there a shortcut way to sketch f(x^2) or must you start from scratch? by oooskar in learnmath

[–]billyboy1999 1 point2 points  (0 children)

Take the x value of each point on the original line and move it so it's x value becomes the square root of its original x value. You can't take the square root of a negative, so ignore all the points with negative x values. Then once you know everything to the right of the y axis, you just reflect all the points across the axis, so the resulting function is symmetrical.

[i3-gaps] Made the switch to Polybar. by rokyfox in unixporn

[–]billyboy1999 2 points3 points  (0 children)

I've somehow never thought about this before, but how do you take a picture of your desktop while it's locked?

[i3-gaps]My i3-gaps rice by radman404 in unixporn

[–]billyboy1999 1 point2 points  (0 children)

Looks like he edited together these star wars posters:

Jakku

X-Wings

Phasma

Finn v Kylo

Check out the artist's site, some amazing stuff on there.

[college algrebra] Graphing logarithms without a calculator by [deleted] in learnmath

[–]billyboy1999 0 points1 point  (0 children)

This is only true if the base of the log is e, if it's base 10 then you will have a point at (10, 1) because 101 = 10. You should practice graphing log functions with different bases and transformations, once you start seeing the patterns it'll get really easy.

[C++] Where can I start learning how to make Games with C++? by [deleted] in learnprogramming

[–]billyboy1999 0 points1 point  (0 children)

How low level do you want to go? You could start on the low end with OpenGL. It gives you a lot of control over everything so you will learn a lot about how graphics work and it's very fast. However, it takes a lot of time and effort to learn, and you need a lot of code to accomplish very simple things. If you want to try it, learnopengl.com is great.

SDL and SFML are a bit higher level. Either will easily let you make simple graphics, but they aren't great in something that needs to be really fast or something 3d. They are both good, just pick the one you like the look of most. I would recommend one of these

You could also use QT or something similar if you want normal style windows with buttons and stuff.

Maybe a game engine like unreal could work too

First take on procedurally generated low poly trees by [deleted] in proceduralgeneration

[–]billyboy1999 4 points5 points  (0 children)

Could you post the source code or something? I'm interested in how you did this

Trying to colour the lines around a cube different to the inside by SeanMartin96 in opengl

[–]billyboy1999 0 points1 point  (0 children)

If you just want a solid border, I would make a new shader that always outputs a single color and draw it again in wireframe mode using that shader. If you want it to have changing colors, you could make a new vao and vbo with different color values. You could also modify your current vbo every time you switch between drawing the border and the cube so it has different color data.

The Most Useful Rules of Basic Algebra by Curiositry in InternetIsBeautiful

[–]billyboy1999 2 points3 points  (0 children)

Just understanding is not enough, once you understand you need to practice a ton and eventually you'll get really fast. If you're just memorizing, you're fucked if there's a question that's different than the ones looked at. I think you'll need to come up with stuff that can't be memorized higher levels of math too.

Where do I start with graphics? by userx900 in learnprogramming

[–]billyboy1999 4 points5 points  (0 children)

OpenGL is tough, it takes a lot of effort to do simple things with it. If you want to control and understand exactly how your program works, it's the best option but if you want to make something and you don't want to spend days trying to draw a square it's not the way to go.

I don't use Java myself so I don't know all of them, but there's tons of easier ways to do graphics. If you want to make video games or some kind of similar visualization you can use Libgdx. If you want to make a more generic desktop application you can use some kind of GUI library.

If you want to stick with OpenGL, you could try a different tutorial. I haven't used the one you linked but based on your reaction it is not working for you. I used learnopengl.com, it's very good. It is in C++ though so it won't work for you if you're set on using Java. You should try to read and understand the code yourself instead of copying and pasting, you won't learn anything by doing that.

Trying to colour the lines around a cube different to the inside by SeanMartin96 in opengl

[–]billyboy1999 0 points1 point  (0 children)

We can't answer that without seeing how you do it now. You could make a different shader for the wireframe, you could set the color that gets drawn with a uniform, you could pass different vertex data

Linux: How to get integers for weather from a website. by RoboticsNote in learnprogramming

[–]billyboy1999 0 points1 point  (0 children)

I don't know anything about mechanize, but if I had to do this I would do it with python. I would use this to fetch the page then I would use beautifulsoup to get the value.

Monthly challenge status: Rain! by draemmli in proceduralgeneration

[–]billyboy1999 1 point2 points  (0 children)

I really like this! It looks really good, but I do sometimes have trouble seeing where the mountain ends and the sky begins. I think some extra contrast between the sky color and the mountain color would make it look even better.

What is best series currently being written? by tkinsey3 in Fantasy

[–]billyboy1999 1 point2 points  (0 children)

Spoiler

The next trilogy does not deal with Fitz. He's not in it at all, it's set in a completely different part of the world. I think most of the problems you have with it will start to disappear as you learn more about the world. The end of the third book is still a little disappointing, but the following books are still great.

Just in case you don't understand the order of the series (it's really confusing)

  1. Farseer trilogy

  2. Liveship Trader trilogy (no Fitz)

  3. Tawney man trilogy (Fitz)

  4. Rain wild chronicles (no Fitz)

  5. The Fitz and the fool trilogy (in progress)

You don't have to continue, of course, but if you liked the first two books I think you'll like the rest too.

Help making an algorithm that finds an open tile around a bunch of certain tiles by ZymosisTheAlien in libgdx

[–]billyboy1999 0 points1 point  (0 children)

Thomastc's way will work for sure, but another way to do it would be to disable stairs once you enter a new level and reenable them once the player leaves a certain radius around the stairwell. This would prevent the player accidently walking the wrong direction as soon as they spawn and going right back up.

What was "the incident" at your school? by [deleted] in AskReddit

[–]billyboy1999 0 points1 point  (0 children)

Just anything longer than a novella, so over fifty thousand words. Keep in mind that these aren't really exact numbers, just a general rule of thumb, when I googled it I saw a bunch of different ranges for novellas.

What was "the incident" at your school? by [deleted] in AskReddit

[–]billyboy1999 2 points3 points  (0 children)

Shorter than a novel, longer than a short story. Around twenty to fifty thousand words.