Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment Wish they'd ask me what to do... (Score 2) 171

Current anti-trust court rulings are based on a change of thought from the 1970s. While I'm not that old, it's rather more modern than I would have expected. Prior to the 1970s anti-trust was about competition even if that competition was worse. After the 1970s the courts changed their thinking and decided it was all about moving towards cheaper offerings. If something made someone cheaper, that was better for society and thus they were allowed to do anything that made them cheaper.

My thought is we keep that same concept, but we realize that services like Facebook specifically aren't zero cost. They're negative cost. Facebook makes money on each of their users. Let's pretend for a moment that a company makes $10 per month from every user. That service isn't $0, it's negative $10/mo. If another company can offer the same service for less than negative $10/mo (ie, make less money off their users) then they should win. Think of the values in absolute value terms, rather than just a normal 0+ number line. If/When Facebook or another company where to propose a merger, then the merger would be thought of if it means the company makes less money per user or more money. If the company makes more money per user, then the merger would be denied. That's it. Same exact system we have now, with no changes to the law, but the courts and government polices would look at the cost being closer to zero, rather than it being "free".

Sadly, whenever I try to explain this to someone, they don't seem to understand my idea here.

Comment There are methods... (Score 1) 84

I'm a fan of the Angular method. Check out https://angular.io/api/common#pipes for examples. The idea is you have a variable with a string in it. You then pass that number to a function of your choice which does whatever the function is designed to do. It also allows custom functions if the user wants to define their own formatting method. So sure, you can say the value is a number and have it formatted by the DecimalPipe. But for me I've added features like a phone number formatter, so I can simply say "number | phone" and it formats it using specific formatting depending on the country code of the phone number. That's the way you want to do this. Everything should be abstracted in such a way as to make it very easy for you to add new formats that you never thought of. Angular's method (which clearly you can simply copy/paste from them into your own module, assuming you follow GPL rules) is perfect.

Slashdot Top Deals

A rock store eventually closed down; they were taking too much for granite.

Working...