Better HN
topnewbestaskshowjobs
Log inSign up

hackyhacky

4,892 karma · joined Jul 7, 2014 (12y ago) · 1,429 submissions

Submissions

comment 6y ago · link · parent

They don't ask. If they did ask, I'd say that tech employers are designed intentionally to subsume as much of your life as they can. If you want to have your own life, you need to stake a claim.

More controversially, I'd say that any labor relationship is necessarily exploitative, and doing any work beyond the minimum means that you are giving more than you're getting and thus being abused. But that's not advice for having a prosperous career. :)

comment 6y ago · link · parent

That doesn't correspond to my experience at all. Where did you find that situation?

I imagine it might be different in secondary school education, but at the university level, I find that no one really cares what I do, as long as the students don't complain. I always redesign the curriculum to suit my tastes and interests, and I've never gotten any pushback from admin.

Basically, the department assigns me classes to teach, and after that I'm on my own. Once a semester a senior faculty member observes my lecture, mostly to make sure that I haven't shown up drunk. The only politics I'm exposed to is on the hiring committee.

comment 6y ago · link · parent

You may be right. When I was younger, I was a lot more willing to focus on purely technical problems. I'm still an introvert, but let's say that I'm "extrovert-curious."

comment 6y ago · link · parent

I have experience teaching in eastern Europe as well. It's been hit-or-miss. It's best if you're flexible and don't fixate on any particular location.

If you need a visa and work permit, it really complicates matters: I highly recommend acquiring European citizenship if at all possible. (I did, which had the side-effect of immersing me in genealogy as a hobby.)

comment 6y ago · link · parent

Again, just my two cents, but in looking for full-time, contract-based, permanent, non-tenure-track teaching positions in the northeast of the US, I found no shortage of schools eager to make offers to someone with the right background. Here, "right background" means previous teaching experience, good evaluations, and extensive work in industry, as well as a killer demo lecture.

comment 6y ago · link · parent

I think it's a little unfair to blame developers.

I see the problem that our tooling is diverse and assembled from parts. You can pick a compiler from column A, a version control from column B, and GUI framework from column C, a message queue from column D, etc. And somehow, it's is possible to make them all work together. We love having that flexibility and choice.

But we pay a price in the added complexity of making all the pieces play together. A sibling comment mentions Turbo Pascal, as a contrast to today's programming environment. Yeah, Turbo Pascal was great, but it was also an all-in-one kit: you couldn't even use your own linker, you had to use the built-in TP linker. In a sense, it was a walled-garden Apple-style development environment. But it worked, it was easy, and it was fast.

The closest we have to that today is Visual Studio. I'd argue that the (mostly) all-in-one nature of Visual Studio and C# relieves a lot of the headaches of the more traditional open source toolset, at the expensive of less flexibility.

This is not an argument in favor or against the Microsoft world, just an observation.

comment 6y ago · link · parent

In my experience, in the job market right now in the US, universities are positively salivating at the chance to hire experienced tech people into teaching roles. This is because lots of students want to study CS, and not a lot of people want to teach it (being that qualified people usually either go into industry, or go into research).

The salary may not be great, if you have experience and good student evaluations, you are in a strong negotiating position.

Some caveats: getting a university teaching job is a lot easier than getting a university research/teaching job. Previous teaching experience is a big plus, as is previous industry experience. PhD is nice, but not required (I don't have one).

comment 6y ago · link · parent

As a kid, I aspired to be a programmer. As an adult, I succeeded, and I stuck around for a good long while. There are a lot of reasons to like working tech, obviously: the salary, the flexible working environment, the prestige, the opportunity to build products that real people use, the chance to play with new technology, and of course working with occasionally brilliant colleagues.

I tried to convince myself that these advantages made it worthwhile to sit alone in a dark room for >10 hours a day, but in the end I couldn't. I was spending more time wrestling with package managers, version conflicts, obtuse configuration files, pointless deadlines, egotistical colleagues, and almost zero time solving interesting problems on products that I care about. You might argue that I should have just found a better job, and I did, several times, but I found that no matter how much enthusiasm I had for a job at the beginning, eventually it got bogged down in software engineering detritus. I didn't much care for my colleagues: no offense to those present, but I just don't really like tech people, despite the fact that I obviously am one of them.

Through a series of coincidences, I found myself with an opportunity to teach programming at the university level. It was a lot of fun: I can talk about problems that interest with me with people who want to hear it. I operate with very little supervision. I still get to learn new technology, but fortunately I can ignore the rough edges and focus on the benefits. Meetings are minimal. The salary is adequate for my lifestyle. Best of all, I get to interact with real, live human beings. (Although at the moment, of course, we're doing everything via Zoom.) Fundamentally, the problems I'm solving are not technology problems, but human problems. At this stage in my life, this is more interesting.

I never imagined I'd end up a teacher, partly because I was a terrible student. Over the years, I had gone back and forth between industry and academia but now I think I'm in academia to stay: there's nothing I miss about slinging bits for a living.

Ironically, I'm helping my students enter a career that I left, but I let them make their own life decisions.

comment 6y ago · link · parent

People have been building bridges for thousands of years. We've been doing software for barely two generations. Try to imagine what the first generation of bridge-building looked like. Don't worry: we'll catch up. Give us a few thousand years.

comment 7y ago · link · parent

These sentences do not mean "Jana loves Petr." Subject/object relationship is determined by case marking suffixes on nouns.

Another comment proposed an apropos analogy:

English is like position-based parameter-passing.

  sentence.love("Petr", "Jana")
Czech is like keyword-based parameter passing.

  sentence.love(object="Jana", subject="Petr")

comment 7y ago · link · parent

This is not correct. Clauses of a predicate are evaluated in order, which can be significant if, for example, you want to do in-order vs pre-order vs post-order traversal of a binary tree.

  inorderTraversal(t(V, L, R), Z) :- inorderTraversal(L, Z).
  inorderTraversal(t(V, L, R), V).
  inorderTraversal(t(V, L, R), Z) :- inorderTraversal(R, Z).
Also, the meaning of ordering of goals with a rule may be significant:

  ?- not(member(X,[a,b,c])), X=f.
  false.
  
  ?- X=f, not(member(X,[a,b,c])). 
  X = f.

Although Prolog aspires to represent logic, it is still really just a logic-flavored programming language.

comment 7y ago · link · parent

Regarding the linked blog page: It's a nice introduction to the idea of cases, but it's not entirely accurate: the usual dative/locative form of Pavel is Pavlovi. Pavlu would be used only when there's a surname present. Thus "o Pavlovi" but "o Pavlu Novákovi".

comment 7y ago · link · parent

The reason is that the grammar is so developed that the word order is essentially arbitrary

Lots of languages are like this. Czech, Slovak, Hungarian, Polish, etc. And those are just the ones that I know.

  Janu miluje Petr. -- PETR loves Jana.
  Petr miluje Janu. -- Petr loves JANA.
  Petr Janu miluje. -- Petr LOVES Jana.
  etc etc
The only people who say that Latin is uniquely flexible are those people with no experience in other languages. If expressive inflection and flexible word-order are your thing, you have lots of languages with millions of living speakers that fulfill that requirement.

Latin is not magical. It's just another language. I'm happy that the author enjoys it (language, any language, makes a great hobby!), but I wish we could skip the hyperbole around Latin's alleged virtues just because the Romans happened to use it.

comment 7y ago · link · parent

Alternatively, if you save the file as turtlestuff.py, you can run this:

  python -c 'from turtlestuff import *; snowflakes(); turtle.mainloop()'
or

  python -c 'from turtlestuff import *; snowflakes(3); turtle.mainloop()'
or

  python -c 'from turtlestuff import *; orb(); turtle.mainloop()'

comment 7y ago · link · parent

Don't save the file to turtle.py, because then the "import turtle" line might try to import itself. Call it turtlestuff.py. Then do this in terminal:

  python -i turtlestuff.py
Then you'll get an interactive Python prompt and you can call the functions directoy, e.g.

  spirals()
Hope this helps you!

comment 7y ago · link · parent

These programs rely on Logo's turtle interface, which is a convenient and intuitive way to describe graphics imperatively. It's great for kids. These days, Python also has a turtle library (edit: built-in! part of the standard library, for some reason), heavily inspired by Logo, which means that the code on this page can be easily translated into Python. Here are some example that you can run at home (since I assume more people have access to Python these days than likely have a Logo interpreter installed). Edit: these are Python translations (by me) of the top three entries on the linked page.

    import turtle
    import math
    turtle.tracer(0,0) # remove this line to watch the drawing

    def spirals():
        # repeat 1800 [fd 10 rt repcount + .1]
        for repcount in range(1800):
             turtle.fd(10)
             turtle.rt(repcount+.1)
        turtle.update()

    def snowflakes(variant=6):
        # repeat 8 [rt 45 repeat 6 [repeat 90 [fd 2 rt 2] rt 90]]
        for _ in range(8):
            turtle.right(45)
            for _ in range(variant):
                for _ in range(90):
                    turtle.forward(2)
                    turtle.right(2)
                turtle.right(90)
        turtle.update()

    def orb():
        # for [i 0 420] [seth :i repeat :i [fd 2 rt 1] pu home pd]
        for i in range(0,420):
            turtle.seth(i)
            for _ in range(i):
                turtle.forward(2)
                turtle.right(1)
            turtle.penup()
            turtle.home()
            turtle.pendown()
        turtle.update()

comment 11y ago · link · parent

Similarly, it is widely known that an effective treatment for lung cancer is to stop breathing.

comment 11y ago · link · parent

The argument that Uber is providing reasonable service despite regulations does not justify removing them.

In a city like New York, where traditional taxi services are deeply entrenched, Uber must provide service that is at least as good as the status quo. The guarantees that the state enforces to protect consumers in registered taxi services serve as baseline, and Uber knows this. If that baseline did not exist, that is, if Uber were competing only against unregulated commercial services, there would be a race to the bottom, and suddenly New York would start looking a lot like Bangalore.

In this way, regulation improves things even to those who use services that are not regulated.

comment 12y ago · link · parent

I think a lot of people are misinterpreting what the article is saying (and maybe it wasn't expressed that well). The author is not saying that we need a tool that lets literally anyone be a developer ("So easy even a manager can use it!"), but rather that the current technology stack is so hacky that it gets in the way of progress, and demands levels of specialized knowledge that are tangential to the task of building web applications: that is, a higher-level set of development tools. Just as (to pick a high-level, desktop-oriented language at semi-random) C# is easier to work with than x86 assembly language, because it hides the messy details, I think the author would like a world where building a web application is as easy as building a desktop application: a world where issues like data serialization, browser-specific JavaScript hacks (and the hacky frameworks meant to solve them), incompatible databases, constant vigilance against easily preventable attacks (cross-site scripting, SQL injection, etc), and the necessity of juggling at least 3 different languages (JavaScript, HTML/CSS, and whatever you have on the backend) do not occupy valuable developer brainspace.

The issue is that the current web technology stack was never meant for building applications. HTML was designed for static documents. JavaScript's early development was mainly for making terrible mouseover-effects on links. XMLHttpRequest is a historical accident. So, yeah, it all works together, somehow, but it wasn't designed to be used as it is today, and it shows. And it's the developers who carry the burden of integrating these hacks. I, like the author of this article, wonder if it wouldn't be nice to design a system to provide the advantages of the web (distributed client-server applications with highly-customizable, visually attractive front-ends delivered on-demand) with a slightly more human development process. If we can't replace the web outright, maybe we can build better tools ontop of it.

I agree that current web technology is a horrible pile of kludges. Let's try to build something better. Some attempts are already being made. Please check out the amazing Ur/Web language [1] that lets you write front-end code, back-end code (compiled to native), and database code in a single, type-safe language that statically guards against errors that are rife in dynamically-typed web scripting languages. It abstracts the database, without wrapping your data in an annoying object layer; it lets you write front-end and back-end code in one language that communicate transparently. It is far from a finished product but it is an amazing glimpse and what could be with intelligent develop tools. There are some great examples on-line that show how easy it could be. Easy for a developer, of course, not for a layperson.

[1] http://www.impredicative.com/ur/

1
4445464748