jacktoole1
Edit: Seems to be working now anyways :).
I'm sure it's possible to get that setup with XMPP, and it's definitely possible to get an equivalent setup with IRC (which I have an external server running ZNC for), but it's not out of the box, and there is something to be said for having a good configuration set up and working for everyone out of the box.
similarly,
var oldPlaceObject = map.placeObject;
var newPlaceObject = function(x, y, type) {
if (type !== 'block') {
map.placeObject = oldPlaceObject;
map.placeObject(x, y, type);
map.placeObject = newPlaceObject;
}
};
map.placeObject = newPlaceObject;
was my solution to multiple levels ;).Second, wow, a scale factor of 256! Off the top of my head it might be numerical error building up. If that's the case, I'm very sorry. (It's also sometimes possible to get infinitesimally close to the target without technically reaching it mathematically, in which case the interface unfortunately looks like the answer is correct, when it's not.)
All of the puzzles are solvable with dilations of scales only 2 or 1/2.
The undo button thing would be a huge improvement; I'll fix that. (Also, if you do two transformations that cancel each other out, it will notice and remove both rather than adding two. So you can actually undo a reflection by clicking the reflector again.)
As some other comments have pointed out, you might have seen the text based dilation, which is used for one of the problems for a specific reason :). The dragging dilation tool is far from perfect, but is a bit closer to what you described.
While we don't have an ideal test-like practice environment yet, I hope that we will be able to provide one in the future.
That said, I've found react to be very declarative, especially over the raw jQuery and Backbone I'd used before. Most of the components I write have no state, and render() declares how to render them from any state, without having to worry about how to change things on state changes.
I don't think it's possible to learn moonscript without learning lua concurrently, since lua makes up so much of the underlying semantics. So I think the choice is either (a) learn lua, or (b) learn lua and moonscript for some nice syntactic sugar.
Things every game student should know
It would be hard to have both be '.', because of lua semantics: '.' means "get the property from the table", while ':' in lua and '\' in moonscript mean "get the function from this table, with the first parameter for that function bound to the table itself".
Javascript/Coffeescript can get away with both being '.' because of the horrible mess that is implicit 'this'. All functions have an implicit first parameter, that non-method functions usually ignore, and '.' in javascript does the equivalent of ':' and '\' in moonscript (for functions). I find the lua approach much simpler and cleaner, and think it is actually more approachable than the javascript way, because the difference between '.' and ':' or '\' is conceptually simpler than all the rules behind 'this' in javascript.
Programming in Lua explains ':' in http://www.lua.org/pil/16.html , and probably has a better explanation that I wrote :).
However, if you're going this route, it might be worth having a second assert macro that can allow you more fine-grained control of enabling/disabling fast asserts vs slow asserts.
This also completely ignores the viral nature of these types of services; people are more likely to use Instagram when their friends are using it. Without being free, it's not clear whether it would have taken off enough to gain 2 million users (or whether it could keep 2 million after the remaining 98 million left).
That said, I'm all for paying for services, and much prefer that model to ads. But just because some of us would prefer that doesn't mean it would have been the right choice for Instagram. It's easy to look back and say "they should have charged users," but we can't be sure we'd be in a place to analyze them if they had.
Anecdotally, I thought the effect was neat, and spent a few more seconds than I otherwise would have on it.
Some people feel strongly against this, but for dynamically typed language I enjoy its simplicity (for static languages, type systems are meant to enforce constraints on types, so multiple number types can be useful). It has done well in [at least] javascript and lua, and while the former is anything but an example in how to design a programming language, IMHO, the latter may be.
So no, it wouldn't be a bad idea to make all numbers 64-bit floats. It sounds like you might likely be compiling to javascript, in which case using 64-bit floats will mean you have one less problem to deal with while implementing it.
MoonScript also gets rid of a lot of the more verbose parts of lua, and replaces them with CoffeeScript-like versions. For example: shorter anonymous function syntax, syntactically significant whitespace, default local variables.
Keep up the good work!
Any thoughts of letting the 'do' keyword support coffeescript-style 'do' semantics as well? Invoking a multi-line anonymous function is currently a bit impractical, and allowing do to invoke a single function parameter would make that a lot nicer, and allow for capturing variable's in a closure more easily. Example from the coffeescript docs:
for filename in list
do (filename) ->
fs.readFile filename, (err, contents) ->
compile filename, contents.toString()
[1] http://www.codingspellbook.com/- If you like programming/CS, then studying CS in college can be fun (once you figure out if you're more into programming or theory you can take more systems or theory courses as appropriate).
- Having a degree will never harm your chances at a company, and can be seen as a legitimizing factor at many [usually larger] companies. If things ever go south, getting a job at a bigger company will be much easier.
- You learn a lot in a short time at university. A lot of this will be the type of things often asked in technical interviews, so it will generally make getting a job in the future easier (the CS interview process can be a little biased toward college type questions rather than industry type questions. Whether the system is broken is another topic). You will learn things in industry too, but if you stay in college you'll still learn them, just later. If you drop out, you might always wonder what topics you're missing out on.
- I don't feel like you're delaying your life by attending university, as that's generally what people expect you to do with the four years after high school, IMO.
As to how useful university has been, I found it very useful. But university, like many things, is what you make of it. It can be useless or very useful or somewhere in-between depending on what you do while there (what classes you take, what projects you work on in your spare time, possibly what clubs you find a fit in).
I've technically been in that situation, and my manager at the time encouraged me to finish my degree. But take this with a grain of salt; I would have finished my degree regardless of what anybody said at that point.
You have a better idea than anyone else of what's best for you, and you should make this decision, if it comes up, at the end of your internship rather than now. But I generally encourage people in CS to get their degree.
If you have any questions related to that, I'd be happy to answer them.
Election Staff loses unencrypted personal info on 2.4 million voters
XKCD What If Blog - Answering Your Hypothetical Questions with Physics
(I wish its syntax was a little less verbose, but that's why I use http://moonscript.org (like coffeescript for lua) right now, although the compiler has some rough edges and looks like it hasn't received much attention for awhile).