Getting the best of NetBeans IDE

34
Getting the best of NetBeans IDE Leonardo Zanivan NetBeans Day Brasil

Transcript of Getting the best of NetBeans IDE

Page 1: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 121

Getting the best of NetBeans IDE

Leonardo Zanivan

NetBeans Day Brasil

Page 2: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 122

About me

● Software Architect● OSS Contributor● JCP Member● Java, JavaScript, fun stuff 😉

@leonardopangagithub.com/panga

Page 3: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 123

▪Editor enhancements▪Debugger & profiler enhancements▪Node.js enhancements▪ECMAScript 6 support▪Awesome plugins▪Docker support

What is new in NetBeans 8.2?

Page 4: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 124

▪Multicarets

Enter multi-caret mode: CTRL+SHIFT+MCLICK

Editor enhancementsLittle things matter

Page 5: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 125

▪Pinnable watches

Debugger enhancementsLittle things matter

Page 6: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 126

Profiler enhancementsDiscover loopholes and slowness in SQL queries

Page 7: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 127

▪Grunt / Gulp tasks from Navigator

Node.js enhancementsJavaScript dominance

Page 8: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 128

▪Classes (constructor, extends, super, etc.)

ECMAScript 6 supportJS.next

Page 9: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 129

▪Arrow functions

ECMAScript 6 supportJS.next

Page 10: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1210

▪Computed property names

ECMAScript 6 supportJS.next

Page 11: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1211

▪Property initializers

ECMAScript 6 supportJS.next

Page 12: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1212

▪Constants

ECMAScript 6 supportJS.next

Page 13: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1213

▪Block scope declarations

ECMAScript 6 supportJS.next

Page 14: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1214

▪Template literals

ECMAScript 6 supportJS.next

Page 15: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1215

▪String/Number/RegExp literals

ECMAScript 6 supportJS.next

Page 16: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1216

▪Array destructuring assignment

ECMAScript 6 supportJS.next

Page 17: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1217

▪Object destructuring assignment

ECMAScript 6 supportJS.next

Page 18: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1218

▪Support modules

ECMAScript 6 supportJS.next

Page 19: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1219

▪Default parameter values (check type)

ECMAScript 6 supportJS.next

Page 20: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1220

▪Generators

ECMAScript 6 supportJS.next

Page 21: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1221

▪Dark Look And Feel Theme▪TypeScript Editor http://plugins.netbeans.org/plugin/60605

▪JSHint integration http://plugins.netbeans.org/plugin/58580

Awesome PluginsBe happy

Page 22: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1222

“TypeScript is a language for application-scale JavaScript. TypeScript adds optional types, classes, modules and

annotations to JavaScript.”

TypeScript EditorSuper JavaScript

Page 23: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1223

“TypeScript provides autocompletion, type checking and source documentation.”

TypeScript EditorSuper JavaScript

Page 24: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1224

“JSHint is a popular, community-driven tool to detect errors and potential problems in JavaScript code.”

JSHint integrationJavaScript Quality

Page 25: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1225

▪Search for .jshintrc configuration file in project paths▪Created by me to fill a gap with other IDEs & Text Editor▪Contributions are welcome https://github.com/panga/netbeans-jshint

JSHint integrationContribute

Page 26: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1226

"Docker packages your application into a standardized unit for software development."

Docker supportDevOps

Page 27: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1227

$ sudo vim /etc/default/dockerDOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock"

$ sudo service docker restart

Docker supportPrepare

Page 28: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1228

Docker supportConfigure

Page 29: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1229

▪Pull / push images▪Manage containers (start / stop / remove)▪Attach to container bash▪See container logs▪Create Dockerfile with syntax support▪Build images

Docker supportWhat can I do?

Page 30: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1230

Hint: Fix ugly font rendering in LinuxBefore

Page 31: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1231

Options:▪Replace Linux fonts / Install extra packages▪Use awt.useSystemAAFontSettings (FaqFontRendering)▪Use TuxJDK https://github.com/tuxjdk/tuxjdk

Hint: Fix ugly font rendering in LinuxSave my eyes

Page 32: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1232

Hint: Fix ugly font rendering in LinuxAfter

Page 33: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1233

Wait for Beta coming soon 😔|| download nightly builds right now! 😊http://bits.netbeans.org/dev/nightly/latest/

NetBeans 8.2Give it to me!

Page 34: Getting the best of NetBeans IDE

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 1234