Someone posted an article a while back about working to calculus using functions, I think it was titled something like "If Socrates knew functions"? I'm not sure. Does it ring a bell for anyone?
Agree on that one, it's really verbose and ugly. I liked the idea of a cmd that integrates so nicely with .NET but I don't think it worked out this time.
We use powershell a lot at work for developer setup stuff and other common tasks we do on a daily basis and at this point I've considered just writing my own language to do it or find something else.
Why don't you just use Python, Ruby or even C#? Why write your own language?
I wanted to learn Ruby a while back but didn't have a web project to work on so I started writing a load of scripts in Ruby instead. It worked out fine.
I seem to recall that different areas in Japan walk on different sides of the sidewalk. So it's not a national thing but a regional thing irrespective of the road direction.
I think reddit gets kind ofh ard to follow for conversations. It's really good for content aggregation, but I much prefer 4chan (and any other chan etc) for conversations. Though I think in the end thats more to do with the functionality than the UI. You definitely need an extension to use 4chan seriously but the same can be said for reddit.
I've said all this but either is INIFNITELY better than twitter, especially twitter's standard web client. TweetDeck makes the thing barely useable.
How influential counties are varies greatly from state to state. Where I'm from, there's no unincorporated land, it's all in towns. So the counties are relatively unimportant and town government is correspondingly more important. Elsewhere counties are highly influential.
It gets even more specific than that, while home owner's associations don't generate laws that lead to criminal penalties when broken, the rules HOA's create are legally binding and have probably a significant impact on many people's quality of life and every day freedom. They are very personal rules and you can get in trouble for stupid things like leaving your garage door open or how you hang your laundry. People living with HOA's have opted for trading in freedoms for slightly higher property values.
> It gets even more specific than that, while home owner's associations don't generate laws that lead to criminal penalties when broken, the rules HOA's create are legally binding and have probably a significant impact on many people's quality of life and every day freedom.
HOA rules aren't laws of any kind; they are legally binding only because you have entered into a contract to obey them.
> People living with HOA's have opted for trading in freedoms for slightly higher property values.
Or, they have opted to live in modern homes: HOAs are usually established by developers, and virtually all new development (ISTR seeing figures of 80% in CA) is subject to HOAs.
My, soon to be ex, HOA decided they want to make rules regarding public roads. If they catch you parking on said public road, they will inspect your garage and issue heavy fines if you're storing anything in it.
You can even have sub-county regulations, too. You can have county taxes as well. But unless you're in a big city, they tend not to matter much apart from, like, not being allowed to have couches and garbage on your front lawn or something like that.
Federal, state, county, and city governments, and special districts (e.g. transit district, school district) all have some degree of legislative power.
Yep, a homeowner's association could put a lien on your house if you broke their by-law about hanging a sports team flag on your front porch, for instance.
Why is that an issue? You would use something like that extensively in Go or JS for example, where you need to perform a check on the returned (Go) or passed (JS callback) error value.
The else is executed if there is no error, in my style at least, so naturally it will contain more logic.
I call it out in CRs when I see it and I've been fixing any of these I come across in code at work.
I'd rather a compiler forces me to put braces around everything than let people have the opportunity to do something like the latter from my original comment.
I had a poor experience with them in the UK. The hinge snapped on my ultrabook (I don't remember the exact model as the codes are obscure.) E-mailed support, provided plenty of pictures of the issue. Keep in mind I only owned the thing for 6 months so still in warranty.
Best they would offer is an out of warranty repair.
I know someone with the same model, exact same problem happened to him.
If you're ever in that situation again, take it to the seller, mention the sales of goods act if you have to. Warranties aren't how things are supposed to work in the UK, it's the seller that carries the responsibility and so they're generally a lot better at it.
Listing all the things bad about it would take me the rest of the afternoon, and likely evoke many replies along the lines of "you don't understand why he does it that way, it's supposed to be handmade, so you can't have all the nice things", like last time I commented about the HH code.
The executive summary would be that the code is basically full of unsafe code, pointer chasing, half-hearted argument/input validity checking, no memory management, no abstractions of the higher-level parts of the code, it uses none of the idioms we've learned through years of writing crap code to avoid common mistakes (RAII would be a good example, etc), doesn't use 99% of the language features C++ offers over C. Casey himself dismisses these things as adding unnecessary bloat and/or mental overhead, that they have no benefits for his purpose, and that the way he writes code you don't need them, but I just flat-out disagree with that.
Let me make clear that I'm not saying this because I don't like HH or because there's nothing to be learned from it, just that the results you get from this programming style should not be taken as an example. The quality of the code is immediately apparent if you watch Casey work on it in the streams, almost every line he changes breaks something somewhere else in the code, often even multiple things.
Yeah from what I've seen I've noticed he jumps around a lot putting out fires when he changes anything. Like I said in another reply, he's too far in the camp of C++ being C with classes.
I think the sad thing will be people are learning C/C++ from him and so will try and program anything in these languages like this.
It's gross because it's written in "C with namespaces and overloading"
Preferring #define for constants over constexpr is 100% the result of C++ bigotry.
It's a laughable decision. constexpr gives you the power of typesafe, compile time evaluation of purely functional expressions with type deduction. #define gives you a compile time 1972-style copy-paste
I agree with things like these, I think Casey and other programmers like him are too far in the camp of C++ is just C with classes.
From what I have seen of the code and videos, I think his general structure of programs is off. I'm no advocate of "every function has to be at max N lines" or "every file has to be smaller than N lines". But I think there are issues there, and I don't think it can be defended just because it's a game, where a lot of general practices go out the window.
Open a drawer? There's probably 8 of them lying around.