Better HN
topnewbestaskshowjobs
Log inSign up

byteface

141 karma · joined Nov 6, 2013 (13y ago) · 139 submissions

https://github.com/byteface
Submissions

comment 5y ago · link · parent

I find it's the opposite. Are Cheap hires, 10x devs that think the rules don't appply, bad managers, the work shy etc hurting your stand-ups?

comment 5y ago · link · parent

nice. i've done simliar projects with unipis in hotels as its cheaper than crestron. Seeing that din rail brought back some memories. you can attach an infrared reciever to the pins and use lirc to then basically do whatever from a universal remote aswell which is a cool upgrade. put infra on a pizero on the network so it can go in ceiling or discretely somewhere. you might also find the AC has an http interface . they often modbus but samsung have http ones too. so u may be able to control that. one thing you can do is read the serial signals coming out of an AC controller and record the bytes. then just store them as instrucitons and send the same bytes over the same wire to hack it. takes a lot of fiddling.

comment 5y ago · link · parent

you mean with buffers i.e. array.array . i thought that.

comment 5y ago · link · parent

Also take courage and pick a good time of day.

comment 5y ago · link · parent

Most windows users have at least 4/5 versions of linux installed on their machine so it's a non issue. They have wsl, a base installed partition, vagrant, a VM and probably docker containers. so running one extra command to gen a windows package isn't a big deal.

comment 5y ago · link · parent

You really notice when you don't have it anymore after using it for several weeks. Writing each line again, each painful character one at a time. I keep accidently opening sublime and going to type then realising it doesn't have copilot. And think ugh.

It's nice to reason about your actual problem and not the features of code.

comment 5y ago · link · parent

Not sure what you would take as evidence. You seem convinced. I have github repos. If you like, take any app idea. In any language you want. We can both spend 2 weeks building it. Screen record yourself making it and ill use copilot, you don't. We can see who's is better?

edit.

- ok so you conceded in your sentence that it's faster and you would use it for that reason.

so your only disagreement is it can't help you solve harder problems?.

- the average dev is hitting stackoverflow 10x a day for that very reason. And that data is embedded in copilot. I've literally typed the name of functions I was going to have to spend 20 minutes googling to figure out how to achieve. typed the pseudo code comments and boom. copilot has done it before I even had to think. If not I just have to change how i prompt it by feeding it a few variable names or changing my comments. As I said. You can get good at using it. If copilot is crap it's because of the person using it. I.e. if you are looking for a bike and you google 'chicken sandwich' well. You aint gonna get a bike.

comment 5y ago · link · parent

If you don't think it is. It says a great deal about you too :)

comment 5y ago · link · parent

True. My son is on the waiting list several week now. But honestly traditional coding is the past. Soon they might be asking for someone with 12 months copilot experience. I don't mind the negative downvotes from luddites. Copilot is smarter and faster than you. Accept it and learn to use it.

comment 5y ago · link · parent

I do every day. I code 5 times faster on problems several times harder.

You also get good at 'using copilot' just like you can be 'good at googling'. So if you not already doing it. Start now.

IMO. There's literally no point coding without it. You are completely wasting your time. However it has limits. It only helps you write code. Architecture is still down to you. If it could read your whole codebase rather than just the page you are on. And if you could supply it prompts via urls. i.e. preloads it with hints from other code bases. Then it will really become something else.

comment 5y ago · link · parent

Well people were making API calls to stackoverflow at the time to pull the most popular answer based code comments. There were several Sublime plugins. So this wasn't so hard to imagine.

comment 5y ago · link · parent

not yet but maybe one day we can leave the 90s behind

comment 5y ago · link · parent

'You may not need javascript' is a repo I'd like to see.

comment 5y ago · link · parent

I do feel the move against jquery comes from people that surpass it, which seems a shame. They had to use it once. It's like burning the rope for the people behind. Many low level users don't care about 30kb to get the $ shorthand as it's a habit they've had for a decade. It's funny almost to see the hoops people jump through not to use it. Like having a point to prove and not being able to prove it. Hey look, you can replace jquery with these 10 unmemorable esoteric steps.

comment 5y ago · link · parent

I wasn't aware of this so thanks for sharing. I've been setting up a repo that utilises github actions to build exe/app files as noted in this guys blog...

https://data-dive.com/multi-os-deployment-in-cloud-using-pyi...

It uses pyinstaller to build and even pushes the build as a zip into your release page on github and appears to be working quite well.

comment 5y ago · link · parent

thanks for posting this. looks amazing!

comment 5y ago · link · parent

I guess if he wrote tests first it would have said. no method called x in util. TDD helps take a lot of thinking out of problems.

comment 5y ago · link · parent

He seems to know the codebase and works out the problem for about 30 mins sometimes fastfowarded. Then at about 28 mins copilot smashes the answer instantly when he types a method name at the bottom of a utils file. he doesn't like it though as he seems to know the api really well and wants the util to use his api instead. so deletes the copilot answer and types out a different answer using the api which he knows.

then creats a few unit tests.

This was an interesting watch and useful to see other peoples setups.

comment 5y ago · link · parent

copilot is a game changer. It can and will be automated and get smarter as we use it. If it was able to generate unit tests for the functions it was writing for example to come up with solutions. I don't doubt someone is adding this feature as we speak.

comment 5y ago · link · parent

i think thats the point the article is making? don't just use a tool or lib, but understand how generators work. that is more pythonic. am i right?

comment 5y ago · link · parent

Man, I got some stories. I don't tend to write them down. Funny read.

comment 5y ago · link · parent

Similar thing happened to me in early years of dev. I decided not to take the offer if I couldn't express myself. Nowadays I'd love to disagree with someone, especially on interview.

comment 5y ago · link · parent

good point

comment 5y ago · link · parent

if you could cure disease just for the money I don't think anyone would hold it against you.

comment 5y ago · link · parent

I found finally is useful for kicking off a job after returning a response within the same func without having to spawn another process or block. i.e. return a 200 response immediately in the catch then kick your slow running job off in the finally. They can poll back for results when baked.

comment 5y ago · link · parent

Initially I let it be bad. I just wanted to see if it would make the methods i needed...

self.params = ast.literal_eval(paramString)

but it even re-wrote that part for me...

self.params = urllib.parse.parse_qs(paramString)

comment 5y ago · link · parent

So this is ironic. I've been meaning to port URLSearchParams to python for ages but been putting it off for about 8 months as I knew it would take several hours of thinking + testing etc.

After reading this blog article. I just now used this AI https://6b.eleuther.ai/ to do it in about an hour. Without hardly trying.

comment 5y ago · link · parent

I guess it's easier to remember $ than queryselectorall . I recently realised most of its methods are now natively supported. I think people who don't use js a lot may not realise that.

comment 5y ago · link · parent

this is nuts. I just used it to complete 3 or 4 methods on an unfinished python class?!
12345