Hacker Newsnew | past | comments | ask | show | jobs | submit | joe_fishfish's commentslogin

Nocode is obviously a banter repo and people starred it because made them laugh.

The demand from middle managers trying to replace their dev teams with Claude Code, mainly.

But why should they? An Oracle data centre is built for one purpose, and one purpose only - to increase the wealth and power of Larry Ellison. Is furthering that goal really something to be proud of?

As a wiser man than me once said, do not anthropomorphise the lawnmower.


In Kotlin this would already be a compile error, no need for another annotation.


Yeah, sure, and thankfully everyone has already switched all their teams to superior languages

Anyway, I believe what you're referring to is the "?" syntax that annotates types in Kotlin but doesn't help the resulting bytecode, which means that every single library ever would need to convert to kotlin to benefit

  fun doit() : java.io.InputStream? { return null }
  kotlinc test.kt
  javap -c test.class
  public final java.io.InputStream doit();
    Code:
       0: aconst_null
       1: areturn
So even they didn't have the courtesy of marking the result of a known Optional result as Optional<java.io.InputStream> when interfacing with the existing Java ecosystem


Ha, I switch between the two as well, but I feel the opposite. Kotlin is much more intuitive for me, and Swift is more clunky. I do miss guard lets in Kotlin, but that’s about it.


I don’t have a problem with the fines for the spam texters, if anything it should be higher, but not punishing the electoral commission for that is utterly insane.


What purpose would punishing the Electoral Commission with a fine serve? It's a public body funded by taxpayer money.

They should simply be looking to prevent a re-occurrence and a fine on this type of organisation wouldn't help.

Perhaps they should have powers to prosecute executives.


You can’t do stacked PRs without merge commits, not unless you really like conflicts anyway.


I have never seen stacked PRs work that well in practice. Two reasons:

- Namely there would be review comments on the first PRs that then cause a cascade of merge conflicts in the follow-on PRs

- Somehow reviewers never seem to like the stack of PRs, my experience is they always react with disdain and/or confusion.

There is the counter-question too, why not stack commits cleanly?

A third reason against, not a good reason, but for many developers Git is super difficult (IMO largely a skill issue, not taking the time to learn basic tools that they need everyday; otherwise I have no clue why software developers do not learn their IDEs and VCS tools very well). Stacking PRs requires some Git skills, a simple feature-branch workflow can be a challenge for many..

Ultimately, I think the solution to stacked PRs is to change review policy to "ship/show/ask": https://martinfowler.com/articles/ship-show-ask.html

In other words, if someone is skilled enough to do a set of stacked PRs, the team likely benefits by letting that person merge the stack on their own when each bit is ready and do a post-merge review instead of pre-merge.

(Side-note, my unsolicited perspective: I'm personally convinced that the benefits of linear history is a magnitude more important than all the other peeves & nits combined between merge vs rebase.)


> - Somehow reviewers never seem to like the stack of PRs, my experience is they always react with disdain and/or confusion.

Are people sending multiple branches of the stack for review at once? It should only ever be the "bottom" branch out-for-review at any time.

> - Namely there would be review comments on the first PRs that then cause a cascade of merge conflicts in the follow-on PRs

This can still happen in the model above of course as you need to make changes to the bottom branch in response to review comments/requests.

However, as I noted elsewhere, `--update-refs` is an absolute god-send in those situations: https://andrewlock.net/working-with-stacked-branches-in-git-...

It reduces a ton of manual work (scaled by how many branches you have stacked!) to one operation.


Multiple at once. Good pointer on `--update-refs`!

I can think of quite a few additional concerns. Overall I think it comes down to how the team wants to handle code reviews.

Personally, I do think if the team is at the level to coordinate and execute on a stack list of PRs, there is little need to incur extra round-trip times for "reviewing" precursor changes and instead focus review time where it is explicitly wanted.

Though, I do indeed like stacked PRs over commit-list because there is more incremental progress, but it does come with some costs. For example, perhaps the last reviewer does not like the overall direction that the cumulative work has led to.

My experience is that at that rate, it's best to let teams decide how they want to operate, formalize somewhat how things are shipped, and bias towards shipping. On the other end of the spectrum, a person quickly glancing at refactoring updates, not having good context on how a given PR fits in - it can almost put into question whether CR itself is entirely a best practice. Hence, I'm a fan of "ship/show/ask". I think it mostly does away with the need for stacking PRs with very little downside (and upside of greater efficiency, CR is spent time reviewing more important code, things that benefit from CR and use the reviewers time well, and makes for a better flow for the author since they can readily merge).


Sure you can! In fact you can do magic on stacked branches with `rebase --update-refs` that you can't do with merge: https://andrewlock.net/working-with-stacked-branches-in-git-...


There's tooling that helps with some of that. I have evaluated StGit for a month or so now, and while it does require that one unlearns some git in the process, it has been handling that sort of situation well.


> a bank browser for browsing and a restaurants browser for deciding where to eat

you mean like native mobile apps?


Yeah, except we just need one for banking in general, not one for each bank.

Not sure how to get the banks to contribute to such a non-zero-sum endeavor, but man they could save some money if they did.


Couldn’t agree less. I’ve been a developer for nearly 20 years, working with Python, PHP, JavaScript, ObjC, Swift, Java, bash scripting, SQL, Terraform, and a bunch of others. Written code for data transformations, web servers, client side JS apps, native mobile apps, and games.

Android has been my favourite platform to work with and has offered the best developer experience I’ve found. It’s not particularly close. The SDK has improved significantly over the years, the IDE is wonderful, the feedback loops are short, Kotlin hits the sweet spot between functional and OO code, and Compose is a joy. Although yes, Gradle is a sore spot.

IMO the reason why Google have gone all-in on Android Studio is because it’s really, really good. Compare it to Xcode. If you’ve never used a JetBrains IDE, it can feel a little unfamiliar, but I’ve never felt as productive in any other programming environment.


can it do vim shortcuts? its soo hard without vim


Intellij, which Android IDE is base on, as well as other Jetbrains' editors I'm assuming, all support a Vim plugin. https://www.jetbrains.com/help/idea/using-product-as-the-vim...

It was decent enough when I used an Jetbrains editors a few years back, at least for 80-90% of normal/insert mode vanilla vim editing behavior.


This is a more insightful comment than the comment at the top, and also more useful than the blog post.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: