Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×

Comment Copypaste vs reimplement vs standard library (Score 1) 79

We shouldn't be asking why people are copying bad code, we should be asking why they need to.

Not sure why you're rephrasing my statement.

There's a subtle difference.

Your statement clearly poses re-implementation of code as the main alternative to copy-pasting. (boils down to "You should intelligently re-implement, instead of blindy copy-pasting").

The above statement simply discourages from copy-pasting (boils down to "Do not copy-paste, why do you even want to ?") but is still open to *any* solution :
that includes having a standard library (which was another criticism back during the "#LeftPadGate" ) which is also a valid solution : if there a decent standard library, nobody will need to copy-paste anymore either (but nobody will neither need to re-implement).

Comment NPM : no standard library ? (Score 1) 79

The underlying problem is that too many programmers are willing to copy and paste code rather than think through what they need to code.
Remember the left-pad crisis that broke the Internet because a developer removed his npm packages over a dispute? How hard is to write a left-pad function?

Sorry but now.

You should not be copy-pasting a left pad function.
But, you should not be re-implementing yet another one yourself neither.

Simple trivial task like this *should go into a standard library*.

On any machine on which I fire up a C compiler, I know that at least I can rely on a decent compliant standard library for simple task.
If I want to left-pad a number, I just give the appropriate parameter to printf.
(Well unless I'm writing kernel code, or unless I'm writing for an tiny embed platform where every byte counts and I need as specific code as possible).

Why does Npm needs to be any different ?

---

Also, left-padding function might be not as trivial as you think. Not every language is english, not every language is written only with the ASCII subset of unicode. Some weird corner cases will start to popup. Think situation where : Number of bytes IS NOT number of unicode code point which in turn IS NOT the number of displayed characters (e.g.: some of the unicode are diacritics or other such modifiers)
(To think about worste case scenarios: How do you even left-pad Zalgo ?)
But these are indeed extreme cases.

Comment Bullshit buzzword bingo ! (Score 2) 107

The guy hacked A UNIX NETWORK! I heard those networks are hardcore, some even use the vi protocol to load balance the kernel across multiple NFS loopbacks. It's basically POSIX grade security with layers upon layers of nmaps.

But is this UNIX webscale ? And does it enough Apps to synergize the user experience integration with cyberwarfare cryptosecurity ?

Comment Re:I like functions... (Score 3, Insightful) 255

Yes, it means your functions aren't allowed to have side effects (i.e., all parameters are passed by value and the only result is the value returned to the caller).

Personally, I like it because it's a good way to manage complexity -- kind of like the encapsulation of object-oriented programming, except applied to the verbs instead of the nouns.

Comment GPU (Score 1) 64

So it is basically Android x86 which is indeed an unstable pile of shit - unless ran on the hardware that the "owner" of the x86 project provides from a parallel commercial company he runs

I strongly suspect that most of the problems with android kernels are the hardware drivers : for the GPU, the wireless chips, etc.
(because there aren't much kernel drivers which support android's unusuall ABI.
Most free/libre linux kernel drivers use GNU/Linux's DRI API for graphics instead of Android's Flinger)

Here the situation is a bit different :

- in the special case of the GPU, anbox uses a facility which is normally used by the emulators (like QEMU) for accelerated emulated graphics.
Graphics command are recorded by the container android compositor, and then sent to a daemon on the host whose role is to draw them on a regular Linux desktop over OpenGL.
There's no requirement for the host to support Android's ABI.

- network is isolated. guest can't have access to the actual network device (no direct Wifi chip control). container usually sees only a bridge device.

- Bluetooth isn't currently supported inside the container.

So once anbox leaves beta, it might end up being more stable than x86 android counting on special kernel API/ABI

Comment Microsoft tax vs. Bloatware (Score 1) 98

Dell sells Linux laptops.

Not on all of them, and not in all market.
But still, Dells are so much popular, that even for the few Lattitude that you can directly get with Ubuntu pre-installed, you can just pop your Suse CD in and install a tumbleweed, because of popularity, lots of people would have tester a tweaked what is necessary for the distro to work out of the box.

And the Microsoft tax is a myth. All the demo software they tend to put on pays for windows plus a bit more so Linux laptops can often be a bit more because they are unsubsidised.

Yup. Totally agree with you. That's why I was saying :

linux laptops not only come *without the Microsoft tax* (making them a bit cheaper), they also come *without the Bloatware/Crapware bonus* (making them not heavily subsidized by "Punch the Monkey to win big prizes !" and "Let's siphon all your data straight to all the marketeer we an find".

Comment Go and try (Score 1) 64

Except virtually no Android apps even bother to make their apps work well on slightly larger tablet screen. {...} But for the vast majority of Android apps, the actual UI experience is designed for an approx. 6" diagonal vertically oriented screen with only touch-input. Virtually no apps are designed or redesigned to even work well on a slightly larger tablet screen.

My personnal experience differs (10" asian tablet here).
Of course, your personal annecdotal experience is just one data point as well as mine.

But I've seen several applications which work flawlessly on the 10" portrait (16:9 widescreen) tablet.
None of those that I regularily use pose any problem.
(Of the top of my head: Firefox, VLC, Google Maps, Google Calendar, the finding/renting software of a couple of car-sharing services, a few games, several chat programs both personnal (Skype, etc.) and professional (Cisco WebEx, Adobe Connect), Orbot (=tor), ConnectBot, ES Files, Netflix, Spotify, etc.)
They are either trivial (e.g.: Orbot - it's just a single "Start TOR" button in the middle) or they are correctly adapted.

And again, what the parent poster misses most are a few key apps (banking OTP / 2FA) which tend to have a trivial layout.

Any non-trivial app will absolutely suck to use on a 27" horizontally oriented screen using a keyboard and mouse.

Yes, I get it, like me and most other people on /. you're a dev. We tend to have our IDE open full screen on giant 27" 4k desktops, full with tools box and other small windows which completely clutter the screen.
But you, me and the rest of /. aren't typical users.

Most more "regular people" I know - even those with Linux installed on their laptop - tend to be of the 13-15" laptop HD screen crowd.
And again, thank to the same extension that enable side-by-side display on tablets, Anbox should allow you to open application in windows.
So in the end, it's not the a smartphone game will be so much scaled up, that you can see individual pixels, each the size of your normal desktop icon.

It's more that a laptop user will be able to open a small/medium window with an android app running inside.
Not that much different than any flash games.

Hell, WINE or a virtual PC environment will give you much better apps than Android will.

If the app do actually have a Windows desktop port.
There are a lot of people who use their iOS or Android smartphone or tablet as their main computing platform.
Thus there are a lot of things which are primarily targeting pocket devices.
e.g.: There is no such thing as a desktop Windows or Mac OS X verison of Instagram.

the typical non-dev hobbyist who's likely to install Linux on their laptop, would be also more likely to be interested in trying android-only apps on a laptop.

Comment Re:An Insider's View (Score 1) 80

First of all, never call your product a "competitive product". You know what this means? Essentially what you're saying is "the others are just as shitty, so why try harder?" Another thing is that the message is not what you say but what your audience hears. It's nice that you feel like your customer has a seat at your table, but this does not arrive at your customers. They do not feel that way. And if you care about how your customers think about you, this is what matters.

One thing is certain: Goodwill goes a long way, and it takes a long, long time to rebuild from ruins. And let's be honest here, Comcast's goodwill is in the gutter. You have a long uphill battle in front of you if you really care.

Comment Re:No brainer (Score 3, Insightful) 165

The other thing which bugs me is the white washing of old news articles how often that trick gets pulled, I might personally remember an event but find the contemporary records are missing that happens a lot especially in Politics when a past stance becomes embarrassing and then you get told black was white...

This is the single most important reason there could ever be!

Slashdot Top Deals

No skis take rocks like rental skis!

Working...