GopherCon 2014

Desarrollando aplicaciones de consola con Go

Mike Gehard  · 
go

Transcripción

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

all right so this is officially the largest room I've ever spoken to so I'm a little bit nervous can you hear me in the back we're good okay so taking back the command line with go my name is Mike gahard I work for pivotal labs are out of our Boulder

office whoo-hoo Boulder so I'm walking around out my shoes on we have some girls here today my first goal is to kind of explain to you my understanding of where the command line world sits these days explain to you an incident in the Cloud Foundry world

that caused us to rethink usage of a dynamic language to be named later in our CLI tool give you a couple of examples of CL eyes that I've personally written in go and the last one is to get to wrong way to get to a thousand followers before I walk out

of here so I need 14 of you to follow me it's small small wins okay so command-line tools how many people use command-line tools all your hands should go up if they're not you're probably a Windows user how do you write command-line tools so a

lot quite a bit of you are writing command-line tools how many of you like to write C alright so we have these people down here in the corner which is good I'm glad you all like to write C that's why we're all here even Derek doesn't like to

write see how we feel like write C++ again this folks down here in the corner that I'm glad write C++ my knowledge of C++ is circa 1994 was the last time I wrote them so it's not so great so why why why don't we write these languages because they're

kind of hard we've talked about this this is why why goes but was invented most of us don't knows how many of you that right command-line tools knows C and C++ okay so not too bad yeah I may choose not to write C and C++ yeah okay about the same I'm

glad to see Rob does it too it's like I choose not to so what happened back in the day there was a small subset of people that were writing tools for the rest of us we were consumers of command-line tools we have now become producers and consumers of command-line

tools so the hands that went up was it quite a bit I couldn't count from here so we're writing them for ourselves or writing them for others we're getting stuff done the community to come much bigger so we don't want C we don't want C++

so where do we end up we end up in Java so that's kind of the beginning people start writing command-line tools in Java you know then me and all the cool kids we decide this language is awesome which I still love writing Ruby written ton of command-line

tools and go there's like 15,000 command line libraries and Ruby just like everything else you know all the hipsters are writing JavaScript these days one of these I have in common what is the one thing well not any more than one thing what is what's

the one similarity between all of them they're dynamic well job is not dynamic devastatingly typed there's SAP other than that thank you Andrew what there's a one time dependency yes winner I have a drink ticket in my back pocket for you there

are runtime dependencies and how many people like runtime dependencies that's what I thought so with Java you know you've got the JVM not was was that someone was saying this morning it's like the biggest mastery of computer science like there's

been so much work that's gone into the JVM I think that might have it Derek but it's slow so like when I want command-line tools I want this stuff done quickly I don't want to sit on a wait for the JVM to boot up so then you know we have the language

that I've come to love Ruby anybody try to install the Ruby environment if you're not a ruby developer yeah that's a huge pain in the butt where's Wayne wait there's Wayne Wayne wrote a library called our VMs is the sole reason that library

exists is because yes thank you yeah so the file of Mavericks we were running like one eight six out-of-the-box on OS 10 we have finally gotten a current version of Ruby maybe we try to download ruby gems on an internet connection yeah almost impossible concurrency

not super important for command-line tools but if you want to do some hard stuff kind of hard to do in Ruby and especially if you're using you know MRI not exactly the fastest library out there again command-line tools not a huge problem but could become

a problem at some point so now we get to the big problem so ruby has caused us some pain on Cloud Foundry we went into a large government organization to try to push Cloud Foundry they gave us no indication of what we're going to be like the environment

[ ... ]

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