Transcript

00:01Okay. So, this is simplified dev. That's my name. That's who I work for.

00:06And I can sum up this little presentation in one sentence.

00:09Stop doing what you're doing and try something else. Alright?

00:13So basically everyone here I'm sure uses either Visual Studio, uses Silver[light] Eclipse-based, Editor, I'm sorry...

00:20...or maybe IntelliJ which is fantastic.

00:23You know, but your IDEs, well, I'm sorry but they suck. Okay?

00:28And the reason they suck is that you get used to using them.

00:31You get used to the intel sense.

00:33You get used to using...looking things up. They end up doing most of the work for you.

00:37And if you never have used Command Line or Makefiles, you've kind of forgotten how to get that stuff done.

00:43So you get a little bit complacent, and it's just not really any fun.

00:46I mean, they make it so easy a baby could do it.

00:48And seriously, you're going to let a baby show you up?

00:51Because, I'm not.

00:54So a couple of tools that I like to use in my work environment is, you know, I keep a Command Line would open...

01:01...and I use Vim.

01:03You don't have to use Vim. You can use Notepad.

01:05If you're on the Mac, may use TextMate. It's very popular, but an easy way of getting things done.

01:12I happen to know a flash developer that does all of their flash development in TextMate only.

01:17They never open Flash Builder because it sucks.

01:20They never use the FlashPro. They don't like it.

01:22They use macros and scripts and TextMate to do everything for them.

01:27And they build large applications.

01:30So one of the side effects that's going to happen when you start using...know Command-line or just regular text editor...

01:37...and you don't have the intel sense to help you out, you're going to realize, I have to start reading documentation.

01:43Damn, but you're finally going to learn little things that you never would have found.

01:48You start reading the documentation, you're going to come across small methods that maybe in the library that you weren't aware of...

01:54...that really help you out.

01:55You're finally going to learn when to use IWorkspaceFactory2 versus IWorkspaceFactory1 or whatever it is you need to do.

02:04And that's going to be the main goal of trying to get your development done.

02:11Again, you don't need the IDE to do the debugging for you.

02:15Tools are built into browsers like Chrome and Firefox.

02:17You've seen it throughout this conference or the summit, and you could do breakpoints, you can do debugging...

02:23...you can change HTML. You could change styling to get everything done and debug your applications.

02:29It's not that difficult, and you're really going to embrace it when you start doing it.

02:34Everything I'm going to talk about here is simplifying your code a little bit. Alright?

02:39So the first thing that I use is Haml, H A M L.

02:44It's really popular with Ruby on Rails.

02:46You don't need to use Ruby on Rails to use Haml at all, okay?

02:49This is some Haml script. The three little exclamation points up at the top say you're going to be doing HTML 5...

02:53...that's all you've got to do.

02:55Forget all the other stuff. You don't have to put in doc types or anywhere else.

03:00To me this is a lot simpler to read than this.

03:03Haml compiles to this. So don't worry about it.

03:05This will take care of it all for you.

03:06You'll never even have to look at this again when you start using Haml.

03:10Styling, CSS. There's tools out there like SAS which there's a Compass works with SAS and then [unintelligible] is also very popular.

03:20This does all the work for you. No more web pre...no more browser prefixes when you're doing your styling.

03:27There are tools built into it where you could do like opacity up at the top.

03:31There's tools for lists, to make buttons, and really cool-looking things.

03:35So everything on your left will compile to everything on the right.

03:40Don't worry about writing some hard complicated styling.

03:45The next thing I'm going to take a stand on here, JavaScript sucks.

03:47Stop writing JavaScript. Start writing CoffeeScript. Okay?

03:51I take a big stand on this one because I just think it's easier to read, and it provides some syntactic sugar that you can use.

03:58Now if you like Python, you'll probably like CoffeeScript.

04:01If you like Ruby, then you're just going to love CoffeeScript.

04:04It does a lot, and it's going to compile to JavaScript.

04:08So I like to look...I don't like looking at this.

04:11I like looking at this, and I like working with this.

04:16Oh, there were some examples, but I'll show this slide real quick.

04:21There's an arrayed up prototype dot filter on line 6 that you can see.

04:25That whole little block of code there to add that filter function to array is done by two lines on line 8 and 9 right here.

04:34Easy, simple, beautiful. I love it.

04:37Okay. I've got on line 14 here, I have to put a bunch of layer IDEs into my identify task.

04:42I need a range for some silly reason of like 20 some layers in one identify.

04:47Except one. They don't want layer 38.

04:50Well, hell, when am I supposed to do that?

04:52So it compiles down to this.

04:54That little filter function I made, it takes layer 38 out of my array, and it will only identify everything except that one.

05:01That's just a sample of little things CoffeeScript can do for you.

05:04And, again, it's simple. Thank you.

Copyright 2013 Esri
Auto Scroll (on)Enable or disable the automatic scrolling of the transcript text when the video is playing. You can save this option if you login

Simplify Dev

Rene Rubalcava of the Los Angeles County Sanitation District offers tips in simplifying the development process.

  • Recorded: Mar 27th, 2012
  • Runtime: 05:08
  • Views: 520
  • Published: May 31st, 2012
  • Night Mode (Off)Automatically dim the web site while the video is playing. A few seconds after you start watching the video and stop moving your mouse, your screen will dim. You can auto save this option if you login.
  • HTML5 Video (Off) Play videos using HTML5 Video instead of flash. A modern web browser is required to view videos using HTML5.
Download VideoDownload this video to your computer.
<Embed>Customize the colors and use the HTML code to include this video on your own website
480x270
720x405
960x540
Custom
Width:
Height:
Start From:
Player Color:

Right-click on these links to download and save this video.

Comments 

Be the first to post a comment
To post a comment, you'll need to login.
If you don't have an Esri Global Login ID, please register here.