Readit News logoReadit News
jalanb commented on Black – Uncompromising Python code formatter   github.com/python/black... · Posted by u/collinmanderson
askvictor · 6 years ago
How do you recommend fitting an autoformatter into a programming workflow? I'm using pycharm
jalanb · 6 years ago
pycharm is a workflow now?
jalanb commented on Ask HN: How can I get better at bash?    · Posted by u/cocolos
bhaak · 8 years ago
How about you don't? Bash as scripting language is rather mediocre.

Anything that is not simple in bash gets hard to read and debug and probably is wrong on some subtle levels.

I have a rule of thumb that any shell script that grows beyond a screenful of lines gets redone in a proper scripting language.

jalanb · 8 years ago
How about OP does anyway? Bash as a scripting language is fucking great!

Since when is simplicity an argument against writing programs? Whether scripts or frameworks? "Hard to read" is not neccessarily an inherent trait[1] of the language, and more likely wrong on some PEBKAC level.

I have a customised environment at near 10k lines of bash in 5 projects, all of it in the correct tool for the job, aka a proper scripting language, so I can suggest another use for your thumb :-)

1: https://www.reddit.com/r/commandline/comments/2kq8oa/the_mos...

jalanb commented on We analyzed thousands of interviews on everything from language to code style   blog.interviewing.io/what... · Posted by u/emilong
ice109 · 8 years ago
rapport
jalanb · 8 years ago
TIL Rapoport's rule, https://en.wikipedia.org/wiki/Rapoport%27s_rule

Oh I do love the interwebs.

jalanb commented on A Python implementation of formal systems from the book “Gödel, Escher, Bach”   github.com/alexprengere/F... · Posted by u/geospeck
ehudla · 8 years ago
The original version in Common Lisp is also available: http://web.cecs.pdx.edu/~mm/how-to-get-copycat.html
jalanb · 8 years ago
I implemented it in Python (while reading from that LISP version, a Java version, and Melanie Mitchell's "Analogy-Making as Perception"): https://github.com/jalanb/co.py.cat
jalanb commented on “Node.js is one of the worst things to happen to the software industry” (2012)   harmful.cat-v.org/softwar... · Posted by u/behnamoh
ido · 9 years ago

    I think basic CompSci courses should really have a
    course or two on managing software projects and handling
    the problems of what framework do I use to build my new
    software app
The problem (if it's a problem, depends on who's asking) is that undergrad CS courses mainly train you to be a CS graduate student (which in turn train you to be a CS academic), but most students choose to major in CS because they want to become professional programmers (aka Software Engineers).

I've done both bachelor and master level CS studies and job-preparation-wise would probably have gotten as much (or more) from a 1-1.5 years (2-3 semesters) vocational training than I did from 8 years of university.

Probably the most apparent perk my studies have gotten me career-wise was being invited to interviews at major tech companies like google and amazon.

jalanb · 9 years ago
> most students choose to major in CS because they want to become professional programmers (aka Software Engineers)

Then why not major in Software Engineering? Is that not an option in American universities?

jalanb commented on What media companies don’t want you to know about ad blockers   cjr.org/opinion/ad_blocke... · Posted by u/CaptainZapp
Klathmon · 9 years ago
I understand that you have the capability of doing that, but why do you have the right to do that?

Why is it that you morally think it's okay to just consume content others have created without paying?

jalanb · 9 years ago
Because "The custom and practice of the web has always been that publicly accessible pages are served without payment"

The publishers are not offering content subject to a fee (which I am not paying). They are offering content for free, and also offering ads for free.

Accepting one of their free offers, and rejecting another of their free offers is not the same thing as "just consume ... without paying"

Some news sites do offer their content subject to a fee, and if they were interesting enough then I would pay that fee. But, because none of those sites (that I have encountered) are worth it, in comparision with the freely-served pages of the net, I choose not to pay those sites, and forego their content.

But if they are not explicitly charging a fee, then we fall back to the default custom and practice, which is that they offer content for free, and ads for free, and I have the right to accept as many, or few, of those offers as I like.

jalanb commented on Does technical debt lead to the rejection of pull requests?   arxiv.org/abs/1604.01450... · Posted by u/nextjj
jalanb · 9 years ago
Typo in he pdf link, should be: http://arxiv.org/pdf/1604.01450v1.pdf
jalanb · 9 years ago
Muphry strikes again :-)
jalanb commented on It Is What It Is (And Nothing Else) – Why Recursion Still Matters   existentialtype.wordpress... · Posted by u/ingve
mda · 10 years ago
If working with trees, recursion is usually easier to understand.
jalanb · 10 years ago
If working with recursively expressed data, recursively expressed algorithms are usually easier to understand.

u/jalanb

KarmaCake day60August 29, 2009View Original