From my experience, most developers are actually very anxious and scared about their future.
374 karma · joined October 3, 2011
From my experience, most developers are actually very anxious and scared about their future.
This. In the past, when you could challenge a sloppy and rushed feature, done wrongly. You could steer people into better designs without adding much overhead. These days, if you try to challenge those no-reviews, ship-50k PRs daily, you instantly get labeled as AI-sceptic, someone who is afraid of change, afraid of loosing your job. I don't see a way out from this.
Same thing did happen to many work places. People at all levels proxy questions through LLMs and don't even bother to read/trim/edit the response.
Funny, how suddenly a tight, 1-2 sentence response on point is a sign of skill.
No need for snarky comments. These days tools/frameworks/languages/libraries/etc are popping all the time. Do you expect people to research every simple signal they catch in the wild?
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.
1. statement if (condition || something)
2. (statement if condition) or something
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?
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)What would be your suggestion to do this for single file scripts?