Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Developing on Windows

Developing on Windows

Lightning talk "Developing on Windows" presented at Develop Denver 2019.

Avatar for Stephen Ham

Stephen Ham

August 15, 2019

Other Decks in Technology

Transcript

  1. 2

  2. 3 Need to elevate to Administrator to perform these actions

    ADMIN PRIVILEGES Package installation or other system modifications NODE.JS/NPM PROBLEM 1
  3. 5 Need to install 2.x before these packages will install!

    PYTHON Python 2 is a common dependency for many packages NODE.JS/NPM PROBLEM 2
  4. 7 "scripts": { "test": "mocha -- compilers js:babel- core/register --require

    ./test/test_helper.js - -recursive ./test" } Using relative paths PROBLEM 3: ‘/ ’ o n U n ix ty p ica lly refers to system roo t Slash direction b a c ksla sh ‘ \ ’ (Win d ows) VS fo r wa rd - sla sh ‘/ ’ (U n ix) Environment variables typically generated fo r Unix, no t Windows "scripts": { "dev": "cross-env NODE_ENV=development webpack-dev-server", "build": "cross-env NODE_ENV=production webpack --progress -- hide-modules" }
  5. 8 Problem 4 (Ruby & Ruby on Rails): RubyInstaller &

    RailsInstaller work, but are still a PITA to configure & therefore are NOT IDEAL Notable Issues:
  6. 9 Solution: Ruby & Ruby on Rails • WSL (Windows

    Subsystem for Linux) • OR dual-booting w/ Linux More mentioned about these options later…
  7. 10 Solution: Alternative shells/terminals Pros of Cmder: + can run

    all the other terminals & shells on your system (CMD, PowerShell, Git Bash, WSL, etc.) + extensively customizable & full support for Linux commands Cmder cmder.net Console sourceforge.net/ projects/console PowerCmd www.powercmd.com Git Bash gitforwindows.org * Personal Recommendation
  8. 11 PROBLEM 5: No preinstalled dev tools W I N

    D O W S C O M E S W I T H O N L Y N O T E P A D & E D G E B Y D E F A U L T : NO GIT NO WEB SERVERS NO DATABASE SYSTEMS NO COMPILERS, VMs, or ENVIRONMENTS for PROGRAMMING LANGUAGES NO EDITORS (although Notepad in Win 10 is the best it ’s ever been)
  9. 12 It’s necessary to install these first: Solution: 3rd party

    tools • Git for Windows - https://gitforwindows.org • Wampserver: offers more control - http://www.wampserver.com • XAMPP: has an easier-to-use UI - https://www.apachefriends.org Most major languages have Windows installers and/or environments Ruby, Python, Java (JDK), C#, PHP, et al…
  10. 13 IDEs & Editors • Visual Studio Code / Visual

    Studio Community • Sublime Text 3 (not technically freeware, but can be used for free) • Notepad++ (caveat: not up-to-date for TypeScript, JSX, or Vue files) • JetBrains (multiple language-specific IDEs for Python, Ruby, PHP, et al) Solution: even more 3rd party tools… Update Management • Chocolatey (apt for Windows) ASCII Text Editors • NoteTab Light • EditPad Lite • DocPad
  11. 14 Solution: WSL (Windows Subsystem for Linux) • Ubuntu •

    SUSE • Debian • Kali PROS CONS + Ideal for Ruby/Rails - No GUI, terminal only
  12. 15 Tip: Try partitioned drives Easier for Windows & Linux

    to access the same folders Pop!_OS Manjaro Arch Mint Ubuntu Ultimate Solution: Dual-booting w/ Linux
  13. 16 G S E E-mail [email protected] Slack (Denver Devs) @astv99

    LinkedIn @hamstephen GitHub * github.com/astv99 THANK YOU! Ways to connect with me:
  14. 17 For more content & resources like this, please check

    out my personal website… P h o t o C r e d i t : J e s s R a y a n | h t t p s : / / w w w . b u i l t i n c o l o r a d o . c o m / 2 0 1 6 / 0 7 / 2 9 / d e v e l o p - d e n v e r - 2 0 1 6 - g u i d e DEVELOP DENVER 2019 LIGHTNING TALK THE END www.coding-unboxed.com