Better HN
topnewbestaskshowjobs
Log inSign up

TuringTest

4,482 karma · joined Sep 28, 2012 (14y ago) · 2,101 submissions

Send me a note at turingt+fromhackernews (at) gmail.com

I hope the spam filter will respect it!

Submissions

comment 9y ago · link · parent

> Why couldn't you just go into the code and specify the error UI?

Because usability professionals typically don't know how to code.

> The GUI tool is just to aid with rapidly building stuff, not as a replacement.

My point in this thread is that, with a tool like this, it could be.

I said elsewhere that mockup tools used by UI designers already have a development environment very close to this one, and only a good code generator is missing.

A mockup environment which can communicate logic to the devs, and not just visuals, is everything these professionals need to create specifications fully in software without resorting to natural language that the developer needs to interpret.

comment 9y ago · link · parent

> The problem is that in order to play with the mockups and test them, you could create interactions that work with the expected happy path, but are not what the final application logic is supposed to be.

> With a tool like this, you could easily create an interaction that updates the UI immediately. It would look correct, but it would be wrong.

This also happens if you build the component in code, no? I fail to see how this is specific to a visual tool. A professional should take care of all cases, regarding of the medium of the tool.

> That's fine, but I don't count that as an interaction.

That was just the simplest example I came up with in ten seconds. For more complex examples of what interactions you can build purely with a visual tool that then spits code, see Apparatus [1] or Stop drawing dead fish. [2]

I can imagine building components easily in an environment like that. We already could do that in the Flash/ActionScript environment in a limited fashion, but the results were very limited (state could only be represented as a video timeline), and the platform itself was terrible.

[1] http://aprt.us/ [2] https://vimeo.com/64895205

comment 9y ago · link · parent

> I'm not sure if it's a good idea to allow actual interactions (`setState`, etc.) to be handled by a tool like this. The whole idea of such a tool is that you can develop components relatively in isolation, without having to mess with the application code.

A UI designer should be able to develop the interactions over a single component isolated. For example they could define a "Send form" event and tie it to the button and the "Enter" keypress all from the visual designer, just like you would do it in code.

In reactive programming, the effects of each interaction don't need to be represented as side-effects, but as output of events over a functional and composable "stream". UI designers can learn to think in that programming model, which is way saner than callback hell.

comment 9y ago · link · parent

> That doesn't look like what I was talking about. He basically has an entire new component for every possible state - and the state here is just a single variable.

With reactive programming being primarily functional, it should be relatively easy to refactor the output of a tool like this. You could split the states into its common components, maybe even using visual tools in the designer itself without having to touch the generated code.

I don't know if this tool will be able to do that, but I've seen that approach used in mockup tools for rapid prototyping. The only part missing in those tools to allow the interface designer to build the interaction logic by themselves was a sane code generator. With a language like React, I believe the generated code will resemble something usable, which was impossible when UI designers generated imperative or object-oriented code.

comment 9y ago · link · parent

User interface designers.

comment 9y ago · link · parent

> I wonder if drag-and-drop tools really provide that much value compared to just editing a component with instant live-preview on the side.

The idea is to have both. Finally this is possible thanks to reactive programming.

UI designers make mockup tools that basically support that kind of rule-making with drag and drop, but that logic cannot be exported to the development environment, only the visual components.

With a tool like the one in the article, this will be possible, and UI designers will be able to create the basic user interactions by themselves in the prototyping tool, rather than having to write them down in English in a specification document for developers to re-write them in a proper language.

comment 9y ago · link · parent

The declarative QML makes all the difference when building a user interface programmatically. You could create interfaces in Qt in the nineties, but you couldn't create mockups of the different states and integrate them without writing the supporting code for those states by hand.

comment 9y ago · link · parent

I have been waiting something like this for the last 20 years. We had a WYSIWYG editor in Visual Basic and Delphi, but procedural languages are not adequate to build the logic of the presentation layer.

The hope is that using Reactive programming, you won't need to wrestle what comes out of the tool, since the underlying language and programming model is finally capable of truly supporting components without lots of glue code, boilerplate and exceptions.

comment 9y ago · link · parent

> A memcpy/memove() runs at many GB/s on a typical machine today, so you would have to be editing absolutely huge files to notice.

That's only good if your text happen to be raw text; I guess it won't work so well if it's rich text with needs to be converted to lightweight objects before being processed, where you'll want every object to be memory-aligned. And I wonder how well that approach works if your virtual memory space is paginated, which wasn't common in the 90's, but is practically everywhere nowadays.

comment 9y ago · link · parent

There's unsafe hidden under an API that you know where you're using, and unsafe in every single line in your software. Just like there's changing state encapsulated in object methods, and changing state by assigning to global variables.

Theoretically it's just all the same, but in practice having reduced interfaces does wonders to reduce the complexity and being able to reason about what brings problems, and what doesn't.

comment 9y ago · link · parent

> If all three mobile OSes said "there is your industrial-grade isolated vm, do anything you want and note the time/battery/memory restrictions" then problem would be solved

Yes, well, being theoretically possible is not the same as being viable and having solved the chicken-and-egg problem. I think webasm has nowadays more possibilities to become adopted as the standard for a common platform.

comment 9y ago · link · parent

But how do you deploy VMs to the tightly controlled environment of mobile devices?

The good thing of web development today is that you can deploy the client side of any application to any smartphone, since all of them have been built with strong web browser support - and the browser is a fairly complete platform, with mayor browser being available and relatively compatible in all mobile and desktop systems. I don't know of any VM that shares those qualities.

comment 9y ago · link · parent

It was called Tab Center, but now the experiment has ended. Is there a way to install the extension now?

https://testpilot.firefox.com/experiments/tab-center

comment 9y ago · link · parent

Vivaldi, maybe? But I don't think it has nested tabs.

comment 9y ago · link · parent

> But what happened to Docbook?

What, isn't everybody using DITA nowadays? /s

comment 9y ago · link · parent

Well, isn't that basically how Hollywood makes blockbusters?

comment 9y ago · link · parent

That's an interesting and commonly occurring case for this kind of map. I wonder if the visualization would be improved by introducing visual connections between points that are nearby, and/or painting barriers between points that are close in the map but far away in reality.

comment 9y ago · link · parent

But doing that doesn't necessarily involves calculating a precise measurement of the ratios present in the metaphor. Human language conveys lots of meaning by evocative imaginery, too, so not all expressions should be taken literally.

Sometimes, taking the literal meaning might even distort the original message, like in this case changing the mosquito with a goose - if that had been the original expression, everyone would have wondered why the author chose such strange comparison.

comment 9y ago · link · parent

> In Haskell, higher level functions can be composed from other functions, which is very clean. But the state isn't inside the function

> ... Another perspective is thinking about building large scale systems and coupling of modules

Both models have been proven formally equivalent, so it doesn't matter which one you use as the base computation model "all the way down"; you can always transform one into the other.

So in practice you end using the one which best represents the problem domain that you're solving. State-based object-orientation works best to represent simulations of the world where previous states are not needed. Functional is best when you need to reason about the properties of the system, since it allows you to access any present or past state of the computation.

comment 9y ago · link · parent

You're right about DSLs; they're the greatest tool for tasks that require a formal spec.

The thing is, not all tasks that users engage with need a formal sspecification. For those, the ability to iterate and refine quickly is more valuable than having a precise description of every machine behaviour; I'm thing of things like page structure on Wikipedia (optional, and done with simple text markup); or the structure of documents in outlets like OneNote or Evernote, or attributes in Excel tables, which are all easy to re-arrange on the fly without needing a data schema.

All my examples refer to data structure. What's missing is that kind of lightweight, optional structure for behaviour. All current software, except debuggers and unit tests, expect a fully defined program to be defined before execution.

Power users need a top level loop that could execute partially specified functions over any DSL, prompting user input for the parts of the procedure not yet specified, and the capability to expand the DSLs themselves. There's nothing in the status quo like that, although environments like Hypertalk, Squeak and Excel are close, yet limited to a single DSL each.

comment 9y ago · link · parent

Sure, whatever it takes. I've just written the same thing at another recent thread, so we agree on that.

comment 9y ago · link · parent

> You don't need to be able to write down in a blank sheet what you actually want to do if you don't need someone else to do what you want to do.

This.

Why is it so hard for developers to understand this simple idea?

Life in computing would be so much easier if the people building the system understood what part of their job is essential (finding out the best way to arrange hardware and software to satisfy a requirement) and which part is circumstancial, gathering a set of precise requirements to begin with.

The last part wouldn't be needed if end users were able to build their own working prototypes to solve their needs, and engineers were simply called to rebuild the prototype with best engineering practices.

comment 9y ago · link · parent

You'd be surprised the kind of people who's able to create functional applications and complex data models in my office. The point for common users to define software behaviour is doing it iteratively, with every step being based on a previous functional version.

comment 9y ago · link · parent

What's missing in today's software is described by the field of End User Development, the ability for normal people to craft new software artifacts without the need to learn a formal programming language.

For most people, using computers means being force-feed a selection of existing applications; and most applications are pro- consumption, which is favoured by the media companies.

App stores (and the Linux repositories that preceded them) were a significant advance for the public, as they allowed common people top be able to find tools to cover their needs; previous to that, only power users were able to tune the computer to their needs.

However, non-developers still depend on the capabilities put in there by the developers, and can't fine-tune their behaviour.

comment 9y ago · link · parent

Which is the reason why it makes sense to write new applications in a dynamic language, and later port critical parts of it to more static compiled ones.

comment 9y ago · link · parent

What makes you think the new system will be sustainable, or loosely federated? If we go by the known examples of Uber and AirBnB, the new tools produce environments where power is even more concentrated, and independent contractors are squeezed to the lowest viable income levels by competition.

comment 9y ago · link · parent

You need to cater to eyeballs so that people keeps buying the merchandise. Disney, together with Coca Cola, are the world leaders of creating a brand that feels like an essential part of your life; and it all depends on keeping the core product relevant.

comment 9y ago · link · parent

While not the intended use case, I find Interface to be surprisingly readable at extremely tiny font sizes (7, 6, and even 5!).

Sure, you shouldn't be designing an interface with those sizes, but it may be something to consider for some zooming interfaces (primarily maps with lots of tags: street names, POIs, etc.)

comment 9y ago · link · parent

Yeah, there's definitely some previous knowledge of the kinds of objects it's inferring, which is used to deduce the parts.

Look at the chairs' legs, where it's transforming the flat base of the rotating chair into something that looks as wheels, and where it's completely missing the bars connecting the legs in the second tall chair.

1
484950
71