5 ms·
$ curl https://news.ycombinator.com/item?id=17205865 https://news.ycombinator.com/item?id=17205865 > hn.txt $ grep -i 'php' hn.txt | wc -l 8 $ grep
by ransom1538 8y ago
$ curl https://news.ycombinator.com/item?id=17205865 https://news.ycombinator.com/item?id=17205865 > hn.txt
$ grep -i 'php' hn.txt | wc -l
8
$ grep -i 'python' hn.txt | wc -l
50
$ grep -i 'react' hn.txt | wc -l
71
$ grep -i 'java ' hn.txt | wc -l
6
$ grep -i 'java,' hn.txt | wc -l
8
grep -i 'javascript' hn.txt | grep -v 'javascript:void' | wc -l
35
^^ thanks busterarm
$ grep -i 'objective' hn.txt | wc -l
2
$ grep -i 'object-c' hn.txt | wc -l
0
$ grep -i 'object' hn.txt | wc -l
4
$ grep -i 'haskell' hn.txt | wc -l
7
$ grep -i 'rails' hn.txt | wc -l
24 <<<<<<<
$ grep -i 'mongo' hn.txt | wc -l
10
$ grep -i 'mean' hn.txt | wc -l
21
$ grep -i 'lamp' hn.txt | wc -l
$ grep -i 'docker' hn.txt | wc -l
19
$ grep -i 'aws' hn.txt | wc -l
3
$ grep -i 'devops' hn.txt | wc -l
28
$ grep -i 'android' hn.txt | wc -l
18
$ grep -i 'ios' hn.txt | wc -l
21
$
- sethgecko 8y agojavascript is actually counting the scripts in the page
- SmallDeadGuy 8y agoActually no, it's counting the number of links with href="javascript:void(0)" (from a rough look at the page source).
- busterarm 8y agogrep -i 'javascript' hn.txt | grep -v 'javascript:void' | wc -l 35 There.
- 6t6t6t6 8y agoThe good thing about Rails is that there's not much to talk about it. It just does what it is suposed to do without any drama.
- busterarm 8y agoI guess I'll be the guy to remind everyone that Ruby != Rails. (I'm a Ruby dev and mostly do not touch Rails at all professionally) $ grep -i 'ruby' hn.txt | wc -l 25 $ grep -i 'ruby' hn.txt | grep -v 'rails' | wc -l 22
- pmontra 8y agoThere aren't many job postings for Ruby without Rails. Which kind of Ruby projects do you work on?
- yebyen 8y agoMy first (Rails) job was not advertised as looking for Rails dev, and I didn't touch any Rails code for probably the entire first year. Hiring manager was looking for a Ruby developer without tons of experience, or strong opinions about which gems to use. It was common for me to receive an assignment with instructions to complete it without downloading any gems. Most of my projects, were not web apps. ETL type things. When it was time for me to develop something with a web front-end, we still did not use Rails. Sinatra and (pick any template language off the shelf.) Ruby and Rails are both large skills that take lots of experience and maybe even training to become competent at using. When hiring junior developers, I think based on my experience at least, a hiring manager would do well to defer them from learning Rails until the latest possible moment. Better to learn one major skill at a time. (Then again most HN readers are probably not trying to get hired as a junior developer anywhere.)
- briandear 8y agoTotally disagree. Rails first learning means that junior devs are immediately productive. And writing code without using any gems? What the hell for? Most of the major standards are MIT, so it couldn’t be for licensing reasons. Not using gems is just wasting effort reinventing the wheel. Ruby on Rails isn’t a major skill that takes lots of experience. It takes experience to master it, but a junior dev could easily become productive in the framework almost instantly.
- js2 8y ago$ curl -s https://news.ycombinator.com/item?id=17205865 | grep -Eio '(php|python|react|java[ ,]|javascript|objective-c|objective|object-c|object|haskell|rails|mongo|mean|lamp|docker|aws|devops|android|ios|django)' | tr A-Z a-z| sort| uniq -c | sort -rn 295 javascript 95 react 65 python 40 aws 33 devops 29 rails 26 android 22 ios 21 mean 19 docker 15 django 13 haskell 10 mongo 8 php 8 java, 8 java 2 object 1 objective-c 1 objective
- js2 8y ago$ links -dump https://news.ycombinator.com/item?id=17205865 | grep -Eio '(php|python|react|javascript|java|objective-c|objective|object-c|object|haskell|rails|mongo|lamp|docker|aws|devops|android|ios|django|ruby|rails|react|swift|node|docker)\b' | tr A-Z a-z| sort| uniq -c | sort -rn 87 react 63 python 42 javascript 39 aws 33 devops 29 rails 28 ruby 28 node 23 android 22 java 19 ios 19 docker 15 django 12 haskell 8 php 7 swift 5 mongo 2 object 1 objective-c 1 objective Used links to get just the text and not the HTML markup. Used grep -O to emit just the part of the regex which matches so we can feed it all into a pipe that emits a single histogram. By ordering the pattern we can match "javascript" before "java" and not need to add the space or "," after "java" to exclude javascript (you could also use "\b" with grep -E).Case-insensitve and case-folded. Added a few other keywords. Since grep only emits the first match on a given line, this won't count properly if multiple keywords appear on one line. Why did you search for "mean"? Edit: here's another approach that splits the output into words first so that we can count multiple keywords on one line, along with a couple tweaks to the pattern to eliminate some false positives: $ links -dump https://news.ycombinator.com/item?id=17205865 | tr -s '[[:punct:][:space:]]' '\n' | tr A-Z a-z | grep -E '\b(php|python|react|java|object|haskell|rails|mongo|lamp|docker|aws|devops|android|ios\b|django|ruby|rails|react|swift|node|docker)' | sort | uniq -c | sort -rn 87 react 63 python 42 javascript 38 aws 33 devops 29 rails 28 ruby 27 node 23 android 21 java 19 docker 18 ios 15 django 12 haskell 8 php 7 swift 6 nodejs 5 reactjs 5 mongodb 5 mongo 2 objective 2 object 1 reactnative 1 reactive Another issue: this only grabs the first page of comments.
- dmartinez 8y agoThey were probably looking for references to 'MEAN' stack.
- NegativeLatency 8y agomean = mongo, express, angular, node
- ransom1538 8y ago+1 Solid thanks man.