The Present & Future of Web Development

The Present & Future of Web Development

The Present & Future of Web Development But before we talk aboutthe future and the present, how about we goback memory lane? So I had this exactsame slide, I think, last year– slightly different. So do you guysknow what that is? Any guess? No? It’s too old. AUDIENCE: It’s aNeXT application. BENOIT MARCHANT: That’s right. But it’s not anyNeXT application. It’s, whichwas the first application that Tim Berners-Lee wroteat CERN on a

NeXT Cube, where he was able to crystallizethe idea of what the web was going to be. And Tim sayssomething, that I could do in a couple of monthswhat it would take me over a year on others. And if I count correctly,that’s about six times faster. So what’s important hereis that it turned out that Tim had access to thatspecific machine, which was the first complete wayto

provide the complete [INAUDIBLE] approach tonot only development, but also authoringwith Interface Builder. And that made himcapable of expressing his ideas a lot faster. He would have been ableto do the same thing on Windows or onUnix, most likely. It was just that it tookhim six times longer. He may have given up. He may have gotdistracted, or sidetracked. So anyway.

So that’s what the powerof platform is– is it lets you do something fasterthat you could probably do otherwise, but do it faster. So if you look at what platformwe’ve been living with, the first really– two big onethat we know in the PC era– we have the Mac one, whichtoday is inherited from NeXT. In all these platformsI’m going to go through, you’re going tosee two patterns. There’s a layerof all frameworks.

And then there’s alayer on top which is more in terms of authoring,what we call [INAUDIBLE] or this kind of thing. They are visual tools. They are software forus, for developers, so we can work faster. Microsoft’s anotherbig, big platform. Same thing. You got .NET and you’vegot Visual Studio. Another one thatwas very successful is kind of like gone now–for all practical purposes– is Adobe Flash.

You had Flash Runtime,ActionScript 3 and all that stuff. And then you had theFlash Professional, which used to becalled Flash Builder. And that layer,especially Flash, is– as far as I know– theonly platform that was able, when it was actuallyin the work in action, to bring designers anddevelopers together. You could haveinteractive designers working on the same medium thatthe application will begin.

And that is unfortunately gone. And it’s a big, big miss. And we need to get that back. So why does it matter? These platforms letyou create software. And on the web platform, we arefocusing on the front end here. [INAUDIBLE] I suppose. I’m sure some of you do by hand. But if we focus on whatwe do inside the browser, these are meant to beused by people, right? Not by services, by other[INAUDIBLE], by people. So we knew for along time, but it’s been re-stated very clearlyby Apple’s iPhone success, that the way you interactwith an app is critical.

If your app is noteasy to use, intuitive, just by pure attentiondisorder, people will just move onand try another one. So you’ve got to payattention to that. And to do that, youneed two things. Like I said, you need designerand developer working very well with each other, to make surethat you get the best option. But you also needto be performant. If you’re slow, if it’s notresponsive,

well-conceived but poorly executed, it’snot going to work, either. So let’s focus on thedeveloper-designer relationship. It turned out that I thinkthe web platform is the best to solve that problem. Why? Because we naturallyhave CSS, and that’s for more presentationthat’s used by designer. We have JavaScript, which isa programming language that is used to code thelogic of an application. And there’s the magicalHTML in the middle that actually bringthem together.

HTML combine with CSSis a presentation. HTML combined with JavaScriptis for the development. But the problem istoday, many solutions that exist are favoringone or favoring the other, versus looking at[INAUDIBLE] as a whole. Like, you don’t make softwarewith designers on one side and developers onthe other side. If you do that, it doesn’t work. It costs a lot of money,from not much good results. So that’s the very interestingpart, getting them together.

The other aspect is performance. So the web has notbeen growing to what it is today– which isprobably the biggest software platform in the world– by itsexcellence in user experience. Unfortunately. It has grown byexcellence in linking. Right? You click on something. You load the pagesomewhere else. You’re there. Instantly. You don’t need todownload anything. There’s no friction. You just navigate around. You could do that forever,right, until you die, really. The Present & Future of Web Development

And that has brought theweb [INAUDIBLE] system to what it is. Now, there was anarticle recently on the blog post from someonefrom Andreessen Horowitz that was claiming– andunfortunately, the numbers are true– which is, themobile web is declining. Like, more and more peoplespend more and more time on native apps,versus mobile web. Whatever that mobileweb is, whether it takes the form of what youthink is an application, or whether it’s site optimized[INAUDIBLE], it doesn’t matter.

People are spendingmore time in apps. Why? Because it works betterfor them, I suppose. Right? People don’t care howyou make your app. That’s not their problem. They just want to use it tosolve what the program does. So, how can we solve that? So, if you look atclient application and [INAUDIBLE]iOS– or same thing will be for Cocoa ordesktop for that matter– you have the entirecode of the application that runs on the client. All the assets start from there.

And then eventually, ifyour application has a Cloud component, then the codehas all the logic then turned back to the server. And then talk to themand get data back. What I want to focuson is the same thing– is rich client applicationswhere your applications still are being built withJava and XML files, or Objective C andstylized Object is built with HTML[INAUDIBLE] and CSS. Other than that, so these assetswill be served as on demand or wrapped into an [INAUDIBLE],if you want to that. And I agree, that works fine. And then the wholelogic is coded with these static assets,and then same thing. They turn back, and they goto the back end to get data. After that point, you’reback in the same kind of architecture of applications. The problem isthat we don’t have as much tools to helpus do that on the web. So what can we do? Well, there’s beena platform

that’s been around for avery long time, right? 35 years in the making,to go from NeXTSTEP to Web Objects, which wasthe first object-oriented application server in theworld, to MAC OS and now to iOS. 35 years of engineering onthe same code base, refined. Can you imagine that? 35 years?! There’s not a single stack outthere that has lived so long. Not even on Microsoft side. They’ve done manyiterations of Visual Basic. They ditch the early Windowsversion several times. Now .

NET has beenstable for a while. But it’s not 35 years. It’s like 10, right? But the length doesn’t matter. What matters is thatthrough these 35 years, millions of desktop, web,and mobile applications were built by millionsof developers. So, which tells mesomething– if these guys were able to shape that manyiterations of applications, what they’ve been using–and I was one of them, so I know from the inside–was really helpful. Otherwise, theywould have

failed, and they would haveused something else. So, the question is whyshould we reinvent the wheel. We should just go and steal it. So, how about we take all ofthat, and take the concepts that are coming from there, andlook at if it can be useful. So WebObjects hadan extremely well designed components, whichwas very well-abstracted, very well-designed. Proven many times. They have templatesin these components. Cocoa has something likethe Draw Loop, which is something veryimportant to be able to paint only as needed,as frequently as you can. And that degrades gracefullywhen your CPU or GPU is not as quick as you

would want. But you still read repaintingthe last action from the user. That is a designthat is critical. And I guess what? It’s been invented on NeXTSTEPwhen it was on Motorola 6040. Which right now isspeed demons, right? Those they had thatprogram before, on desktop beforewe had even mobile. So, all of that,[INAUDIBLE] 5 is something what we decided to do. We call that MontageJS. But that was the spirit behind. It’s like, steal the good ideas. Make sure we translate, we applygood editorial appreciation to make that non-Cocoa-like,but more web-like.

But take the key pattern thatwe need to grow and do that. So that’s one pieceof the puzzle. That’s just a layer. Now once you do that,you have to go and build the rest of the platform,which is growing up the stack and offering whatI would call a universal SDK. Because HTML5 is universal. It just runs [INAUDIBLE]. We don’t have todo anything for it. And build another set of layerthat helps you work not just by hand-cutting everything. There’s nothing wrongwith hand-cutting. But there are actuallyfaster way to work. I’m going to show you some.

So try to grow theplatform from the bottom up to have something that is onpar at some point in the future with what the nativeenvironments has to offer. So now I’m going toswitch to showing you a demo of what that can be. So this is MontageStudio. So MontageStudio is layeron top of MontageJS, trying to provide analternative environment that lets you do thingsin a way that are more efficient in certain ways. It’s not about removingthe coding, necessarily. It’s just replacingsome of the coding we do that’s not veryinteresting or productive, and just doing itslightly differently. So, MontageStudiosits on top of GitHub. So I’m alreadyauthenticated as myself. So what you see hereare some of the The Present & Future of Web Development

programs I have in my GitHub account. So, we’re going totake a look at one demo that we show at JSConf. And it’s a demo that uses therecipe of WordPress, which will be standard in the coreof WordPress later this year. And we just wanted to showwhat we could do with that. So here you see theanatomy of MontageStudio. So, on the left side you haveall the assets of the project. So one thing youshould realize here, if you’re in that ecosystem,is the node modules. So MontageJS uses CommonJS. So we have here apackaged edition. That’s what you would expect. Except that webuilt a UI for it. So this is the onlyUI in the world to manage [INAUDIBLE]packages, actually. We did it for the front-end. But you have here the basics–the name, the version. Here the dependencies. And here this isdirectly wired to NPM. So if you’re going to addsomething for Facebook, for example, you couldsearch that and see what. So there’s 20 packages. You could just do that andjust add the dependency, if you want to. I’m not going to do that,but you get the idea. So, every Montage applicationstarts by the main component, which by the way, the indexis as simple as you can get. You got all the CSS you want. This is old boilerplatefor the icons. So you can host thaton your home device, on your home screenif you wanted to. And the only object thatwe start with is a loader. You can customizeyour own loader. This is a real web page. So if you have a firstlevel of animation you want to brand your page,this is just a web page. Just go in and do that. So, by convention–and again, you can override that– the maincomponent we load is this. So, you know what, since thescreen is actually small, I’m going to bring alittle helper here. It’s not huge, butthat should do it. OK. So one thing weoffer is Life Review. So this is the app itself,that we [INAUDIBLE]. So I’ll show you how it works. We get all the assetsfrom the WordPress, and we just render itwith a nice [INAUDIBLE]. So I’m going to use that URLand put it inside the iPad. So, OK. So when I do that, I’mbeing asked a code. So for security, you don’twant anybody to snoop in, so I’m going topunch in the code. It’s a-a-k, a-a-k-c,and k-d-c-f, right? OK. You can join, too, ifyou want, by the way. If you have a device, andyou want to follow that, be my guest. So that URL. And once you get there–anyone want to try? AUDIENCE: Sure. BENOIT MARCHANT: It’s up to you. I just need to know, so Iswitch to the other one or not. So here’s the app. Here’s the apprunning on a device. OK? So, let’s go back to lookat what we have here. So every componentin Montage lives in a folder, which hasdot real extension. So it’s a convention. And if you openthat folder, you’re going to see it’sall a mini-site. So the templates ofcomponents in Montage are full HTML5

documents,with doctype and all. Which means, you cangive it to a web designer that have no idea about Montage. And he’s going to write a pagelike he would write otherwise, with his own link CSS,which is that CSS here. That’s the CSS ofthe main component. It’s a CSS page. And it’s linked through a link,as here, as you would expect. So that’s all createdby default for you when you create a component. And the reason why itwas designed that way was to facilitate how webdesigners and web developers work with each other. There’s no templatinglanguage in MontageJS, because we don’t like that. And it’s inefficient. You have to learn it. And then you got logicthat bleed into your code. It’s not standard. You can’t viewthat by [INAUDIBLE] having the templatinglogic running. It’s there. No. We don’t need that. So, in Montage, theway the templating work

is by associatinga component, which is a Montage objectto a DOM element. Once you’ve madethat association, that component is takingover that piece of the DOM as his own. And if he has hisown template, he’s going to bring that from hisown template, bringing it in and replace the tag you assignedto him with whatever he needs. If he needssomething, he can just write code into the[INAUDIBLE] then just insert stuff therewith no template. You can do that too. So, the whole pointof MontageStudio is so you don’t have to godown if you don’t want to. So I’m going to closethat and go back to here. So here you have a more highlevel view of what’s going on. How many of you arefamiliar with Cocoa? AUDIENCE: [INAUDIBLE] BENOIT MARCHANT: OK. So the same concept existsin Cocoa,

in the nib. Where the owner is aplaceholder for the object that’s going toload the template. So it’s going to bea component here. So the component isgoing to load that thing. And each component of that kindis going to load that thing. And each time a newinstance is going to be the owner, theplaceholder, right? So the placeholderis your component. And here, underneaththat– it’s indented to show the relationship–you have all the objects that were created to implementthat main component. So you have theWordPress connector, which is a JavaScript object. It’s more like a model layer,that’s [INAUDIBLE] talking rest to JSON, to WordPress. That’s what the guys do. The post-controller isa wrench controller. So it’s going to get anarray of JSON objects, and it’s going to manage thatfor you, dealing with the UI. So he’s going to Take Selection.

You can change the rangeyou want to display, stuff like that. Again, similar to whatyou find other places. The header is this, the top. We have a WordPresslogo, the title, and that’s the bar on top. Then you got the post. So the post is what youget when you click on one. So that’s the post. That’s the postcomponent, right there. We’re going to go in detail. And you got the flow. So the flow is a bitof a magical component. The flow is the one thatdoes the 3D carousel effect. And, the flow is– well, onething we believe it a lot in is composition.

So the flow lets you,from the outside, tell what you want to flow,what kind of components. So here we’reflowing a card then. You can flow your ownthing, if you want to. So the card isjust that component here, which is basicallyshowing– it’s one of these. That that’s a card. That’s a card component. And the card componenthas his own [INAUDIBLE], of course, where you have thetext, and you have the image. As you would expect,there’s image and text. That’s all there is. And if you look at howthey’re done inside, if you want to go down toHTML, you got the CSS here. And the code is simple.

You got the div. That data-montage-idis how we hook up the serialization ofobject to the DOM. And then the restis just the front of the card, theback of the card. I mean, it’s well-organized. And one of the benefits ofstructuring an app like that is you can havemultiple people working on all these componentsat the same time. They should be designed so youcan reuse them in other places. So they are all self-contained. They get data inthrough the owner. You pass data to that. And then the ownerbasically delegates, if he wants to,

thesedata to sub-components to do the rendering. Until you reach a point whereyou need a complex widget, and then you’re goingto use a component to implement a complexwidget as well, like the flow, for example. It’s a component itself. So, let’s go back to the main. And I would like to showyou a bit more of what you can do with the flow. So the flow is a componentthat has– so by the way, here. Let’s finish the tour. Here you have thetree of the body. And the blue shows you whichcomponents are assigned to it. On the right side, youhave the inspector. So these are dynamicproperties that we have a system of metadata. So for example, Ican go in the owner. I can add a priority andsay it’s going to be foo.

And foo would be– so hereit just created an inspector entry for foo on the fly. And if I tell it thatfoo is a Boolean, it’s going to turnthat into a check box. So the more effort youmake to create semantic around your objects,the more we can help you to do stufflike auto-complete when you do datamining and stuff. So for example,when you look at, for example, thebindings that gets the contents insidethe controller, that binding bindthe content property of the wrenchcontroller to the source of the data, which is theWordPress That’s the array that you get. So if you provide metadata,we know– has you [INAUDIBLE] the path– we know we canhelp you navigate that more effectively.

So on the right side here, youhave basically the contents of the packagesthat you’ve decided to use in your package manager. So here we have theapp, you restart the app, whichmeans you see here all the ones that you see here. So you can reinstantiatethat component you created in otherplaces in your app. Once you create it, justbecome available immediately to be reused. Down there you see Montage,which is the base firmware. And then there’s Digit,which is a widget set designed for Touch. And then there’sanother package which is to get the WordPressspecific information. You also have assets here. There’s none here.

So, let’s go back to the flow. So the flow is acomplex object where you can have elastic scrolling. Elastic scrolling–let me show you. If I remove that, and youjust scroll, it’s linear. If you add elasticscrolling, however, you’re going to see thecards spread together. And then they getcloser together, based on the speedof which you scroll. But, let’s go to theinspector of the flow. So the flow is ajuried component where you can authorthe path of the objects. It’s like a list. Except that, the list isreally a 3D basic curve. So instead of being linear,vertical, or horizontal, you can do pretty muchas anything you want. So, to show youwhat that mean,

I’m going to try to dosomething acrobatic, which is, I can change the curve here. And you can see in real timeon your device what this means. OK. I can change thathere, the other sides, make them morestacked, turn around. And you can go on eachnote, for example, and you can assign properties. So let’s say on thisone, on the end, we want them to rotateas they go, for example. So you could do a Rotate Yas they move toward the end. So now when you scroll,they rotate to the left. You can accentuate that. Whoops. Sorry. And what’s great is youcan do that on an iPad. You can do that onanother device, portrait. You can do that onanother one Android. And you can share that withyour team or your customer, wherever they are. Because this is allthrough the Cloud.

And that’s not somethingthat’s specific to the flow. Like, any components youad to your project or you remove or youtweak, you’re going to benefit from the same thing. So, especially whenyou start being able to reuse componentthat way, some of them will be reused in severalplaces in your app. They may have different sizes. They may be receivingdifferent kind of data. So you can put three versionsof your app in different states, where you exemplify thesedifferent places where the component is used andget data from your Cloud. And then you canstart making changes. You’re going to see immediately,as you make changes, how impacts the three placeswhere that component is used.

So instead of doing iterativeQA one after the other, you can see rightaway as you do it. You have the rightinformation to make editorial decisionslike, oh no, OK. I just did that. But it screwed upthe Android one. OK. I need to do something else. You know immediately. So that’s an example of whatyou can do with the flow. Any question? No? It doesn’t feel too magic. AUDIENCE: It’s [INAUDIBLE] BENOIT MARCHANT:There’s no magic. Let’s talk how it happens. The reason why–so, network-wise, it’s all WebSockets. There’s no other way todo that on the website. But the reason whywe’re able to do that is because of the designchoices

that we’ve made, the way these reelsare structured. We have a serializationof objects. We know the entire tree ofyour app because you told us. It’s right in their face. It’s not imperativecode that we can’t read. There’s no divinationgoing on, right? If that was written by purecode, hand-coding everything, you couldn’t doanything with it. Because you don’thave the information. Now we have a tree. We have a tree of component. And in each component,we have a tree. We know which objects are beinginstantiated, of what type they are, what parity they have. So when you changethe parities here, we know where to put them,and each of the client are connected to it, andapply

the very same changes to the distance sibling inthe same place in the app. Same for adding, right? When you’re adding anobject to the reel, we know which reelyou’re adding it to. We are going add an object ofthe same time in your client’s on the fly. Same when you remove. So it’s really reapingthe benefits of– and we did that for a reasonso we could do stuff like that. But there’s no magic. Once you understand howit works, it’s like, duh. OK. Yeah, sure. But it’s still very practical. So, yes? AUDIENCE: How does itwork with dynamic content? This looks like a static content[INAUDIBLE] data [INAUDIBLE] getting added basedon some [INAUDIBLE] BENOIT MARCHANT: Yeah. So that’s basedon the [INAUDIBLE] content of the WordPressinstance we’re talking to. So in that case, the

[INAUDIBLE]because it’s a demo one. So, if you had a largecollection of data, then it’s all a matterof managing the cursor as you move the array. And it can segue to highlightthe fact that the flow component has fresh [INAUDIBLE]. So you could have 5,000 images. We would only display– 1, 2, 3,4, 5, 6– let’s say 10 of them. And not the rest. The flow knows–mathematically speaking, we analyzed the busy curve. We know what’s clippedand what isn’t. And we only renderwhat’s visible. So it’s like an infinite list. It’s what you wantwith an infinite list. You only render what you seeand plus some buffer run, eventually.

And as you scroll,what we do internally is, the objects in thearray are rebounded to the ones that are visible. So the DOM never changes. We don’t destroy andrecreate the DOM. That would not work at all. You couldn’t get that kind offirmware if we’re doing that. We are reusing the exactsame DOM structure. We’re just [INAUDIBLE] newdata from the different objects you’re scrollingthrough to them. So, we haven’tfinished the part where you can lazily– from a datagetting standpoint– get data. Stop. Use. Get data. Stop. Use. That is on your own to do. But once you reach the UIlayer, it’s taken care. That make sense? So, one thing that we’vealso been looking at– and I’m going toclose that project. Get back to the other one. We’re going to do some 3D. We’ve been looking at3D as,

very excited to see that with WebGL. And we’ve been investigating onthat for the past three years now. And we want to bring 3D to themainstream, and not in a way that only WebGLdeveloper can do it. We want to help package 3D in away that– I don’t know WebGL. I can’t code WebGL. I never learned. But if you’re tellingme that there’s an object that’swell-packaged, I pretty well be able to dosomething with that if you tell me which API he has. I don’t need to know the inside. That’s the whole point. We’re trying builda system where you can reusesomeone else’s work. But you don’t haveto know the inside, because that’s their problem. That’s not yours. You should just be enjoyingit and just using it.

So, we are also very happyto see two of our demos which are on thewebsite, the apartment demo and the[INAUDIBLE] featured by Apple at the last WWDCat their WebGL station where they announcedthey were supporting it. So, let me show youwhat we’re going to do. So, here it’s a blank app. There’s main.reel. If you createsomething from scratch, that’s what you would see. So, what we’re going todo is launch the preview. I’m going to kill that guy. And the preview is emptybecause the app is empty. So, we have a model here that’sa model of a space fighter.

So in order to makea model to display, we have a 3D packagehere at the bottom. So I’m going to takea sceneView first. So the sceneView you bring isdiv and the canvas to draw. And I’m going to add a scene. So the scene has a pathwhere you can set a model. So if we go to the assetlibrary, I have a model here. Which is a COLLADA model. So a DAE file, which we’reconverting on the fly to gLTF So a gLTF is goingto be a standard this year, a [INAUDIBLE]standard by Kronos, that we’ve initiated two yearsago when I was at Motorola– three years ago now. The Present & Future of Web Development

So what gLTF does– COLLADA,if you’re not familiar, it’s a standard fileformat that takes the output of 3D authoringtool like Maya, 3DS Max, and make into a consistent XML. So we can reloadinto another editor. Some of these are betterthings than others. So it’s how youcan exchange stuff. So it’s all XML, because itwas done, like, 15 years ago. So [INAUDIBLE] isthat a suggestion to be more efficient toprocess on the client side, but also as featureso you can compress, to get to your mobiledevices faster. And also realign thedata so that it’s friendly with WebGL, whichthe COLLADA standard is not. So that’s the gLTF. So it’s basically 3D model,as JSON, to simplify. So now, I need to add–so the scene view. The Present & Future of Web Development

Take the scene. So I’m going to grab thescene icon and assign it here. And we’re going togive it some size. So let’s say, screen’s small,so let’s say 8 hundreds by, let’s say, 8 hundreds. OK. So now here, we should besomething [INAUDIBLE] here. Maybe– Here we go. Here we have– that’s the3D model I just dumped. OK. So it comes. It’s on material orit’s on lighting. So how about we–I bet that would look better if hewas in the dark. It’s a space fighter. So we can go to themain.reel and change the CSS. And we are just going todo background color black. Sorry, I don’t have the stars. But it’s kind of dark. Anyway. So, how about we do astealth space fighter. So if we explore themodel a little bit more.The Present & Future of Web Development

The scene has, like theflow, a special editor. Which brings us here,where it’s a [INAUDIBLE] where you see thebounding box, right? And if you look inside, you cansee the nodes, the 3D nodes, the material, thelight, the camera. Which there’s nothing here. But there are two materials. So what I can do hereis take that material and make it an object. And once I’ve done that, nowI have a material object here. So that material has twoproperties– image and opacity. So what I would liketo do is control the opacity of the material. So I’m going to goback to my library. I’m going to takea slider, and I’m going to add theslider at the bottom. So if everythingworks as expected, and of course it doesn’t. Where did that slider go? I did not want that to be– OK. I need that again. Recreate. All right. So, slider. OK. So now it’s kind of clipped,so let me add some padding. The Present & Future of Web Development

AUDIENCE: Is there a previewhere to this one as well? BENOIT MARCHANT: Sorry? AUDIENCE: A previewcode to this? BENOIT MARCHANT: Yes. Absolutely. You should– did youtry to connect to it? AUDIENCE: Yes. It’s asking me forthe preview code. BENOIT MARCHANT: Umm. Ah crap. I think I just– closed. Where is that preview code? Where’d he go? No. I want [INAUDIBLE] Yeah. Sorry. I ditched it. I’m not sure how to get it back. We can try later. AUDIENCE: That’s all right. BENOIT MARCHANT: So, I’mgoing to add some padding [INAUDIBLE] top. Yeah. Here we go. OK, so now we have a sliderthat doesn’t do anything. The Present & Future of Web Development

So what we want to do is getthe value out of the slider and bind it to the opacityproperty of the material. So we’re going to createa binding on the material. So as we type, weknow the metadata. So opacity is going to bebound to the slider.value. Nope. [INAUDIBLE] .value. Here we go. So one way, because wedon’t care otherwise. Or actually, theslider max is 100, which is not good forthe opacity in CSS. So what we’re going todo is– we redid that. And we’re goingto divide by 100. OK. Which, let me showyou something. Montage bindings have a fulllogical language in them. So you can write expressions. You can test. The Present & Future of Web Development

You can do MapReduce. You can do logicaloperations in there. I won’t recommend that youcall the interapp like that. You probably could alot, but it’s really meant to help keep y-ratedcode inside [INAUDIBLE] versus in your JavaScriptcomponents code, which is here. So the main.js like, anythingyou want your owner to handle, like tracking evidenceof the objects inside, applying logic, gettingdata or things to someone else, that would beinside the main.js. But for UI logic [INAUDIBLE],that should be enough. So now, if the bindingwork, here we go. We have that guydisappearing, except that guy. The Present & Future of Web Development

Huh. So much for stealth, if yourcockpit’s still visible. So it turns out that there aretwo materials in the model. So if we go back tothe model to scene, there’s a second– there we go. There’s second material here. So we’re going to take thatone, this section here, promoted as an object to use. Then we have that guy. And we can take that bindingand duplicate it as well. It’s the same object. So might as well save code. So now, if you gohere, normally if we make that guy in thefront, then the cockpit will disappear as well. There you go out. And again, we could go and lookat the WebGL as being generated or inside that space fighter.

I invite you to dothat but– yeah, you don’t need to knowthat to make that useful. So that was the whole point. This is officially notrated to that model. I mean, we’ve done the apartmentdemo I invite you to look at. We’re working on themedical application with a heart, as asales tool, for example. We’ve done the car. I mean, there’smany applications where 3D is coming tothe mainstream that are not 3D high-endfirst shooter games, and are very, very useful. I mean, there’s a lotof potential in retail, for example, like configuringshoes, configuring shirts. Of course, there’s allthe 3D printing movement that’s also coming. Anyway, so this isour opinion of what a platform withauthoring could be and is for the wave in a waythat brings concepts from existing environmentthat have proven to be very successful, asmuch as seeking to standards and trying to make themost of what people learn, and make the most ofwhat they already know, without having to askthem learn too much. Another example of thatis the event system. In MontageJS, the eventsystem is completely modeled on the DOM one. So we’ve implemented dispatchevents,

add remote listener and remove event listener, whichare the three basic– and hand deliverance– onMontage objects. So if you’re MontageObjects, and you want to dispatch anevent, like for example the slider I thinksends an action event, like a button does. You can track that eventby doing My Button dot add a new listener action, theyuse capture and bubble. And we imprint and captureand bubble the same way. The componentsrepresent a tree, which is kind of a subsetof the DOM tree. And you may wantyour component– you decide, right, whenyou create your event whether that event’sgoing to bubble or not. And if you wantthat to go, then you want that to go up thechain of your components the exact same way. Same API. So we tried to really surgicallyadd stuff where it made sense. You won’t find anyAPI in Montage, and that’s by design, that[INAUDIBLE] you to know CSS. No. We will help developer withmore advanced UI tool for that. But it’s not through the API. It’s through a[INAUDIBLE] interaction. If you don’t knowCSS, you’re not going to be happy withMontage, for sure. So go find a buddy thatdoes know CSS, or go do something else. Or, more important, go learnit, because it’s worth it. So, let’s go back to the slides. And you are that. Here we go. AUDIENCE: So I have a question. BENOIT MARCHANT: Yep. AUDIENCE: So I saw itin the WordPress demo. BENOIT MARCHANT: Yep. AUDIENCE: And it tookan exceedingly long time with the spinning [INAUDIBLE]. I mean, is there anyway you can tweak progressive loading,lazy loading? BENOIT MARCHANT: Um.

Yes. So, Montage iscompletely modular. So there’s a busybootstrapping core like you would getin any [INAUDIBLE]. After that, you’re only goingto get what you basically put in your reels. So you only load whatyou actually use, right? So, there’s twoaspect to answer that. First, it shouldn’ttake that long. Because mine didn’t. I don’t know why yours did. The consequence ofbeing extremely modular is you have a hugeamount of file. Every component come withHTML5, CSS, JavaScript. So that’s a lot of moving parts. So when you deploy,we have a process. And it’s right away insidethe tool, it’s called mop, which stands forMontage optimizer. That’s doing a [INAUDIBLE]. Again, we know the tree. So we can [INAUDIBLE] the tree. And we can recombineall the HTML and JavaScripts is as little asone file, for your entire app. Or you can [INAUDIBLE]through

six files if you wanted to makeuse of parallel request. So, the next step whichwe haven’t done yet, because it’s morecomplicated, would be a CSS. And as much as itsounds logical, that if you were embedded64-bit encoded images inside CSS to reduce the number ofrequests to work better, sometimes it doesn’t. AUDIENCE: [INAUDIBLE] BENOIT MARCHANT: Exactly. It’s unfortunate, but. So we can go andhelp more in that to minimize the numberof resources call. We could also embed CSSitself inside the HTML. But we have toreanalyze all the URL because they’re relatedto the CSS file. And If you put into a[INAUDIBLE] embedded, then things change. So it’s not impossible,but we haven’t done that. So, that’s the first stepthat you should never deploy your Montage[INAUDIBLE] without moping it. That would be [INAUDIBLE]for the team, which is the case of whatyou’re looking at. The second aspect, whichis more manual now, but– we have a fewcomponents, like one of them

is a substitution. A substitution is like a tabview, logically speaking, but without the UI. It’s a componentyou can tell, OK– it’s when a[INAUDIBLE] is matched, you’re going to putthat component in. When another oneis matched, you’re going to put that one in. These components helps you delaythe decision of what to use. And you can alwaysprogrammatically create the componentswhen only you know. Because we have no idea. And then you just insertit when that happens. And at that point, everythingis loaded asynchronously anyway. So you have callback methods to know, and the draw systemis aware that you may have assetsthat are not there. So basically, thecomponents say, oh, I’m not ready to draw . So nothing happens. If you ask him to draw, he willjust wait to get his asset. And then when they’re here,then things will kick in. So, I’m sure thereare bugs in there. But it was designedto let you do that. AUDIENCE: Do you implementsome kind of Promises system? BENOIT MARCHANT: Yes. We have in our teamwe also have Q. So, we’ve been usingPromises since 2011. And I can attest thatwe went from zero to Promises everywhere,just organically seeing the teamembrace that pattern. AUDIENCE: [INAUDIBLE] BENOIT MARCHANT: Yeah. And it just came naturally. When I hired Kris Kowalwho is the author of Q, he told me abouthis [INAUDIBLE]. It was like, wait, what? I was like, ahh, brain hurts. And then over time,we got used to it. And it turned out to bevery, very effective. And now it’s becomingthe standard. So we’ve seen manythings like that. Like we had bindings very early. They’re kind of becoming,not really binding, but observing[INAUDIBLE] standard. We had to embrace Q veryearly, becoming the standards. We had componentsbefore anyone else. Not that the wholecommunity understand that we should begoing that direction. I’m not happy aboutthe current spec. But that doesn’t matterto [INAUDIBLE] I suppose. So, yeah, we use [INAUDIBLE]. It’s everywhere. So I encourage you to try. We put it out. So let me talk aboutthe business model, not that you may care. So we are a company. So we need to make money,like any other company. There’s nothing wrong with that. I intend to make a lot of money. But we really wantto help people go beyond what they do today. So the whole platform– becausewe know we are on GitHub,

we know exactlythrough GitHub API whether your product ispublic or is private. So if it is public, you can useMontageStudio forever for free. There’s no cost whatsoever. And of course, we hope that onceyou guys embrace it, realize what you can do, you’re goingto want to use it for real work. And if that’s thecase, then you’re going to need asubscription to access a private repo after a couple. We will just let you do that. But after a couple, thenyou’ll need a subscription to go and use that. So, don’t hesitate. Just go use. No afterthought. I’m the CEO, so I cantell you straight, that I’m not going to reversethat decision, I think, unless someone make my changemy mind for whatever reason. But it just makes sense, right? We’re trying to build aplatform based on open source. And that’s just acontinuation of it, is we want people touse authoring visually without second-guessingand hesitating. Because it just worksmore

efficiently for what it does well. It won’t changethe fact that you may want to go backto your text editor and do a bunch of stufftextually off GitHub. And then go back in thetool when it makes sense. And hopefully over time,we’ll have more and more value to the tool. So you will find yourselfspending more and more time there. But we have nointention of doing anything that will lock you in. We’re based on the standards. And if there are better toolsfor certain aspects of the job, or other people that don’twant to use MontageStudio, they don’t want to be in,then they should be in. And that’s where we are. So, The Present & Future of Web Development

the future ofweb development– what I care aboutthat platform is that we deliver superiorcross-screen user experience. And to me, that’sthe webkiller app. We have to deliver the samekind of user experience that people expect. Because if wedon’t do that, it’s going to get marginalizedand ostracized. And its market shareis going to shrink. And its impact on theecosystem is going to shrink. And I

The Present & Future of Web Development don’t want that. So that’s why we’re doing it. I think that’s what we allneed to think about that. Otherwise, web appsare going to be restrained toadmin kind of stuff that we hide inside firewalls. I know. I think we can do better. The second one isthat for that you need to rely on astrong platform. The standards themselvesare not enough. There are stuff thatthey need to do, like hardware acceleration. There’s no way The Present & Future of Web Development The Present & Future of Web Development

inJavaScript you could ever imagine hardwareacceleration works that has been done in the browser. It’s just impossible. It’s not going to happen. But the way that the [INAUDIBLE]sets, the way people contribute to it– and if you look at thevested interest of the people who are contributingto it– like, try to make anequivalent of dot NET at the level of standard tryingto get people from Microsoft, Google, and Apple together? And good luck with that. I don’t think– well, I maysee that in my lifetime. I hope to be wrong. But the thing is, a lot ofbuilding blocks are here. The Present & Future of Web Development

The Present & Future of Web Development So we or someone else canbuild an opinionated stack on top of what wehave to go faster. And whatever commonstandard we’ll bring back. Like, when the Promisesare in [INAUDIBLE], and if [INAUDIBLE] iseverywhere, well guess what? It will remove[INAUDIBLE] from Montage. And we’ll swallowthat cost for you. Same for the web components. If web components wereeverywhere, which they’re not, there’s no reason why youcouldn’t use the web components inside the Montage components. The Present & Future of Web Development

That would work. We’ll make it work. Another very important thingis bringing web designers and developers together. And that’s takinga higher view of, OK– tools for webdesigners are great. Tools for webdevelopers are great. But if they are incompatiblein terms of output with each other,there’s no point, right? If your web designeror interactive designer are using Balsamiq they spendsix months doing a mock-up, in the end you havea Balsamiq movie. Then you have to go fromscratch and implement that in whateverstack you choose. Actually, it would beiOS, Android, or whatever. It’s just stupid. On the web, we can do better. Our goal withMontageJS at some point is to have a Balsamiq implementinside MontageStudio so that the interactivedesigner interact directly mock-up the UI withreal components. They may take shortcutsand do hideous thing that the developer willhave his hair off– not me. The Present & Future of Web Development

But then that’s fine. He can undo thatand make it better. He doesn’t have tostart from scratch. And by the way, theright way these guys work together is interactively. At each iteration, youpay the price of there are tools not workingwith the output you want, which is going to be the finalthing the product is going to be in. It’s just stupid. We need to fix that. And that means going from justcoding everything by hand, The Present & Future of Web Development

to interactive authoring. Like, on the native side, peoplewere hand coding in terminals until the Mac came up. And after that as well. But they’ve stoppeddoing that all the time. Why? Because it turns out,it’s more efficient. As always, not amatter of opinion. The facts, the decades offacts are there to prove it. The same is goingto happen to us. It’s just like thewriting on the wall. We just have to lookback and look around, and that’s what’s there. The Present & Future of Web Development The Present & Future of Web Development

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts