1,405 karma · joined Oct 28, 2016 (10y ago) · 474 submissions
comment 3y ago · link · parent
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
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
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
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
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'm curious if anyone has any experience with that butyeko thing in particular...
comment 3y ago · link · parent
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
163.
Should I Emabled Enhanced Safe Browsing in Gmail?
6 points · by avg_dev · 3y ago · 1 comment
comment 3y ago · link · parent
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
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
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
comment 3y ago · link · parent
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
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
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 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)