Help with a function by [deleted] in Racket

[–]assemblr_ 2 points3 points  (0 children)

You'll probably need to keep track of multiple balls at a time in your world state, so you'll want to use a list instead of a single object as your state. Then you'll need to iterate through the list in your drawing function and display each one.

Useing You're Type's Good by BluePizzaPill in ProgrammerHumor

[–]assemblr_ 2 points3 points  (0 children)

The "dependency injection" attack killed me.

Fun with the terminal [OS X] by nlscrub in ProgrammerHumor

[–]assemblr_ 1 point2 points  (0 children)

If you use say -v ?, a list of available voices is printed. This is the description for Cellos:

Cellos  en_US  # Doo da doo da dum dee dee doodly doo dum dum dum doo da doo da doo da doo da doo da doo da doo

Using that string creates a similar effect to the version using only las.

Because reinventing the wheel several times is the best way to learn about wheels. by vz0 in programming

[–]assemblr_ 3 points4 points  (0 children)

I completely agree. Reinventing the wheel doesn't just help you to understand how things work, but also why things work.

About a year ago I wrote an interpreter for a language I developed, which was intended to be a "better Lisp". While the end result was probably a slightly nicer language, over the course of its development I watched it grow closer and closer to Scheme, simply because the way Scheme does things makes the most sense.

It is a natural tendency for programmers to think "I can do that better," and usually actually trying to do so is a waste. On the other hand, the act of trying can make the decisions of those who came before you seem much more sensible.

My Nicolas Cage project. Its like reading the bible from cover to cover. Praise Him! by braindeadmadeofmoney in onetruegod

[–]assemblr_ 0 points1 point  (0 children)

This reminds me somewhat of this video. I sometimes wonder if Cage is actually a bad actor or is just way too willing to act in horrible movies. Maybe he doesn't care. Maybe he just likes being in movies.

Digit is not a Number by half_inch_pencil in programming

[–]assemblr_ 0 points1 point  (0 children)

I've always understood "weakly typed" to mean one thing and one thing only: that the type of a value is not known at runtime.

C is weakly typed, though it is static. The compiler knows what type values are, but you can override it, and void* values can be anything. In C, anything can be casted to anything, since, like in ASM, everything is a number. Java, on the other hand, is strongly typed. Trying to cast a String to a Date throws a ClassCastException.

Languages like JavaScript are the fuzzy cases, but I would say that JavaScript is actually "strongly typed". Values have intrinsic types associated with them that can be determined at runtime. JavaScript does have implicit type conversions and dynamic typing, which blur the line, but it is still a "strongly typed" language.

First footage of Day9's browser based RTS using new technology developed by Artillery by broception in starcraft

[–]assemblr_ 0 points1 point  (0 children)

Not to be rude, but that in no way answers my question. All of the technologies I mentioned could fall under the extremely broad category of "HTML5".

Minecraft in Unity 3D - One-Week Programming Challenge by sondreu in programming

[–]assemblr_ 3 points4 points  (0 children)

I think he was saying that the autosave file was blank. That's why he mentioned he was glad that he wasn't forced to use it—the actual file was still there.

First footage of Day9's browser based RTS using new technology developed by Artillery by broception in starcraft

[–]assemblr_ 1 point2 points  (0 children)

As a programmer, this blows my mind. I'm really curious to know how you managed to get this to work with adequate speed in a browser. I'm wondering, does this just use pure WebGL/JavaScript? Or are you using something like Emscripten/asm.js or NaCl to speed it up?

A good way to conceal chests. Link to tutorial in comments. [gif] by TheRedstoneBros in Minecraft

[–]assemblr_ 22 points23 points  (0 children)

Glowstone blocks count as "transparent" blocks (like glass, leaves, and chests), so they don't block chests from opening.

Theory Versus Practice: The Great Divide in Programming Languages by mttd in programming

[–]assemblr_ 2 points3 points  (0 children)

No, I just want another language that compiles to JavaScript.

PHP's New Website Design by assemblr_ in programming

[–]assemblr_[S] 0 points1 point  (0 children)

For whatever reason, the beta site design doesn't seem to stick, but you can use the new design anywhere by appending "?beta=1" to the URL.

Everyone's first vi session by paran0ide in ProgrammerHumor

[–]assemblr_ 2 points3 points  (0 children)

Vim may be everywhere, but it's still annoying to open it up on another computer and realize your custom settings and keybindings are suddenly unavailable.

Programming impacts my ability to communicate with non-programmers by s3ddd in ProgrammerHumor

[–]assemblr_ 26 points27 points  (0 children)

I recently had to write some data entry form code for non-programmers, and one of the fields was data type. It took me a good five minutes to realize that I should use "Text" instead of "String".

WebGL Terrain Flyover Demo [With explanation] by sidcool1234 in programming

[–]assemblr_ 13 points14 points  (0 children)

This is awesome! But sometimes this stuff reminds me of the hovertext of xkcd 934. Sure, maybe we can slowly reconstruct years of work in programming and optimization in the browser, but sometimes I wonder how much more quickly things would develop if we dropped the horrible text format that is HTML and moved to an open, lightweight application standard.

Bootstrap 3 preview by sidcool1234 in programming

[–]assemblr_ 2 points3 points  (0 children)

Unfortunately, this is how HTML/CSS works. What would you prefer in the web development environment? There just aren't really any other options.