Better HN
topnewbestaskshowjobs
Log inSign up

sixcorners

58 karma · joined Sep 14, 2010 (16y ago) · 106 submissions

Submissions

comment 2y ago · link · parent

You could do a lot of the lombok things as a runtime agent. I think @ToString, @EqualsAndHashCode, @Synchronized, @Getter(lazy=true), @UtilityClass, @Delegate, and @Cleanup could all be implemented in a runtime agent. Most of the rest could work as a runtime agent too as long as you were willing to type out the method signature (plus maybe a native keyword) for the things you actually want to link against at build time.

I think this would end up being way more difficult to use though and I think it would be perceived to have way more risk compared to lombok as it is now. What do you think?

Also is something wrong with paralleluniverse.co? The root domain seems to go to a gambling site?

comment 2y ago · link · parent

So would you suggest he change it to work like quasar?

comment 6y ago · link · parent

So are you saying you no longer think OO inherently makes things harder to test?

I feel like it's difficult to talk about this without examples. The library I like thinking about when I think of passing around in a state variable is the lua C api.

https://www.lua.org/pil/24.1.html here is an example.

https://pgl.yoyo.org/luai/i/lua_State here are docs for the state variable's type.

This is pretty object oriented except that it's not using C++'s syntax sugar. You can't really do much with L except pass it into other lua "methods". The discussion up until your comment seems to be about the difference between using the syntax sugar and passing around a state variable yourself.

Information hiding and these other implementation details are kind of seperate. In my example you can't just configure L exactly how you want by messing around with it or inspecting its state directly. You have to go through accessor "methods".

I think if the argument is that OO promotes information hiding I can agree with that. I'm not sure about the point about the internal state becoming a part of the API though. APIs are contracts that can be met with different implementations right? If your implementation details are public then your contract is huge and inflexible.

comment 6y ago · link · parent

Isn't how you pass things into a function separate from whether you are hiding information? If your state parameter was an opaque pointer then you wouldn't necessarily be able to do anything with it. Also if your class internals were public you would be able to change anything you wanted.

comment 6y ago · link · parent

If you are saying it's baseless in part because of this post:

https://www.reddit.com/r/WatchRedditDie/comments/gj2843/so_t...

I think that's been quote mined. Here is a link to a comment by a moderator on /r/interestingasfuck that includes the context. Followed by more discussion about why he was banned from more subreddits.

https://old.reddit.com/r/SubredditDrama/comments/gjedc1/uroo...

Also if you find it interesting here is another post of him trying to explain the initial moderation action: https://old.reddit.com/r/OutOfTheLoop/comments/gj0wt9/whats_...

It seems to me like they have a basis. Do you think their basis is sound?

comment 6y ago · link · parent

I think these five moderators share power with the other moderators on each subreddit and each subreddit's mods can see each other's actions. Does this put this into the former category?

As far as what happened here the moderator for /r/interestingasfuck has been talking about it. He seems pretty open to answer questions. Maybe he could be asked if he gets paid to moderate?

comment 7y ago · link · parent

This doesn't answer your question but..

It looks like google offers phone support if you pay for Google One.

https://one.google.com/support

Have you tried it out?

comment 14y ago · link · parent

In C, braces on a new line is the prevailing style? I've been doing the opposite because that's what K&R C does (except for braces that define functions).

comment 14y ago · link · parent

I can't find it in the twitter and google agreements, I haven't checked them all.. Where are these additions?

comment 14y ago · link · parent

Why do you have to agree to that before hand? Why doesn't the contract prevent Paypal from suing other parties?

comment 14y ago · link · parent

What's the difference between this and the bittorrent app?

comment 14y ago · link · parent

You could ask the bad guys. Do the FBI have an email address? Maybe you could get somewhere with a freedom of information request?

comment 14y ago · link · parent

Can you push notifications to the device from Javascript?

comment 14y ago · link · parent

> Now, it’s of course possible that Yahoo would have done well under Microsoft. It’s also possible that unicorns are real. There’s essentially nothing to suggest that Microsoft/Yahoo would have worked. Meanwhile, there’s plenty to suggest that the opposite would have happened — namely, what happened with aQuantive post-acquistion. And the fortunes of Yahoo since the rejection.

comment 14y ago · link · parent

They always get you using those obscure laws like yielding to oncoming traffic or using turn signals.

Can't the law be used to target dissent now? If the law were enforced more strictly, like Cushman wants, wouldn't that have the opposite effect?

comment 14y ago · link · parent

If you encrypt your stuff using your Google password, that might be why it is needed.

comment 14y ago · link · parent

Does Google still give their 30% to the carrier? If so then Google's revenues from Android doesn't have anything to do with app sales.

You could say that Apple makes infinity times more money from their app store if you were just talking about sales of apps.

comment 14y ago · link · parent

The point is that it is regarded as a religion here whether Germany likes it or not.

comment 14y ago · link · parent

Is... Is that a picture of a Mac? (http://www.meetwindowsazure.com/img/home/hero.png)

comment 14y ago · link · parent

What happens if you train a neural network too much?

comment 14y ago · link · parent

When you set your name you can include arbitrary HTML it seems.

It's hard to tell.. Not sure if I am just running javascript on my machine.. It's very laggy.

Edit: Looks like it is fixed now.

comment 14y ago · link · parent

You are not supposed to, and don't need to, catch Errors. The only exceptions you need to worry about as far as checked exceptions go are classes that inherit from Exception but not RuntimeException.

comment 14y ago · link · parent

We should also automatically correct the spelling of the word used as the password. /s

comment 14y ago · link · parent

How? You acknowledged that the exception exists. You didn't do that by putting 'throws' on everything.

comment 14y ago · link · parent

Attributes? Why not just

throw new RuntimeException(exception);

Edit: If there weren't exceptions for every mundane thing I think I would prefer no checked exceptions also.

comment 14y ago · link · parent

Didn't Microsoft make an experimental kernel with managed code?

comment 14y ago · link · parent

Are you telling me you wouldn't use a JSON api for sending HTTP requests and parsing the results as JSON?
1234