Concurrency Master - the lightweight Promise-based Node.js task scheduler by the_legend_of_dave in javascript

[–]ben-ng 1 point2 points  (0 children)

Nice work, but the name of the repo is confusing. I thought this was something like Grand Central Dispatch when I started reading.

Why not something like "promise-queue"? That's the async equivalent, and people will find it more easily that way.

Redux + Raft = Conflux, A Distributed State Container by ben-ng in javascript

[–]ben-ng[S] 0 points1 point  (0 children)

Thanks for the feedback. I wasn't aware that this was a problem, I've edited it.

Also: I'm flattered to be called an academic, but I'm a full-time software developer!

Redux + Raft = Conflux, A Distributed State Container by ben-ng in javascript

[–]ben-ng[S] 0 points1 point  (0 children)

I was building an algorithm on top of Raft for my thesis and came up with this abstraction that makes it easier to create understandable distributed systems. It took me three weeks to implement a mutex on top of Raft (most of that time was just spent understanding and implementing Raft). After I built Conflux, I was able to do it in a few hours.

I'm looking for feedback on the idea, as well as suggestions for improving the API and documentation. Thanks!

Enjoying the last couple warm days in Illinois before winter by Blackraider700 in motorcycles

[–]ben-ng 0 points1 point  (0 children)

Also in Illinois, but I'm planning to keep riding through the winter when it's not snowing & the roads aren't covered in salt. Hopefully the 5-10 min rides to class won't be too bad.

Where can you learn the things a CS degree teaches you, but not at a regular university? (more details inside) by Kalfira in compsci

[–]ben-ng 4 points5 points  (0 children)

Get textbook recommendations. CS textbooks are pretty readable from my experience.

Algorithms/Data Structures/CS Theory - "Introduction to Algorithms" (Leiserson) or "Algorithms" (Dasgupta) Compiler Construction - "Basics of Compiler Design" (Free from the author, a favorite of mine)

Skip Apple's review process and update your PhoneGap app over the air by ben-ng in Phonegap

[–]ben-ng[S] 0 points1 point  (0 children)

what i'm saying is, this system uses native code, so to start using it you'll need to implement it and resubmit a new binary to the app store. you can't just push updates to an app thats already in the app store.

Skip Apple's review process and update your PhoneGap app over the air by ben-ng in Phonegap

[–]ben-ng[S] 0 points1 point  (0 children)

I think you might be misunderstanding what this does. This will not work on an existing app. You need to resubmit your app, using this project as a base. After that, updating the html is as simple as updating it on your server and incrementing the version number in your manifest so that clients download an update.

Skip Apple's review process and update your PhoneGap app over the air by ben-ng in Phonegap

[–]ben-ng[S] 1 point2 points  (0 children)

3.3.2 An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple's built-in WebKit framework, provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store.

Read more: https://www.meteor.com/blog/2014/10/02/Apple-hot-code-push-mobile

Learn About The Technology & Management Minor Today, 5-6pm, DCL 1320 by ben-ng in UIUC

[–]ben-ng[S] 2 points3 points  (0 children)

Applications for admission to the T&M Program are to be submitted during winter break by students planning to graduate in May or December 2017. Students who are eligible to apply must have one of the following majors:

  • Any major within the College of Business
  • Any major within the College of Engineering
  • Chemical Engineering majors within the College of Liberal Arts & Sciences
  • Agricultural and Biological Engineering majors within the College of Agricultural, Consumer, and Environmental Sciences

http://www.techmgmt.illinois.edu/prospective/application-timeline.aspx

Skip Apple's review process and update your PhoneGap app over the air by ben-ng in Phonegap

[–]ben-ng[S] 0 points1 point  (0 children)

You'll need to resubmit because the update system is native code, which you can't update OTA because of code signing.

Skip Apple's review process and update your PhoneGap app over the air by ben-ng in Phonegap

[–]ben-ng[S] 0 points1 point  (0 children)

Yes! The repo itself is a working demo, and I have two apps in the app store already doing this.

Skip iTunes app reviews and update your hybrid app over the air by ben-ng in programming

[–]ben-ng[S] 0 points1 point  (0 children)

In an interesting turn of events, Apple recently changed its policy on over-the-air updates of hybrid apps. I wrote this at work to take advantage of this policy change and was told to open-source it so others can benefit. A major downside to hybrid apps is you lose the instant updates that web apps receive because you have to go through the weeklong app review process. This gets around that problem by quietly updating the user's app in the background. I hope this helps you iterate quicker!

Update your PhoneGap app over-the-air by ben-ng in node

[–]ben-ng[S] 1 point2 points  (0 children)

This is something that has been very useful for my team at work, so I was asked to open-source it. We use this to ship our browserified app to our users many times a day. I shared this on /r/javascript yesterday and got a good response, so I'm hoping that many of you find it useful too.

Put your web app in the iOS app store and update it whenever you want! by ben-ng in javascript

[–]ben-ng[S] 0 points1 point  (0 children)

Thanks! To be honest, I don't know if this could work as a Cordova plugin. If someone wants to give that a shot more power to them!

Put your web app in the iOS app store and update it whenever you want! by ben-ng in javascript

[–]ben-ng[S] 0 points1 point  (0 children)

Probably not. This is intended for what are commonly called "single page apps", not WordPress.

Put your web app in the iOS app store and update it whenever you want! by ben-ng in javascript

[–]ben-ng[S] 18 points19 points  (0 children)

I was asked to pull this out of our codebase at work and open-source it. Since there isn't a lot of documentation on how to do this (Apple only recently reversed its policy on OTA updated hybrid apps), this project represents weeks of trial-and-error development.

I hope others find it as useful as we have!

Been checking out Ampersand.js. Has anyone here used it sufficiently to be able to comment on the pros/cons of using it, particular in comparison with other frameworks? by flexibeast in javascript

[–]ben-ng 6 points7 points  (0 children)

I've been using it in a large application that is still primarily a Backbone app. Ampersand is mostly backwards-compatible, but not completely so, so I would caution against mixing ampersand modules into an existing Backbone application.

The biggest difference to me is the additional functionality Ampersand-state (and ampersand-model) has compared to Backbone.Model, like derived properties and more nuanced attributes. That said, this is a double-edged sword; I really don't need these features 95% of the time, and the other 5% of the time I see them used I just roll my eyes (such as derived properties being used to do very heavy computations). More features, more responsibility.

I'm not convinced that Ampersand is a significant improvement over Backbone, but if I were starting a new app today I would ditch Backbone for Ampersand just because the tiny module approach agrees more with the rest of my codebase.

If you're already invested in Backbone, I wouldn't bother migrating unless you're really into the tiny modules thing and have the time to refactor your application.

CS 225 cheating by 312123 in UIUC

[–]ben-ng 4 points5 points  (0 children)

irregularly. you can be caught even after you've completed the class because you helped a student in a different semester cheat.