better sort in JavaScript

Better Sort Ordering in JavaScript

Lou Mauget Development Technologies, JavaScript, Programming, Tutorial Leave a Comment

In this post, I show how to cajole Array.sort() into producing the following order. This: [Item 1, Item 2, Item 100] instead of this…[Item 1, Item 100, Item 2].

The answer is to pass the sort function a comparator argument from the International Collator built into every major browser and Node.js. This approach is simple and declarative for lists of flat strings. The comparison function arguments default to each string being compared. For sorting objects such as a list of dropdown choices, just pass a pair of the sort field drill-downs to the comparison function.

Designing Digital Product Without User Data

Designing Digital Products Without User Research

Rus Anderson Consulting, Design, UI/UX Leave a Comment

Often, we are approached by startups and established companies with an idea for a new product. Just as often, there is little to no user base from which to conduct research. In this blog, we’ll look at how to understand the product, its potential users, and how to create the application with minimal user data and investment.

Keyhole Releases Updated Design Tool, MockOla

Keyhole Software Company News, Design, Keyhole, Keyhole Creations Leave a Comment

Keyhole Labs has released an updated version of the design tool, MockOla. MockOla gives users the power to build beautiful UI wireframes, free-form designs, flow charts, and UML diagrams. Insert elements from specialized palettes by simply dragging and dropping them onto the canvas. Easily add, move, reshape, and customize the elements to fit your unique design purpose. Share your designs by downloading them in either JSON or PNG format, or save your designs locally to access and edit them later.

Java-Based UI Frameworks

Rik Scarborough Java, Programming 1 Comment

In today’s development environment, there is an abundance of frameworks that we can choose from for front-end or user interface (UI) work.

I was recently talking with a friend about UI development. He has also been a programmer since programming was considered an arcane art (when those of us that did it were considered like Gandalf the Grey facing the Balrog). Or maybe we just saw ourselves that way. Regardless, both of us have been Java programmers for a great deal of that time.

We both lamented the fact that it was a context switch to go from coding most of our projects in Java, then needing to switch to JavaScript for the front end.

Based on conversations I’ve seen online, several readers are warming up their keyboards to chide me for complaining about having to code in JavaScript. Keep your keys cool, both of us and our co-workers are experienced in, and happy to write in, JavaScript and any of its frameworks for our clients. But using JavaScript isn’t always the best approach.

 In this post, we introduce two frameworks that allow you to code your user interface in Java: GWT & Vaadin…