MountainWest JavaScript 2014

TDD para aplicaciones JavaScript

Brandon Hays  · 


Extracto de la transcripción automática del vídeo realizada por YouTube.

hi everybody I am here to teach you about a thing that I learned about architecture we're going to journey into the heart of architecture you're probably going to say hey that sounds like nothing that is engineering nothing I think javascript is ready

for engineering is JavaScript ready are you ready for engineering are you ready for architecture castles bridges architecture hammers anvils craftsmanship cloud cloud gineering clouds midship clouded texture these are all things I know this isn't a confessional

I actually don't know what any of those things I just said were so if anybody wants to provide some definitions for me after the top I'm a cloud genere at the front side in Austin Texas you'll see I'm highly credentialed three years jazz two

years tap my wife came up with a few of these she says I'm a donut master which is totally legit uh I actually not here to talk about architecture because I don't really know about it I think the universe actually does have one uncle bob martin and

i think he'd agree that's plenty we don't live in an ivory tower I've never really had much use for ivory tower architecture but that's maybe because you know I've only been programming for a few years uh we don't live in the Ivy

Tower we live in someplace else and I want to talk to you bout the ball of mud architecture pattern if any of you have heard of it brian flatt came up with this in the late 70s with Brian Merrick it's it's pretty great website I'm going to point

you to it and I hope that you all go read it because it will it will just if if you've been coding for more than a year it will bang you like a gong to do that and you talk about City Planning you guys recognize this city probably not it's a little

quaint hamlet in the midwest called salt lake city most of these aren't designed for growth in salt lake city would actually be a rare exception and you'll see that actually handled its eventual growth quite well from layout to infrastructure it doesn't

have many of the problems that seem to plague larger cities but most of our programs don't actually work like this we dream that they will but they don't my current home town of Austin is a lot more typical the city layout infrastructure were unprepared

for that kind of growth a they start small and gradually grow larger and this results in the dreaded urban sprawl that's mopac looks like around maybe thirtieth Street and that's the traffic I sit in every day so that actually gives me a little bit

of shell shock let's not look at that much longer even that though is much too good for most of the code that we inherit we live here our code often doesn't live in that nice plan city or even a sprawling Metroplex in code we live in a favela this

is a favela it's a Brazilian slum looks really kind of cool it's like the definition of a walkable city but let's just zoom in a little bit it's it's a Brazilian shantytown kind of turn into a permanent settlement how did that happen well

people with little skill can create houses that's great anybody can do it so you walk in and you build whatever structure you want with whatever you can find so they pop up everywhere the problem is these structures are difficult to maintain to grow or

protect they have very little fire or police presence and safety and crime issues are everywhere so forget about architecture I'm going to hand wave over the entire concept of architecture we're going to journey into a code favela and I'm going

to take your sanity so the favela is actually a manifestation of Brian foots ball of mud pattern and we'll talk more on that in a minute but making one is really easy it's so easy that most of us do it a lot you start with a piece of throwaway code

something temporary then you add to it and then you decide to lean on it as a part of your business so how does that happen this if any of this sounds familiar so this should be easy it's got to happen this week how many of you hate being asked to raise

your hands and a talk I should c 0 hands people seriously no none of you should have raised your hands the rest of you how many have you have been asked to put a prototype of your own info before the best feeling right you're like sleep so good so there's

this myth of a two-week feature I was talking to a CTO of a company that was a client of ours and he's like yeah they keep asking like what can we do in two weeks what can we do in two weeks the answer is nothing you can talk about what you want in two

weeks but they say no no no we want you to deliver something in two weeks so those two week features take six weeks and then we try to cram it into two weeks and then we make sacrifices or will inherit code from inexperienced des but most of the time our shanty

towns start as a quick prototype so let's just let's build one right like we do this all the time probably it starts like any other let's say we work on Giffin door it's a social network for animated gifs it was founded by someone who had made

a lot of money with their harry potter fanfic site and decided they wanted to start a site to share animated gif it's just a plain vanilla server side up somebody said you know rails G scaffold blah and given door magically popped into existence uh mana

do we really want to talk about pronunciation of gif all right here's the thing I don't care what the guy who created it said I'm an English major guy so I care a lot about seeing it with the soft Chee I don't know actually if yeah so we're

going to start by sprinkling jeaious dhh calls it a sprinkling I think of jas which I always thought was a little weird but it's a you know nice little mental thing to visualize we're going to sprinkle some jansen all right your boss calls she says

she that users want a better experience on the site so they shouldn't have to go to the whole new page to submit a new gift it should do it right from the index page you look at your javascript file mmm let's see okay well I'm daunted we march

[ ... ]

Nota: se han omitido las otras 3.003 palabras de la transcripción completa para cumplir con las normas de «uso razonable» de YouTube.