Readit News logoReadit News
alireza94 commented on Notetime: Minimalistic notes where everything is timestamped   notetimeapp.com... · Posted by u/gohberg
alireza94 · a year ago
Interesting.

I have almost the same workflow with https://getdrafts.com/ where I only take short notes and I have custom action which sets the creation date+time of the note as its first line. But, having a separate entry for each line is the next level of this approach.

alireza94 commented on Ask HN: Teams using AI – how do you prevent it from breaking your codebase?    · Posted by u/namanyayg
anotherpaulg · a year ago
I use aider to work on the aider code base, which is approaching 30k lines of python. Aider writes about 70% of the new code in each release [0]. So it's doing some fairly heavy lifting in a non-trivial code base.

Some pragmatic tips:

- Work with AI like a junior developer, except with unlimited energy and no problem being corrected repeatedly.

- Provide the AI with guidance about conventions you expect in your code base, overall architecture, etc [1]. You can often use AI tools to help write the first draft of such "conventions" documents.

- Break the work down into self-contained bite sized steps. Don't ask AI to boil the ocean in one iteration. Ask it to make a sequence of changes that each move the code towards the goal.

- Be willing to explore for a few steps with the AI. If it's going sideways, undo/revert. Hopefully your AI tool has good checkpoint/undo/git support [2].

- Lint and test the code after each AI change. Hopefully your AI tool can automatically do that, and fix problems [3].

- If the AI is stuck, just code yourself until you get past the tricky part. Then resume AI coding when the going is easier.

- Build intuition for what AI tools are good at, use them when they're helpful. Code yourself when not.

Some things AI coding is very helpful for:

- Rough first draft of a change or feature. AI can often speed through a bunch of boilerplate. Then you can polish the final touches.

- Writing tests.

- Fixing fairly simple bugs.

- Efficiently solving problems with packages/libraries you may not have known about.

[0] https://aider.chat/HISTORY.html

[1] https://aider.chat/docs/usage/conventions.html

[2] https://aider.chat/docs/git.html

[3] https://aider.chat/docs/usage/lint-test.html

alireza94 · a year ago
i know it might be too much to ask, but can you record one of your coding session and share it on youtube? like, one hour session using aider to implement some features for aider.
alireza94 commented on Arm Announces Neoverse V1, N2 Platforms and CPUs, CMN-700 Mesh   anandtech.com/show/16640/... · Posted by u/timthorn
wayneftw · 5 years ago
> Apple is quite popular among developers...

The great majority of developers use Windows or Linux according to every Stack Overflow survey from the past ten years. Only ~25% use a Mac.

alireza94 · 5 years ago
I believe interpreting statistics from those surveys in this way isn't fair. There are so many developers around the world but the pattern of value/money generation by them is not uniform; in other words, a small percentage of developers work for companies that pay the largest share of server bills and penetration rate of macOS devices among developers of top companies is probably higher than average. (I'm not implying that developers who work on non-macOS devices, make less value because your device doesn't have - nearly - anything to do with your impact. I'm just talking about a trend and possible misinterpretation of data)
alireza94 commented on Prisma – ORM for Node.js and TypeScript   prisma.io/blog/prisma-the... · Posted by u/janpio
loloquwowndueo · 5 years ago
Oh don’t get me wrong - ORMs have their place and do enable higher agility. They do seem magical the first time you encounter them.

What I object to is the blanket “shouldn’t care about sql” statement because that’s what empowers people to use the ORM indiscriminately without understanding what’s under it (an understanding for which SQL is relevant) and then it’s the non-value-adding developers’ job to come in and untangle the mess, usually could have been avoided by dropping down one level, looking at the SQL that was generated (or maybe analyzing the query plan - again kind of hard if you don’t understand SQL) and realizing the ORM is doing something crazy.

alireza94 · 5 years ago
Exactly. ORMs, especially powerful and mature ones like DjangoORM or Active Record, can help with productivity and maintainability and for more complex use cases you have the chance to switch to raw SQL; However, it’s important for developers to know what’s happening under the hood and to know what will happen if they use a certain feature of an ORM. I can’t even count the number of times that when one of my coworkers and I tried to fix a performance issue, and after digging deep into queries and mechanics of the ORM, we’ve realized how ORM heed so much complexity from them and, how a certain data structure design and coding in a certain way can result in an inefficient data flow.
alireza94 commented on Help users in Iran reconnect to Signal   signal.org/blog/help-iran... · Posted by u/arkadiyt
baxtr · 5 years ago
Thx Sherwin! Just out of curiosity: is iMessage working ok in Iran?
alireza94 · 5 years ago
Not the OP but, I can confirm that iMessage works perfectly in Iran; However, because of both economical situation (inflation and the higher price of iPhone comparing to average Android phones) and the fact that local companies cannot release their apps on the AppStore, only a small portion of people use iPhone or in this case iMessage.
alireza94 commented on Craft – A fresh take on documents   craft.do/... · Posted by u/blindm
pps · 5 years ago
Notion has had backlinks since Sep 2020.
alireza94 · 5 years ago
Craft also supports easy bi-directional linking to blocks, which I assume Notion doesn’t support at this point.
alireza94 commented on TimescaleDB 2.0 released, now distributed multi-node   blog.timescale.com/blog/t... · Posted by u/manigandham
robertlagrant · 5 years ago
I'll nominate myself as silly question asker.

Has this been used as the persistence for an event sourcing service? Does that sound like a good/terrible idea?

Does it play nicely with SQLAlchemy?

alireza94 · 5 years ago
Yes. We’ve used Timescale with SQLAlchemy and overall everything works.
alireza94 commented on YouTube-dl has received a DMCA takedown from RIAA   github.com/github/dmca/bl... · Posted by u/phantop
hiisukun · 5 years ago
I wonder what commit added those three listed examples (from three different music companies) to the README, and when. They're the worrying component as they show intent.

In a dark universe timeline somewhere, the pull request for adding them to the README came from an RIAA employee.

alireza94 · 5 years ago
I had the same thought so I checked the git history and it seems, if I’ve checked the right lines, they were added somewhere between 4-7 years ago.
alireza94 commented on GitHub shuts off access to Aurelia repository, citing trade sanctions   twitter.com/eisenbergeffe... · Posted by u/gortok
EisenbergEffect · 6 years ago
GitHub has corrected the issue, restoring our organization access and web site. They have reported that the org was flagged as part of an automated process. The flagging occurred because we have two external contributors from Iran (non GH org members). They told me that there should have been a warning and they are investigating why that didn't happen. The CEO of GitHub also reached out personally to try to speedily rectify the situation.
alireza94 · 6 years ago
Well, this sounds bad.

A few months ago GitHub banned access of Iranian developers (and devs who live in a few other countries) to private repositories and gists and now, with actions like this, even if it's by accident, they are threatening our chance of collaboration to public open-source repos because maintainers would be afraid that if they accept our contribution they may face consequences.

u/alireza94

KarmaCake day15May 20, 2018View Original