Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
In The Toolbox – Live!In The Toolbox – Live!
(Tools of the Trade)(Tools of the Trade)
Chris OldwoodChris Oldwood
ACCU Conf...
Why the C Vu Column?Why the C Vu Column?
Part I - Tooling ChoicesPart I - Tooling Choices
The Right ToolThe Right Tool
Finding TextFinding Text
 FIND / FINDSTRFIND / FINDSTR
 GREP (EGREP / FGREP)GREP (EGREP / FGREP)
 BareGrep / BareTailBa...
The Wrong ToolThe Wrong Tool
set filename=trello.json
set releaseId=v1.5.2
sed -n "/^t"cards"/,/^t}],/p" %filename% | ^
egrep -i "idlist|shortUrl|idsho...
““If you cannot think of threeIf you cannot think of three
ways of abusing a tool, you doways of abusing a tool, you do
no...
Home-Grown ToolsHome-Grown Tools
One-LinersOne-Liners
(No Pun Intended)(No Pun Intended)
> PowerShell "gci BuildReleaseCompany*.dll | %
{ $_.VersionInfo }"
> for /r /d %d in (*.*) do @if exist "%d" rmdir /q "%d"...
AutomationAutomation
Part II – Unlikely ChoicesPart II – Unlikely Choices
Pen & PaperPen & Paper
Dictionary & ThesaurusDictionary & Thesaurus
““Never use the words get, putNever use the words get, put
or nice.”or nice.”
-- My Wife’s English Teacher-- My Wife’s Eng...
Questions?Questions?
Want to Know More?Want to Know More?
C Vu – In The ToolboxC Vu – In The Toolbox 
(http://www.chrisoldwood.com/articles.h...
Prochain SlideShare
Chargement dans…5
×

In The Toolbox - LIVE!

66 vues

Publié le

As a general rule we should strive to use the right tool for the job. If you find yourself installing an IDE on a production server just to search your log files for a particular piece of text, then you’ve probably chosen the wrong tool.

The modern IDE can be an excellent tool for day-to-day developer duties, but we do not solely write code; we also have to do analysis, testing, support, etc. For these we should be looking at more focused tools, and occasionally we may need to build our own. Sometimes the right tool is not readily accessible and we have to weigh up whether (ab)using the wrong tool may in fact be the more efficient choice.

This session takes a look at a variety of both command-line and GUI tools that have proved to be useful to the speaker time-and-time again. Most of the examples will come from the areas of build automation, testing and support with a few wildcards thrown in for good measure. Text editors will not be discussed for obvious reasons.

Readers already familiar with the C Vu column “In the Toolbox” should find familiarity in the subject matter without an overwhelming sense of déjà vu.

Publié dans : Logiciels
  • Soyez le premier à commenter

In The Toolbox - LIVE!

  1. 1. In The Toolbox – Live!In The Toolbox – Live! (Tools of the Trade)(Tools of the Trade) Chris OldwoodChris Oldwood ACCU Conference 2015ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk@chrisoldwood / gort@cix.co.uk
  2. 2. Why the C Vu Column?Why the C Vu Column?
  3. 3. Part I - Tooling ChoicesPart I - Tooling Choices
  4. 4. The Right ToolThe Right Tool
  5. 5. Finding TextFinding Text  FIND / FINDSTRFIND / FINDSTR  GREP (EGREP / FGREP)GREP (EGREP / FGREP)  BareGrep / BareTailBareGrep / BareTail  Notepad / Notepad++Notepad / Notepad++  SEDSED  AWKAWK  PowerShellPowerShell  Visual StudioVisual Studio  GoogleGoogle
  6. 6. The Wrong ToolThe Wrong Tool
  7. 7. set filename=trello.json set releaseId=v1.5.2 sed -n "/^t"cards"/,/^t}],/p" %filename% | ^ egrep -i "idlist|shortUrl|idshort|name" | ^ sed -n "/%releaseId%/,/shortUrl/p" | ^ egrep -i ""idshort"|"name"" | ^ sed "s/s*.idShort...//" | ^ sed "s/s*.name.://" | ^ sed "s/,$//" | ^ sed "s/^s*//;s/s*$//" | ^ sed "s/""//g" | ^ gawk "!(NR%%3) { printf "%%03s %%-14s %%sn", first, $0, second } { first=second; second=$0 }" | ^ sort
  8. 8. ““If you cannot think of threeIf you cannot think of three ways of abusing a tool, you doways of abusing a tool, you do not understand how to use it.”not understand how to use it.” -- Gerald Weinberg-- Gerald Weinberg
  9. 9. Home-Grown ToolsHome-Grown Tools
  10. 10. One-LinersOne-Liners (No Pun Intended)(No Pun Intended)
  11. 11. > PowerShell "gci BuildReleaseCompany*.dll | % { $_.VersionInfo }" > for /r /d %d in (*.*) do @if exist "%d" rmdir /q "%d" 2> nul > for /d %d in (*) do @echo "%d" && pushd "%d" && (if exist "clean.cmd" call clean.cmd --all) && (if exist "Sourceclean.cmd" pushd Source && call clean.cmd --all && popd) && popd > sed -n "/<ProjectReference/,/</ProjectReference/p" proj.csproj | egrep "Name" | gawk "match($0,/>(.+)</,ary) {print ary[1]}" | sort > "%temp%csproj-refs“ && egrep "dependency" proj.nuspec | gawk "match($0,/=042(.+)042 v/,ary) {print ary[1]}" | sort > "%temp%nuspec-deps“ && diff --ignore-case --side-by-side "%temp%csproj-refs" "%temp%nuspec-deps"
  12. 12. AutomationAutomation
  13. 13. Part II – Unlikely ChoicesPart II – Unlikely Choices
  14. 14. Pen & PaperPen & Paper
  15. 15. Dictionary & ThesaurusDictionary & Thesaurus
  16. 16. ““Never use the words get, putNever use the words get, put or nice.”or nice.” -- My Wife’s English Teacher-- My Wife’s English Teacher
  17. 17. Questions?Questions?
  18. 18. Want to Know More?Want to Know More? C Vu – In The ToolboxC Vu – In The Toolbox  (http://www.chrisoldwood.com/articles.htm)(http://www.chrisoldwood.com/articles.htm) http://chrisoldwood.blogspot.comhttp://chrisoldwood.blogspot.com http://github.com/chrisoldwoodhttp://github.com/chrisoldwood @chrisoldwood / gort@cix.co.uk@chrisoldwood / gort@cix.co.uk

×