rocking and tooling your geodev environment · rocking and tooling your geodev environment, 2015...

Post on 05-Oct-2020

2 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

ROCKING AND TOOLINGYOUR GEODEVENVIRONMENT

GAVIN REHKEMPER & JOSH PETERSON

“Always code as if the guy who ends upmaintaining your code will be a violent

psychopath who knows where you live.” - Martin Golding

Work faster, smarter, and with quality.

"SOFTWARE CRAFTSMANSHIP"

Javascript and Python are the

Batman and Robin of geo dev.

IDETASK AUTOMATION

DEV TOOLS

I use IDLE & Dreamweaver....opens PyCharm & Sublime Text

THEME ITSeti UI (file icons, clean interface/colors)

EXTEND IT

ColorHighlighter

Supports variables!

GitGutter for repo comparisonEmmet for text expansion

SublimeLinter

JSFormat enforces syntax

Protip: project-specific configs

Anaconda for Python

Imports Validator

Autocomplete - Even for Arcpy!

IDE

TASK AUTOMATIONDEV TOOLS

npm to install plugins

package.json to manage them

Configure tasks in Gruntfile.js

grunt.registerTask

Chain tasks for common workflows

grunt-contrib-connect

start a web server

grunt-concurrent

run tasks concurrently

grunt-autoprefixer

add vendor prefixes

grunt-uncss

remove unused CSS

grunt-shell

run shell commands

grunt-zip

zip and unzip files

AUTOMATION FOR PYTHON

THE PLAN*1. Use 2. Grunt task to copy files from working directory to:

3. Grunt task to restart ArcGIS Server:

Python Toolbox

arcgissystem\arcgisinput\[folder]\[tool name].GPServer\extracted\v101\

grunt-ags-admin* Use for development only, and at your own risk!

2:23

IDE

TASK AUTOMATION

DEV TOOLS

All modern browsers have dev tools

Chrome Firefox Safari Internet Explorer

Basics are boring, let's see some...advanced techniques

THANK YOU!JOSH PETERSON

/jpeterson/jm_peterson

GAVIN REHKEMPER/gavinr

/gavinrehkemper

Please rate this session:http://www.esri.com/events/session-rater?id=90#18940

top related