Hacker Newsnew | past | comments | ask | show | jobs | submit | ilek's commentslogin

I remember the Vita, but only because I'm surrounded by the things.

Open a drawer? There's probably 8 of them lying around.


Um... why?


I work at Sony R&D


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?


Looks like "If Archimedes Knew Calculus", about "quantum" calculus. Very interesting, I'm about half-way through already:

http://www.math.harvard.edu/~knill/pedagogy/pechakucha/


To correct myself, the actual title is: "If Archimedes Knew Functions"

Same link:

http://www.math.harvard.edu/~knill/pedagogy/pechakucha/


Thank you so much!


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.


C# has the same issue really, although we do it use for some other tooling and whatnot as we're a .NET shop.

Don't know much Ruby or Python to be honest so I'm not sure how could I apply them but I'll dig around sometime soon.


I really enjoy watching videos like this for some reason: https://www.youtube.com/watch?v=8EeTfiBWZzU

It's not quite the same but I felt it's relevant.


It's interesting how the pedestrians walk on the "wrong" side. I guess you can attribute it to Japan having left-hand traffic.


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 actually noticed the same thing in Hawaii, lots of Japanese tourists


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.


Hmm, unrelated but I hadn't realised you had laws at the county level too in the USA. I assumed it was federal and state only.


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.


And also a city/municipality/township level as well.


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.


Goes all the way down to city level, even.


In NYC, which is of course an outlier, the counties (each borough) are smaller and fall below the city level.


Some companies and private organizations will even create "by-law"s in an attempt to control you.

Uh, why does this comment have a negative score?


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.


I don't find something like the below frustrating really

if (a)

    ...
else

    ...
But for some reason I find the below _very_ frustrating. It feels misleading and I find it to be very, very ugly.

if (a)

    ...
else {

    /* Multi line block */

}


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 just have a problem with the mixing of braces on an if/else chain I guess. I don't know how to explain it clearly, it just rubs me the wrong way?


I've actually never seen anyone do either of those.

I've seen

if (a) thing;

but never with an else, and certainly never with an else that has a multi-line block. That's definitely somethign I'd call out in a CR.


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.


Visual Studio is more bloated than IntelliJ or Eclipse? Absolutely not.

When I had the displeasure of using IntelliJ it would use 1.2GB RAM for a fucking 5 file project. Debugging would then use another 1GB RAM.

Visual Studio uses 1GB RAM with a 150 project solution open, and it opens said solution about as fast as IntelliJ opened that tiny project.

Adding something like Resharper (by your beloved Jetbrains) will make Visual Studio bloated and slow.


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.

Horrible build quality and support.


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.


Of course, I went straight to amazon after the experience with Asus customer support and got a full refund in an hour.


Sounds like it worked out pretty well for you then? Full refund after 6 months of use, you could buy another one or the next model up.


Out of interest, why do you think the Handmade Hero code is atrocious?

I haven't kept up with it so I don't have much of an opinion.


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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: