Does this support group chats? How does it do encryption if so?
HN user
alan_n
I think a lot about code readability a lot. I agree with most of this except the names part and shorthand constructs. Especially for the latter, it's unfair to make a comparison with the wrong operator. The example in general is a bit weird. I think a better one is `if (myObj !== null) myObj = someOtherObj`. A very common pattern for which js now has a nullish coalescing assignment you can use insteal (`myObject ??= somOtherObj`) or there's also ||=. These sacrifice some readability upfront due to them being "uncommon" operators and the code might be harder to read for someone whose never seen it, but is so much easier to read once you get used to it. There is of course, always a trade off. Using a lot of .? to access properties can be code smell, but also sometimes very helpful, as the alternative would expand into a lot of code.
Regarding names, I think the suggestions are a bit in conflict, as often to avoid variable shadowing you have to do stuff like name things node, _node, node2. I try to have distinct names, but I'd rather the shadowing in those cases where it's hard. As for i, and j. I don't like them, but they're such conventions it's hard to avoid them. I always try to use them only once, and assign the variable I need: `item = obj[i][j]` if possible.
I'm glad the writer has actually tried Tailwind and I respect it's not really their thing, but I've got to hard disagree with the Builder vs Crafter/specialist look on it. Tailwind will only just barely save you from not knowing CSS, it's still fundamental to understand it. Also I would consider myself very well versed in CSS, but while my handcrafted css works, it cannot compare in maintainability to its tailwind equivalent. CSS inevitably becomes a spaghetti soup of states after a while. I switched an entire component library to tailwind + tailwind-merge and everything was much cleaner and easier to understand. So much so I could not believe it.
Yes, I can't believe how few good complete solutions there are for this that don't involve me curating anything.
Currently I have obsidian notes for different libs and technologies and really useful stuff or things I plan on reading, they go there but search of the page itself is non-existent. For sites I go to again and again because chrome's search sucks, I tag my bookmarks in the url title with an underscore (e.g. _python _docs) and stuff them all in a folder. An underscore actually works and you can combine them to quickly find stuff. For highlights, I don't highlight much, but I use hypothesis because it looked promising, but honestly it's been very slow with any management related features. I also run a local archivebox for pages I don't want to loose. It has search but doesn't show you where the term matched.
And I've been keeping an eye out on spyglass, which is a local search engine with the concept of custom "lenses" that you can create or you can get ones created by the community. It can also index local files and bookmarks. It recently fixed the shortcut issue I had on linux so I'm properly trying it out and it seems very promising. I hope to be able to hook it up to all those different services. Need to clean my older bookmarks first....
I've not done used the feature in ages, but I'm pretty sure Calibre can do something similar.
...um I didn't suggest we crack down on anything. Just personally I would think you're crazy if you tell me you're dimension jumping.
Part of it probably is hypnagogia though I was so alert that it did not feel like that normal transition to sleep. It felt more like I had meditated myself into a lucid dream. There were some stray thoughts but none of that cloudy brain fog with senseless thoughts I would normally get going to sleep.
Also from what I understand the feeling of suffocation is quite common for people who experience sleep paralysis. You're not actually suffocating. Given I induced it, that's probably what that was. The first time it woke me up, the second time I ignored it and a few seconds passed and then the sensations stopped and I was lucid dreaming. At least that's what it felt. I slept for slightly more than an hour most times (I've only managed it during naps) and lost lucidity at times. It felt like the dream started immediately but it might not have. Also at other times I could feel my body in the bed again but wasn't dreaming just asleep.
This just sounds like lucid dreaming awake imo. Kind of scary some of these people believe they're actually jumping dimensions or something. Wonder how much control they can exert compared to a lucid dreaming.
I've not managed LD awake/meditating yet , but I can fall asleep awake if my body is tired enough but I'm mentally awake, though it requires a lot of concentration. And doing it does not feel nice (you can feel your body paralyzing, feels like you can't breathe and you have to avoid reacting).
Interesting, but would not really use it unless it could auto group by url. I don't want to have to set things up. Like if I have more than X tabs for a site, group them automatically. This would be great when debugging/learning and I have 20-30 tabs open and more than half might be to one new site that contains the docs for x thing I'm doing/learning.
Strangely I did not have a strong internal monologue when I was young. My thoughts were mostly "visual" unless reading. It is more 50/50 now, but I still "see" most of what I think/read if that makes sense.
Mmm, strange. I do some minor diy stuff and I can't imagine not imagining stuff. I do draw on paper to brainstorm and use CAD but most of the design problem solving goes on in my head.
But then I am also an artist... Although more because of this than the other way around. Although drawing has further trained this ability, I have accurate detailed childhood (~5-6y) memories (of houses, schools, objects, etc) from before I was drawing consistently enough for it to matter (high school).
I wonder, can people who see 0 imagine movement if they're seeing the object right in front of them? And if they can draw 3d objects, can they still do so if they close their eyes?
I knew there were people who don't see anything, but I would have thought anybody could do 6. I can imagine far more complex 3D stuff (more than rotating, also complex movements) but it's blurry unless I designed it or know the thing/place well (like my house), but I can "zoom" into things to get more detail.
You learn something new every day I guess. I wonder if this can be used to predict what fields someone goes into or could go into that they'd be good at (engineering, etc).
Apart from the other tips given, in particular proper technique:
Try doing a few meals in a row with similar ingredients and chop once for like the next 2-3 days (depending on what's being chopped).
Also you can try timing yourself. See how long it takes to chop an onion, record it. Now you know the REAL prep time for a recipe based on it's ingredients.
What really saves time is having an idea what order you're going to do things and how to parallelize tasks, but for that you need to have some intuition about time so you don't accidently burn something. There's a recipe I make that takes twice as long if strictly prepped first then cooked.
Also, just going to state the obvious, but if you're cooking for more than two people, it's just always much harder.
This is really interesting, can't wait for more.
Personally I cannot really get the hang of linked editors like this that only use links or basic tags for structure. They require too much upkeep to keep things organized. I'm working on my own solution that goes a different way, but it's nice to see more open source implementations of these types of editors.
As a writer I hate these types of apps. As others have pointed out, when you put real popular works in them, they light up like christmas trees. But very few have touched on why.
One thing you learn as a writer is you want varied sentence structure * . Also good prose has a sort of rhythm, both in the words used and the lengths of the sentences (this is also imo why translations rarely compare to the originals). If you make all your sentences the same length it sucks the rhythm out. As for everything else it highlights, they're all just tools. A long word or a passive voice used in the right place can work better than the "correct" alternative. Writing is about knowing which tools to use when. In some ways, writing is very similar to visual design. People don't notice why some writing is good. It's just a bunch of tiny choices that all add up, but also if you use comic sans you're dooming yourself to failure.
What do I actually suggest to writers? Read your story out loud (tts can help to pick out errors as well, but rarely rhythm related errors). If you mentally stumble or backtrack reading a sentence, something is wrong. If you feel like you need to pause but there is no pause, something is wrong. Same with the opposite. Finally, put the story away for a month and try it again. Rinse and repeat until polished.
* Like everything, this also just a tool. You can not use it and still have amazing prose that matches the situation (e.g. one long run-on sentence to emulate a stream of consciousness).
Mmm I don't know, maybe it's me and the fact I don't have a problem coding for many hours at a time, during which it's one step forward, two back, three forward, etc. We all know how debugging is. If I broke that time down across many 2 minutes as a beginner I would have quit. And currently when I don't have time I'd rather let the problem ruminate in my head than code, or make progress in some of the other ways I mentioned, but definitely not coding.
I've actually read both Fogg (dry and repetitive but more precise) and Clear (more engaging but more fuzzy/muddled concepts) although not Duhigg. Like I said I agree/use the method. I'm not picking holes just pointing out potentially bad examples. Also most people will not read the books. They'll read the 5 minute versions like these. They should have the absolute clearest/best examples.
Being interrupted (and especially by the type of interruptions on a bus, like what's the worse interruption? getting asked to move?) or working in bursts is not the same as doing 2 minutes of work then stopping.
The reason I'm nitpicking this example is because I've found it helps substantially to know that even if I only do 2 minutes of the thing, I'm making progress. Otherwise it's very hard to trick my brain into doing the thing. I don't like the "wear running shoes" example either. I have found that when I plan habits like that I maybe do them once or twice, then never again. There is no reward for me without the progress and in the case of the coding example would only bring me frustration.
This method is great. I use it all the time. But one of these does not feel like the others... (cough "Build a program → Code a function" cough).
All the others could be done in the day, except for the vegetable one which is too abstract. And their solution could be done in 2 minutes. The coding one on the other hand... impossible to do in a day and also writing code is imo almost impossible to write in small chunks of time. Brainstorming a feature,thinking about a problem for 2 minutes, deleting/cleaning code, or even just opening your IDE and checking where you're at and planning the next step, sure. But actual coding, would not recommend. I require at least 30m+, preferably 60m+ to get anything reasonable done.
Just want to second this.
I live somewhere were having your phone out is dangerous so I'm forced to use it only when needed. The number one thing I use my phone for is checking bus routes (second is store times which can be very odd, especially with the pandemic). I know some routes off the top of my head but not the majority. Plus although I always plan where I'm going before hand so I know the streets (although many are missing signs), what time things are open, if the buses are actually working (apart from strikes, sometimes a bus line might be diverted due to construction/protests), often I end up going more places than I plan and end up needing to take a different bus than I had planned back.
I mean if I get my phone stolen or something I'll still be fine, but I don't get how having to hunt down road signs and depending on others to tell you the right info can possible feel liberating? I have navigated the city before it's bus app was built and internet was reliable, and it was not fun. Plus recently I've had problems with my contacts and because I can't stand my full prescription in glasses I can't see far away so it's been even more liberating to have my phone. I can quickly glance at google maps (even without internet and just gps on) and see where I am. Extremely useful in buses where I'm too far to see the road signs at all. I would hate having to ask the driver all the time to drop me off at the right street.
I hate when they cancel lesser known shows that maybe never had a wide audience to begin with (Dark Crystal, Dirk Gently, etc). Like why did they even bother to make the shows??? They didn't even really give them a chance. I only just found out they had made Dirk Gently, which has so far been great, but it really bums me out that it might end badly. I'm only watching it because I'm already a fan.
I think it's still way to early to call any cases failures, and I would rather my country had followed the swedish model or almost literally any other model than "strict" quarantine we have which is causing millions to go into poverty and who knows how many to die from lack of care for other stuff. We will only know the true cost of different models once all this is over and the data is in.
I wish someone had recommended fish to me as a beginner. When I discovered it I was finally able to write some aliases and scripts without copy/pasting, overdoing it by resorting to a real programming language, or wasting an entire day trying then giving up. Concerning bash instructions, it's not that hard to translate them imo, or you can just use bass or just pop into bash for a second.
The saddest thing is its easier to just install it from WSL and use something an X server and it runs faster.
Most kids could barely work the programs in my school let alone fix them. This almost sounds like OSS wants to use the schools to create future bug fixers.
Also there isn't a one size fits all criteria (e.g. use the best software, most popular, etc). My views on this are slightly different depending on the situation.
- Situation 1. The class is about teaching some piece of software (e.g. graphic design, 3d, video editing). In that case the class should put an emphasis on the common tools and techniques regardless of what program they use. And contrary to what one would think just teaching more programs does not help. I'm currently in a trade school and we have one software related class and although they are doing the correct thing by teaching us using a variety of programs, the kids still learn by memorizing steps instead of tools because this is how they've always gotten by.
- Situation 2. The software is secondary to the class (e.g. Teams/Zoom right now for virtual classes). In this case the easiest to use and the most appropriate for the job. In this case my school chose Teams and I think it's been a pretty good experience compared to the horror stories I hear about Zoom and custom implementations for exam taking at other schools.
I love goodreads, but I've wished for so long for two things way more basic than good recommendations which I don't really care about (except the finding people with similar ratings, I would kill for that):
- Proper search engine (all books with x+ ratings, rated y+ start, in genre z). From what I've heard one has to scrape the site to get any useful information. - Forbidding rated reviews before release dates. This seriously skews ratings for some genres and is insanely annoying.
Okay maybe three... managing shelves is super slow. I want to be able to drag and drop and have things instantly re-ordered without a reload.
I thought this was going to scroll up to each heading and stop scrolling if you touched the screen. Now that would have been useful. Otherwise I tend to hate scroll to top buttons. I'm always accidentally touching them and usually they won't stop till you're at the top. It's terrible.
I've always been able to do both, really I would call it all three (abstract, visual, sound). Maybe 4? (I can also imagine taste/smell) Maybe it's because I was bilingual from an early age, but I always knew I was a bit different as I tended to think more visually than others. I can talk to myself and it's more now that I'm older but it's still more visual. And there's also what I would categorize as a third type of thought (which I used confused with visual before but have since noticed it's different) that I use when translating. I don't translate from language A to B directly, but through C, this abstract representation of a sentence. It is sometimes visual but not always (since not all concepts are visual, in which case I just feel an "intent" like in the case of a action or feeling). It is also very rare for me to mix languages in one sentence. I never understood people who did it. To me it's like a literal switch I have to flip, and my thoughts flip to that language as well. I can switch back and forth but it feels computationally expensive. Also now learning a new language I find myself in modes C and the new language, say X when trying to switch to it, instead of my dominant language and X.
Anybody experience anything like that?
Why do you feel you need to remember them so much? and that there even is something to get out of every book? I feel if something you come across is truly indispensable to know, you'll remember it. Most things aren't so we don't.
In fact, I try to keep as much stuff OUT of my brain as possible. I think of my brain as an index, the smaller it is, the better. In relation to books, this means I highlight anything I find interesting, but otherwise rarely do much else Also just because you don't remember a book doesn't mean it didn't change you. After I read a book, if it was good, it will probably be on my mind for a while as I relate things I learned in it to things I knew.
Later if I want to look something up I'll remember what book it was in, just not the specifics. I don't just do this for books either, I do it for webpages all the time. Currently I am using an extension called Liner to save highlights. For things I'm actively researching for some reason or another, I extract all the highlights out when I'm finished and save them to a note, (I used to do this in Evernote, but I've since switched to Scrivener).
If a book has particularly important information but is dense, and I know I'll need the info later, but later it's very likely I'll forget it, for example, for school, I'll just make nice study-like notes, extracting the useful stuff. In fact, for school, those notes were my study notes, and I would just take exams then promptly forget everything. In case I actually needed the info, the notes existed.
Now that I think about it, this is all why I took to writing lots of comments in my code. Makes it a breeze to drop and pick up projects again. Cannot understand pro-"self-documenting code" people. I've also started documenting any large installs, complicated setups, etc, in gists lately. Very useful.
I'm actually looking to switch to digital from handwritten notes. Just need to find a (phone) app that lets me write and take photos for diagrams at the same time (anybody know any good ones?) instead of having to be switching between the notes and the camera. I've done handwritten notes for years but they have several problems for me: they get lost, i end up with notes scattered across whatever pieces of paper where closest to me, my fast handwriting is awful and i can't read it after some time, they end up getting "transcribed" anyways (which takes a long time).
Usually my workflow is: take notes, if I can avoid things I know are in the book, I will, then a week or so before exams I'll read everything (book+notes_ and make flashcards in Anki. I know I can do 25 pages (of a book) a day comfortably so I'll time it appropriately. Then I proceed to cram for a day or two until I can realiably do the whole deck with ease. This usually takes me less time (1/2 usually) than the reading/making hence why I want to switch to digital notes, to avoid a step. Most of the material that's tested for usually doesn't need to be memorized, which irritates me to know end, but what can I do. So I cram so I can promptly forget.
I find concepts are either understood or not understood, they do not need to be memorized. Things that are usually tested for (at least where I live / for what I'm studying) tend to be facts/procedures. At the end of the year I extract these from my notes / anki cards for future reference.
One other thing I do is the flashcards are written exactly how I will answer the question 90% of the time, sometimes in my own words, sometimes extracted right from the book. Before when I studied in English I didn't do this because I'm comfortable with the language, but because I'm studying in another language now, often the wording is the hardest part (also in part why reading takes me so long). This way I don't have to worry about that. Also this makes exams go lightning fast. I'm always first to leave.
Yes I wanted to do this initially but some things, like function overloads are kind of a mess. It depends really on what tags you need. You should look through the typescript issues related to jsdoc. Additionally, it's a bit of a mess trying to output declarations if you mix ts and js because enable checking js disallows emitting declarations, and declarations are only emitted for ts. You can get around this by setting your editor to check js, but leaving it off in the config. But then at that point I have no idea how you'd create documentation for that.
In general, contrary to what you'd expect, documentation options for ts seem poor. Typedocs is painful and ugly. I'll be trying DocFx next but it looks like it has a complicated workflow.
Also you should imo have some typescript experience to be able to write the jsdocs in a way that they work how you expect (e.g. typing a parameter as an object does not work how you would expect, it).
So next thing I thought was to just write js and accompany each file with a manual .d.ts definition. This works when you consume the exports of the file but it doesn't when you're within that file (see https://github.com/Microsoft/TypeScript/issues/30304) which makes it useless imo. Also even if it worked, now that I think about it, I'm again not sure how creating documentation for that would work.
In the end I've reluctantly settled for just switching completely to typescript and hopefully the documentation situation will improve when tsdoc gets farther along.