HNHacker News
TopNewBestAskShowJobs

isbadawi

314 karma · joined June 16, 2011

submissionscomments
isbadawi··on G is for Google
From TFA: "I should add that we are not intending for this to be a big consumer brand with related products--the whole point is that Alphabet companies should have independence and develop their own brands."
isbadawi··on Stephen Bourne: Early days of Unix and design of sh [video]
In bash at least, cd with no arguments takes you back to the home directory.
isbadawi··on How to boost your Vim productivity
I don't think the speed hit you take when you actually have to type 'jk' should be a dealbreaker. It rarely comes up, and when it does, you can use e.g. '<C-v>j<C-v>k' or 'jjkak'.
isbadawi··on Android M Developer Preview and Tools
What are you referring to?
isbadawi··on Vim Tips For Intermediate Users
You can use a hybrid of absolute and relative numbering by setting both the 'number' and 'relativenumber' options (in vim 7.4). It displays the absolute number of the current line (instead of 0) but relative numbers of the other lines.
isbadawi··on Writing a code coverage tool
(I wrote this article a while ago).

I'm not sure what you mean. If you're referring to the implementation, it's around three hundred lines [0], including the unfortunate problem I mention with visiting expressions, which doesn't seem like a lot.

Maybe you mean the instrumented code, but that doesn't matter -- it's meant to be generated, executed and thrown away. You would never have to look at it.

[0]: https://github.com/isbadawi/coverage-example

isbadawi··on Show HN: Watch People Code
PeepCode did this with its Play by Play series. They were acquired by PluralSight, and the series is still going on there [0].

[0]: http://www.pluralsight.com/search/?searchTerm=play%20by%20pl...

isbadawi··on Git's initial commit
You can go to the project's network graph (append /network to the url) then press shift ←. If the project has a lot of forks like git/git does it won't work though.
isbadawi··on Benefits of Writing a DSL in Ruby
"DSL" is slang for "API" in the ruby community [0].

[0]: https://gist.github.com/geeksam/24ef10be8c773a2c1bd4

isbadawi··on Systems of Logic Based on Ordinals (1938) [pdf]
You might be in interested in looking at Dijkstra's manuscripts, which are all handwritten. Here's an example [0], and an index is available here [1].

[0]: https://www.cs.utexas.edu/~EWD/ewd10xx/EWD1001.PDF [1]: http://www.cs.utexas.edu/users/EWD/

isbadawi··on Program Synthesis Demo
Pretty neat. I noticed something a bit off about the "tint a random photo blue" example around 2:22. Two of the three search results are fine, but the second search result is

    pics := media -> pictures
    pic := pics -> random
    pic -> tint (colors -> sepia)
    c := colors -> blue
All the components are there but not in the right order -- it still tints with the default color.
isbadawi··on Show HN: Vex, a new way to run things in Python's virtualenvs
I like this. I've used both virtualenvwrapper and pew before, but they both have lots of features I don't use. Using this plus some small shell functions like the below to create, list and delete virtualenvs is enough for me.

  function mkvirtualenv {
    virtualenv "$HOME/.virtualenvs/$1"
    if [ $# -eq 2 ]; then
      vex "$1" pip install -r "$2"
    fi
  }
  
  function lsvirtualenv {
    ls "$HOME/.virtualenvs"
  }
  
  function rmvirtualenv {
    rm -rf "$HOME/.virtualenvs/$1"
  }
isbadawi··on Cloud Platform at Google I/O – new Big Data, Mobile and Monitoring products
Judging from the code samples they showed during the keynote, I'd guess that Google Cloud Dataflow is based on (or an extension of, or a public version of...) FlumeJava, described in this PLDI 2010 paper: http://pages.cs.wisc.edu/~akella/CS838/F12/838-CloudPapers/F...
isbadawi··on Reasons to use protocol buffers instead of JSON
If you don't currently have protobuf definitions, you can just not use required fields in any new ones you write, like the quoted passage suggests.
isbadawi··on Why Atom Can’t Replace Vim – Learning the lesson of vi
Alternatively, you can type jjkak (insert a j, exit insert mode with cursor on the j, enter insert mode one character to the right, insert a k).
isbadawi··on Practical Tmux
You can do that in iTerm too. Preferences -> Profiles -> General -> Working Directory -> Reuse previous session's directory
isbadawi··on Improving GitHub for science
I wasn't implying that these features were unique to GitHub, just that there can be reasons why one might prefer to use GitHub beyond it just being a place to host git repositories.

I don't think "hosted git" accurately captures the appeal of GitHub (or bitbucket for that matter). While this is the main premise behind both products, I don't think they're necessarily interchangeable in the way you describe.

isbadawi··on Improving GitHub for science
GitHub is not just hosted git. There are other features like the issue tracker, pull requests, editing files and committing from the browser, etc.

Also, if e.g. a research group already has a GitHub organization with their open source work (many do), then it's reasonable for them to want private repos under the same umbrella so that they can collaborate using the same tools irrespective of whether the work is open yet.

isbadawi··on How Mike Judge and Co. Are Turning "Silicon Valley" Into the Next "Spinal Tap"
It's funny that you use "make the world a better place" -- that's one of the specific phrases (and attitudes) the show makes fun of.

"We're making the world a better place. By constructing elegant hierarchies for maximum code reuse and extensibility."

"Making the world a better place. Through minimal message-oriented transport layers."

isbadawi··on Opal: Ruby in Your Browser – the Basics
Could you explain what is so offensive about using `...` here?
isbadawi··on 2048 As A Service
April Fools Joke, I would assume.
isbadawi··on Why Use Make? (2013)
Have you looked at webassets? [0]

[0]: https://github.com/miracle2k/webassets

isbadawi··on Whatever goes up, that’s what we do
Settings -> General -> Button labels. You can choose between "Icons" and "Text".
isbadawi··on The decay and fall of guest blogging for SEO
Could you explain what you're referring to ("once again")?
isbadawi··on On Go
Go has interfaces that you implement just by having the methods, without declaring that you're implementing the interface (e.g. "implements" in Java). This kind of feels like duck typing in python. For example, in python lots of APIs work with file-like objects, e.g. anything with a read method -- you can do the same sort of thing in Go.
isbadawi··on The Google Graveyard - Leave a flower for a deceased Google product
Still there: http://www.youtube.com/user/GoogleTechTalks/
isbadawi··on Python: The Dictionary Playbook
Since you're assigning to dct[key] anyway, it doesn't really matter.
isbadawi··on RubyFlux: a Ruby to Java compiler
What is the difference? As far as I know any program that translates code from one language to another is a compiler.
isbadawi··on A less cluttered whatismyip
This also works in Google.
isbadawi··on You can now create files on GitHub
I just realized you can edit files. Is that new too? Or is it only the file creation that's new?
← PreviousPage 2 of 3Next →