Better HN
topnewbestaskshowjobs
Log inSign up

avg_dev

1,405 karma · joined Oct 28, 2016 (10y ago) · 474 submissions

Submissions

comment 3y ago · link · parent

i have used cvs, subversion, and git, and to a much lesser extent, darcs and hg. i would have to agree with both the article that this (d)vcs is a breath of fresh air compared to cvs and svn and also with your post and this tweet https://twitter.com/markrussinovich/status/15784512452490526... .

i believe that i notice some nice changes have been coming to git over the years. and i believe i'm largely comfortable with the toolset it offers and occasionally i advance my knowledge of it. i mostly use: git diff, git status, git commit, git rebase, git pull, git log, occasionally git merge or once in a rare while git reflog or whatever else comes up when i try to look up "how do i get back commits from a stash i popped and then checked out" (losing the changes within the stash). i actually did that again the other day and i think i may have tried git reflog and git fsck for the first time on my Windows Subsystem Linux Ubuntu machine (no idea if that is relevant) and i could not find my lost stash at all, and just ended up recreating the changes.

git is nice in the distributed sense, it is fast for my use, git lfs has been quite a pain for me in the past (but maybe it has improved). but i do find the commands quite arcane and it was very hard for me to get used to it. i am all in now and i appreciate the ux changes the project has made (and likely will make) over the years - the git command output often seems to give a short education message about what command to execute in replacement of some arcane thing i've been using for some years and there are often good blog posts describing how to use new commands, but i spent a lot of time figuring out what the hell i was doing that it would be nice if i could have spent another way.

comment 3y ago · link · parent

i took that course. it was a whole lot of fun. i still have yet to take parts B and C.

comment 3y ago · link · parent

man that is absolutely brutal

comment 3y ago · link · parent

i remember my third year of coding as a pro, i had just taken a job in palo alto and was settling in after moving. i was at my new job and a bunch of the coders at the company i was working at went out for lunch and i was getting to know them.

one guy who was younger than i was was talking about how he had a degree from a liberal arts college, and had just been coding on his own for a while, and that when he moved out there for work and was interacting with other coders in real-life for the first time (previously it had been only over the internet) he was learning how to pronounce the names of various daemons, libraries, projects, etc., and that he had understood the pronunciations differently when he was physically on his own. in my head i silently said to myself, "this guy is a junior coder and won't amount to too much" and made a note to try to associate with some of the heavy hitters to try and boost my career and status (and i guess if i'm being charitable to myself, also to learn).

that guy left the company maybe a year later. the company he went to, i think he started as a dev, later became CTO, and eventually CEO. while he was CEO, the company sold for over a billion dollars. and even when we were still working together, i did learn quite a few things from him. so yeah, i think it is easy for people to pigeonhole others, or to think that they are in a place of skill that others perhaps can't easily get to, but sometimes that kind of thinking is quite wrong. (also, at his new company he wrote some great blog posts on software development and operations practices that i really enjoyed and learned quite a bit from)

comment 3y ago · link · parent

That is really great context. I appreciate you taking the time to help me understand this all.

I'm going to bookmark your post so I have it now. This is all interesting and exciting to think about, and it makes me think of "Should I perhaps set up another VPS?" and "Should I look into becoming a website builder using some of these tools?" or maybe "Should I learn about the WP plugin ecosystem and consider becoming a plugin developer?" and many more. I do know from past experience though that going down any of these routes could turn into something that is quite time intensive and quite likely would not yield immediate results (and my time is, at the moment, mostly spoken for, and I have a full-time job). Still, it is definitely something I am thinking about, and I guess another thought that came about after reading your post was: "Wouldn't it be cool if there was a low-or-no-cost (low-cost most likely) way for non-tech-people to self-host things?" A sort of community anti-cloud VPS thing. Maybe run by some devops folks for very cheap, with the option of providing support and resiliency features at some cost. You just made me think: The idea of a small business or restaurant needing a low-touch website with the capability to self-update it is of course a very good one that makes total sense. And taking it a step further, wouldn't it be neat if stores could run their own online shopping sites without the need to pay someone like Shopify the large amount they do, and if restaurants could run their own delivery logistics without restoring to DoorDash, Uber Eats, or Skip the dishes? I guess I lean to the free open-source direction and envision a tech community that could keep wiki docs on how to self-host these things and the folks who ran them could update the docs as needed, and write code as needed, and so on. I don't know if what I'm saying is at all realistic; I just like a few things you have said, like Vanilla WP being one of the best things to happen to the web; I am guessing it just gives so many people the ability to have a nice website... I think it's a nice avenue of exploration and I am getting fed up with the centralization of all things web.

comment 3y ago · link · parent

Thanks. This is quite helpful context. (As for myself I used to write quite a bit of PHP; haven't touched it in some time but I'm rather fond of the language. I don't know anything about React, I think I built a tic tac toe tutorial once. I like the idea of htmx but mostly I do back-end development these days.)

Just one question as an aside: Would you recommend self-hosting WP these days?

I am curious about the market and who buys license for the theme builders also, but only if you would care to write about that.

comment 3y ago · link · parent

Hi, can you perhaps explain what Gutenberg, Divi, Elementor, Aveda, and Salient do?

Just a curious party without much knowledge. I hosted WP on a VPS maybe a decade ago. I wasn’t very skilled with it but my friends needed a site. I forgot about it for a while and I guess it wasn’t at the time evergreen/self-updating and eventually it was used to send a lot of spam emails somehow. That’s about the extent of my knowledge of WP. I tried building a simple static site generator once on that same VPS where you could have HTML page headers and footers and page content templates, and it worked fine for me, but I tried to get a non-tech user to use it and they could not, and were ecstatic after I finally suggested that they try WP.com - they loved it.

comment 3y ago · link · parent

i remember that article from may (linda stone from this NYT article wrote that blog post). it really made sense to me then and it does now. i used to smoke 25+ cigarettes a day and i believe it was not uncommon for me to have a heart rate of 115+bpm while sitting around doing nothing after smoking a cigarette. i also have been mostly working from home for a decade or more and i barely moved for many of those years. i started getting into yoga a while back and learned a breathing technique called ujjayi. i also started going on a lot of long walks. and since 2018 i've been playing a wind instrument again. i quit smoking some time ago as well. my breath is so much deeper and my general health - physical and mental - is so much better than it used to be. i actually just did a deep inhale recalling how things were for me and reflecting on how much better they are for me now.

i'm curious if anyone has any experience with that butyeko thing in particular...

comment 3y ago · link · parent

This is an interesting article on the subject of reading code by the coder and writer Peter Seibel (he also wrote a nice book called Coders at Work with interviews with some programmers who have worked on interesting and widely used software): https://gigamonkeys.com/code-reading/

I’m sure I’ve seen some HN posts about this article, but I can’t remember the content of such.

comment 3y ago · link · parent

beautiful image at the top of the page. I realize that it is a map, meant to convey some information. but I just like it

comment 3y ago · link · parent

I managed to get my hands on a really old version of this book (maybe 20 yrs old - no ARM I don't think). Do you think that is still good? Or should I just get the new one?

comment 3y ago · link · parent

indeed it does; i've run into it a few times. just last week i was writing some go code in vscode and it wasn't working because i had a circular dependency. vscode was reporting something in the "problems" window like a "go list" failure due to "no go files". i couldn't make head or tail of it for a few minutes. it took me some time to note that the path listed in the issue was one i had just edited. in fact, i didn't even notice the path at first -- i tried running `go list` from my repo root and didn't see the error, but when i saw the path and changed to that dir and tried again, i saw the `go list` error as reported by vscode, and i think that when i opened the file i had just edited in vscode it displayed a more understandable cyclic import message in the offending import, and it was easy to go from there.

163.

Should I Emabled Enhanced Safe Browsing in Gmail?

6 points · by avg_dev · 3y ago · 1 comment

comment 3y ago · link · parent

really appreciate this post.

1) i did a quick skim of the predicate transformer wp page, looking at weakest preconditions and taking a short detour onto the definiton of hoare triples. i _think_ it is about minimal pre-statement (statement being the active code in question) assertions and maximal post-statement assertions and using that as a basis to define your program/algorithms. this leads to strong conclusions about the correctness of your code. i would say this is a great and perhaps necessary goal for important systems. i try to do it at a slightly higher and less rigorous level with automated tests, but the desire is the same, and if i really wanted correct code, i would probably do just this sort of thing.

2) i've been programming for a while. about a year and a half ago i noticed that i was falling into this bad habit that i had worked hard to get out of many years ago where i would just take a stab in the dark, tweak some code, and run my program over and over until the output was correct. :feelsbadman: since that time, i have made an effort to develop a habit of thinking much more before running my code, and it is showing results. often i can write code for hours, once recently i even did so for days, and not execute it, reasoning as much as possible about execution and state along the way, and when i finally run it, there are bugs but they are usually quite shallow and i can fix them quickly and then bam! it just works. sometimes i pause in this and for the satisfaction of running my new code i will write automated tests that check the correctness of some of the functionality. and i have paused at times and written in my notebook, explaining to myself what the problem is that i am trying to solve, why my current solutions have failed, and reasoning about what a good and working solution might look like, and designing it before opening the IDE. that works wonders too. i would say again - i'm not quite as rigorous as he was, but the method has helped me write better code.

3) yes, i have done this before, and i try to emulate the idea in my (high level) code. but i'm definitely not at that rigorous level :)

and thank you for the reminder to avoid wasting time.

Neil Gaiman has a speech called "Make Good Art" and i read the transcript (he has made a short book out of it) and watched a video of him actually delivering the speech at a graduation ceremony yesterday. i will conclude with a quote from that speech.

> There was a day when I looked up and realized that I had become someone who professionally replied to email, and who wrote as a hobby. I started answering fewer emails, and was relieved to find I was writing much more.

comment 3y ago · link · parent

Thanks, looks very interesting.

I have a couple of questions:

1. Will I be able to use this in my IDE (say JetBrains or VSCode) alongside the programming language’s LSP? So that this project would only be in effect for the Pg SQL bits?

2. I am a Rust newbie but I’m an experienced developer. Is there any room for someone like me to contribute to the project?

comment 3y ago · link · parent

i had the same problem. i solved it by becoming much more social in my non-work parts of life.

comment 3y ago · link · parent

wow. those are beautiful. didn't expect to see that this morning!!!

comment 3y ago · link · parent

i don't agree with this take at all.

good code solves the problem at hand. good code is as simple as possible. good code is testable and tested. good code is minimal. good code is performant. good code is maintainable. good code is understandable.

yes it matters somewhat that you have some consistency of the way you code. that's a secondary thing

comment 3y ago · link · parent

a few weeks ago someone merged a small PR i made in 2016. it was pretty surprising. i had not thought about it in years and had completely forgotten about it.

comment 3y ago · link · parent

oh god thank you

this is not sarcasm. so often i have wished for something like this. and now i know that it exists!

sincerely, a long time firefox user

comment 3y ago · link · parent

This repo gave me a good laugh.

comment 3y ago · link · parent

I laughed

comment 3y ago · link · parent

idk what sub7 is, but this is a great post. i like it a lot. sometimes i find it easy to forget what learning is and how it can take place and that we learn from each other and each other's work and sometimes we discover something that no one has discovered before -- it is all learning. thanks.

comment 3y ago · link · parent

Wow, thanks again!

I really enjoyed this response and I have learned from it. (Which I guess an LLM could not do while generating something!)

Some references I glanced at (I mostly read the top paras):

- https://en.wikipedia.org/wiki/In_situ

- https://en.wikipedia.org/wiki/Theory_of_mind

Really enjoyed this response, and feel like I've developed a better understanding of some of the concepts relating to generative ML as it is used in LLMs.

An aside: I took a course on ML in a university a few years back, and it was interesting (it was an intro and survey course offered by the CompSci faculty), but difficult for me. I excelled at implementing using Keras/TF code in Python, and I had fun manually implementing some gradient descent algorithm but a lot of the math including all of the multi-var calc, stats, probability was quite difficult for me to wrap my head around, and I really didn't feel like I got a solid grounding on a meta-level of what we were doing or why. I have been reading a bit about LLMs and I think your post has filled in some of the gaps in what at this point I was really looking to understand.

comment 3y ago · link · parent

thank you for this. i am not well up on consciousness (or machine learning) and i have seen chatbots/llms hallucinate and such, and i have also seen them do amazing things. i have wondered to myself a few times lately: how do i know that im dissimilar in nature from these things?

so i ask you a followup question: what are some easy to understand ways in which a human's thought process would differ from an llm's behavior?

also for anyone else wondering: https://www.merriam-webster.com/dictionary/qualia

comment 3y ago · link · parent

I had this happen... I didn't and still don't understand what was going on.

Edit: as noted in the linked ticket, there are some discussions going on about this in https://www.reddit.com/r/firefox/ .

comment 3y ago · link · parent

I agree with this assessment 100%. We are asking for trouble with this sort of thing.

I wrote my own thoughts on the subject on a couple of other threads:

- https://news.ycombinator.com/item?id=35274017 - on an article on (Google) Bard

- https://news.ycombinator.com/item?id=35020806 - on an article about a tool called Self-Learning Agent for Performing APIs (SLAPA)

1
567
16