HN user

aeonflux

272 karma

aeonflux.at.hn

Posts5
Comments121
View on HN

I don't really understand where is this need to compress the logic into where small chunks comes from. In result we get single line of code which has multiple statement conditions, different paths, and it's not possible to grasp in one go.

Other practical example why ternary is bad: Many code-coverage solutions break on ternary because they don't correctly see that one of the branches was missed in tests.

Types are helpful in large codebases, but in Web Apps they tend to get into the way more than they help. You can still use semi-typed constructs in Ruby, but you have the freedom to choose where you need them.

After moving to writing web in Go (from Ruby) I am still baffled how much more boiler plate there is and how much slower things move because of this. Types are great when you want to refactor some things, but thats just part of the job.

In Ruby I loved how can you just quickly jump into REPL or just do inline breakpoint to inspect state: `scope.map(&:names).last.tally.sort_by(&:last).reverse.first(10)`

Something like this is such a chore in Go that I simply skip it more often than not.

it uses a lot of special characters, which makes writing the code slower

I don't get this part. What special characters?

Could you point out where do you get your data from? Anything to back-up your claims that Rails is in decline and Elixir/Phoenix is growing? For a time not long ago I was heavily into looking for an Elixir gig, but couldn't really find offers, while there were still tons of offers for Rails development.

Hyperspace 1 year ago

List is available after paying. Which makes a lot of sense.

I do ask this question in a initial questionnaire. I list bunch of technologies and just require this input. I do agree with all the points in the article, but my goal is to have relative scale. I am not able to verify all the needed technologies, but I can do verify few. Whatever the scale candidate choose, I assume its consistent. If someone self-scores 9/10 out of Postgres and doesn't understand basic things, I can safely assume his other 9/10 are worthless.

Despite their shady practices I still only book through Booking.com when I to unknown places for the firs time. At the end of the day Booking sticks to customers when theres an issue and all the Venues/Hotels seem to care about their relation with Booking.

Wavelength 3 years ago

I remember that story differently. No one is obligated to respond to Atwood questions just because. But gentleman don't need to start digging into unrelated stories to discredit someone. Let's stick to point here.

ChatGPT Plus 3 years ago

My only issue is that GPT training set is locked like 1-2 years ago. I often find myself looking for recent stuff in Google.

ChatGPT Plus 3 years ago

If you want to go full circle you can send the ⌘-C and ⌘-V key events before/after they query. This will just send selected text and replace this with answer. I prefer not to do that, since queries are quite slow and I rarely block waiting for round trip. I also use vim and vim mode in lot's of apps, so replace works differently there.

I prefer to use clipboard as the exchange place. I select text, copy it, then query the service. Once the query completes I can see the answer in popup and can paste it to my current editing place.

This is the code:

  local hyper = {"cmd", "alt", "ctrl"}

  hs.hotkey.bind(hyper, "Y", function()
    local url = "https://api.openai.com/v1/completions"
    local api_key = "..."

    local headers = {
      authorization="Bearer " .. api_key,
      ["content-type"]="application/json",
      accept="application/json"
    }

    -- hs.eventtap.keyStroke({"cmd"}, "c")

    local message = hs.pasteboard.readString()

    local data = {
      prompt=message,
      model="text-davinci-003",
      max_tokens=32,
      temperature=0
    }

    hs.notify.new({title="OpenAI query", informativeText=message}):send()

    hs.http.asyncPost(url, hs.json.encode(data), headers, function(status, body, headers)
      local response = hs.json.decode(body)
      local answer = response["choices"][1]["text"]

      print(body)

      hs.notify.new({title="OpenAI response", informativeText=answer}):send()
      hs.pasteboard.writeObjects(answer)
      -- hs.eventtap.keyStroke({"cmd"}, "v")
    end)
  end)
ChatGPT Plus 3 years ago

How are they using ChatGPT - is there an API? Or is this simply abuse of TOS?

ChatGPT Plus 3 years ago

Of course. I use this in Hammerspoon. The API call is simply in Lua.

MMO seems to be in decline, not due to technical limitation. Also, I’ve just tried GeForce Now and I was blown away. I don’t think that huge changes in the model are practical in order to get 1% improvement over what’s available now

It's not a 3 man company, you know. If they are interviewed and hired as Frontend (React) Developer in organization of that scale, they might expect to actually do what they are qualified to do.

It doesn't really work even with one closed AppStore. How that could work if they would be forced to allow 3rd party AppStores? I don't understand this logic. On one hand you want to force Apple to allow 3rd patry stores (and apps). But still you want them to have final word in the approval process?

And SSL validates just the domain name, which still allows all the phishing attacks to thrive. Compare installing App for the first time to coming to some website for the first time ever. SSL doesn't really provide anything to identify the site, anyone can get any domain.

Supported side-loading is a thing on Android since day one? What innovation came out of this? Thousands of rip-off apps, all sort of malware pushed upon clueless users? I know, that some of those things are still a problem on iOS, but just imagine how worse this can gen, if they would be forced to open up the system for additional app stores.

Raw number of developers doesn't matter at all. The ratio of offers to developers out there determines how easy the hiring actually is. I've tried to hire some quality PHP developers and it's as hard as Ruby/Python if not harder. First thing is, that you always get all the Wordpress people, who fixed one plugin and claim to have 10 years of PHP experience. Then you have to filter out all the 10 YoE who actually have 1 YoE done 10 times. For some reason all this is less of a problem in less popular stacks.

I became quite proficient in those types of interviews just by doing really small amount of exercises. No need to grind for countless hours.

If you get an async automatic test you can always google your solution easily. You need to be proficient in understanding the problem and implementing the solution from description or rewriting in it different programming language. I had few live coding sessions with "leetcode like" task. Most of they time you'll ask you to do some basic thing, where the default complexity is around O(N²) and the idea is to come up with faster solution.

Once in a while I like to experiment with different programming language and leetcode is one of the best way to do that. People advice on building real world apps when learning new stack, but I find that really dull, as you need to understand a lot more machinery in the stack before you can actually have something running. Leetcodes are easy to run and create. At the same time they force you to lookup basic constructs, learn how to work with strings, arrays, etc.