News for hackers. Stuff that matters.

sixcorners

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?

So would you suggest he change it to work like quasar?
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.

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.
Re:92 of top 500 subreddits controlled by same 5 people on Thursday May 14, 2020 @07:41PM (#23187115)
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?

Re:92 of top 500 subreddits controlled by same 5 people on Thursday May 14, 2020 @06:15PM (#23186235)
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?

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?

Re:Why I Have Given Up on Coding Standards on Wednesday November 21, 2012 @05:19PM (#4816636)
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).
Re:How do I close my PayPal account? on Sunday October 14, 2012 @07:30PM (#4652970)
I can't find it in the twitter and google agreements, I haven't checked them all.. Where are these additions?
Re:Paypal policy update: No class-action suits on Monday October 08, 2012 @01:17AM (#4625588)
Why do you have to agree to that before hand? Why doesn't the contract prevent Paypal from suing other parties?
Re:Native uTorrent app for Android released on Thursday September 06, 2012 @06:05AM (#4483525)
What's the difference between this and the bittorrent app?
Re:Quick check to see if your UDID was leaked on Tuesday September 04, 2012 @05:19PM (#4476591)
You could ask the bad guys. Do the FBI have an email address? Maybe you could get somewhere with a freedom of information request?
Re:Apple rejects Drones+ thrice. App maker looks to Android on Saturday September 01, 2012 @03:47PM (#4464869)
Can you push notifications to the device from Javascript?
> 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.
Re:The Drone Zone on Saturday July 07, 2012 @07:00PM (#4212978)
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?

Re:Chrome for iOS on Friday June 29, 2012 @12:55AM (#4175315)
If you encrypt your stuff using your Google password, that might be why it is needed.
Re:Apple is About to Reduce Google's Revenues on Monday June 11, 2012 @11:46AM (#4095188)
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.

Re:Anonymous Austria leaks 2.8 GB Scientology Emails on Monday June 11, 2012 @05:02AM (#4093756)
The point is that it is regarded as a religion here whether Germany likes it or not.
Re:Microsoft offering Linux virtual machines on Azure on Thursday June 07, 2012 @09:52AM (#4079009)
Is... Is that a picture of a Mac? (http://www.meetwindowsazure.com/img/home/hero.png)
Re:Google's reCAPTCHA briefly cracked on Wednesday May 30, 2012 @08:03PM (#4045558)
What happens if you train a neural network too much?
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.

Re:The trouble with Checked Exceptions (C# architect) on Friday May 25, 2012 @05:52AM (#4022787)
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.
Re:Diablo 3 bug report: "Passwords not case-sensitive." on Friday May 25, 2012 @05:26AM (#4022722)
We should also automatically correct the spelling of the word used as the password. /s
Re:The trouble with Checked Exceptions (C# architect) on Thursday May 24, 2012 @08:52AM (#4018093)
How? You acknowledged that the exception exists. You didn't do that by putting 'throws' on everything.
Re:The trouble with Checked Exceptions (C# architect) on Thursday May 24, 2012 @08:32AM (#4018028)
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.

Re:A Tale of Two Pwnies (Part 1) on Tuesday May 22, 2012 @05:49PM (#4010244)
Didn't Microsoft make an experimental kernel with managed code?
Are you telling me you wouldn't use a JSON api for sending HTTP requests and parsing the results as JSON?
Nothing is said for people with javascript disabled?

Edit: After enabling javascript, reloading resulted in being stuck on the loading screen. Had to hold control during refresh.

http://support.google.com/a/bin/answer.py?hl=en&answer=2...

You don't have to use a DNS provider to do redirection with AppEngine.

Does the DTD have the right headers set to allow clients to cache it?

Older »