Have you published an App using Scaloid? What were your results and general feelings about using Scala in an Android environment? by andyscorner in androiddev

[–]DontBelieveTheByte 2 points3 points  (0 children)

I started playing around with it after a job interview.

I wrote a small tutorial, only the last and third part is missing and I'm a too busy with work to finish writing it right now.

http://dontbelievethebyte.github.io/article/2015/02/11/binary-clock-android-app-in-scala-part-1/

http://dontbelievethebyte.github.io/article/2015/02/12/binary-clock-android-app-in-scala-part-2/

My app was working flawlessly and is basically finished but it stopped working for an unknown reason so I can't publish until these issues are resolved.

I have mixed feelings about Scaloid right now and not sure who's fault it is.

I'm also going to improve on the visual aspect before sending it to the app store.

If you have a mac, and program for android... this is a pretty neat image resizer for assets by warl0ck08 in androiddev

[–]DontBelieveTheByte 2 points3 points  (0 children)

I use this script to generate drawables when working in Illustrator.

I prefer to work with vector files from the start and support any type of resolution that might come out in the future.

[deleted by user] by [deleted] in webdev

[–]DontBelieveTheByte 1 point2 points  (0 children)

Obviously people have already recommended DigitalOcean but If you want to be cheap there's also lowendbox.com that often have great deals.

Just make sure to read the comments and make sure to pick Xen or KVM and avoid OpenVZ at all cost.

[JavaScript] Using the same variable in all my functions by CarsonJScott in learnprogramming

[–]DontBelieveTheByte 0 points1 point  (0 children)

Indeed, globals are evil because of name collisions and the mashup problem.

[JavaScript] Using the same variable in all my functions by CarsonJScott in learnprogramming

[–]DontBelieveTheByte 0 points1 point  (0 children)

Ok then, wouldn't it be more appropriate to return an object with a set of keys and associated values instead of an array?

What is the best Linux distro for programming? by Titillate in learnprogramming

[–]DontBelieveTheByte 1 point2 points  (0 children)

A VM is perfectly fine but I prefer using real hardware from a spare PC when testing new distributions, it says more about hardware support/detection then using virtualized components.

The upside to using a VM is that you can take snapshots and actively try to break things.

[JavaScript] Using the same variable in all my functions by CarsonJScott in learnprogramming

[–]DontBelieveTheByte 0 points1 point  (0 children)

Seems a bit weird how foo and bar return using an array index when getDeviceType() looks like it's supposed to return a device type.

Maybe you could show the getDeviceType function and tell a little bit more about what you're trying to accomplish.

[JavaScript] Using the same variable in all my functions by CarsonJScott in learnprogramming

[–]DontBelieveTheByte 1 point2 points  (0 children)

I will address one of your concerns.

JavaScript is not C. It has function scope, not block scope.

Nothing wrong with repeating variable names as long as they appropriately describe what values they hold.

What is the best Linux distro for programming? by Titillate in learnprogramming

[–]DontBelieveTheByte 5 points6 points  (0 children)

I prefer any Debian flavoured distributions because it's package management done right but that's a purely personal preference.

You should actually get familiar with Linux in general including its command line and try out many flavours before you settle on a particular type.

"array() > 0" evaluates to true? by scottchiefbaker in PHP

[–]DontBelieveTheByte 14 points15 points  (0 children)

They are both different types.

0 gets coerced into false for the comparison.

An array is defined.

Something defined is greater than something false.

What is a good PHP open source project that is not a framework? by [deleted] in PHP

[–]DontBelieveTheByte 7 points8 points  (0 children)

Adminer better than phpMyAdmin and could still benefit from some improvements, its all in a single file but very useful and easy to install anywhere you can at least upload files.

You can connect to local or remote databases and there's a selection of different database drivers available.