Posts

Showing posts from March, 2013

ChatGPT - How Long Till They Realize I’m a Robot?

Image
I tried it first on December 2nd... ...and slowly the meaning of it started to sink in. It's January 1st and as the new year begins, my future has never felt so hazy. It helps me write code. At my new company I'm writing golang, which is new for me, and one day on a whim I think "hmmm maybe ChatGPT will give me some ideas about the library I need to use." Lo-and-behold it knew the library. It wrote example code. It explained each section in just enough detail. I'm excited....It assists my users. I got a question about Dockerfiles in my teams oncall channel. "Hmmm I don't know the answer to this either"....ChatGPT did. It knew the commands to run. It knew details of how it worked. It explained it better and faster than I could have. Now I'm nervous....It writes my code for me. Now I'm hearing how great Github Copilot is - and it's built by OpenAI too...ok I guess I should give it a shot. I install it, and within minutes it'...

Ruby notes

carlhuda janus dotfiles repo - create one ( for .bash, .bash_profile, .vimrc etc) e.g. gary bernhardt - github drb - https://github.com/garybernhardt/dotfiles rc - resource configuration intellisense vim - supertab pry, interactive_editor - irb tools

Getting a ruby/rails environment setup the easy way

Following directions in http://railscasts.com/episodes/292-virtual-machines-with-vagrant , I came up with an issue where vagrant box couldn't ping google, and therefore couldn't d/l packages. solution : http://askubuntu.com/questions/238040/how-do-i-fix-name-service-for-vagrant-client Also,  trouble with nokogiri and/or pg when you do 'bundle update' ?  Checkout http://nokogiri.org/tutorials/installing_nokogiri.html and/or http://stackoverflow.com/questions/6040583/unable-to-install-pg-gem-on-ubuntu-cant-find-the-libpq-fe-h-header .

Notes on Effective Java 2nd Edition

Chapter 3 - Methods Common to All Objects   Item 8 : Obey the general congract when overriding equals - page 33 If you decide to implement equals, make sure it is reflexive: for all x, x.equals(x) symmetric: for all x & y, x.equals(y) iff y.equals(x) transitive: for all x, y, z, if x.equals(y) and y.equals(z), then x.equals(z) must be true consistent: for all x & y, multiple invocations of x.equals(y) return the same result provided nothing used in equality is changed in either x or y for all x, x.equals(null) must return false Item 9 : Always override hashCode when you override equals Item 10 : Always override toString Item 11 : Override clone judiciously Item 12 : Consider implementing Comparable Chapter 4 - Classes and Interfaces   Item 13 : Minimize the accessibility of classes and members accessibilities private package-private (default) protected public classes with public mutable fields are not thread-safe Item 14 : In public cla...