News for hackers. Stuff that matters.
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by awestroke on Wednesday September 28, 2022 @01:54AM (#33004674)
From reading these comments, I get the impression that python developers don't really want to modernize their codebases. This fits with my experience of python developers resisting new language features like types and even python v 3.
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by carapace on Wednesday September 28, 2022 @10:44AM (#33008567)
I'm an ex-Python developer. (I didn't survive 2 to 3.)

What I see happening is Python getting "improved to death". As people keep adding "features", aka complexity, to Python it's moving away from its niche and coming into more direct competition with other languages and ecosystems (e.g. Rust, Go, Nim, Haskell, OCaml, even Ada and Java!)

From my POV this tool, though technically very neat, does unnecessary work to make things harder to understand.

Try to see it this way: all this Red Queen's Race, this running hard to stay in the same place, the endless "improving" of languages like Python and JS, are an attack on your knowledge and skills: just sitting there you are becoming obsolete not because your knowledge is degrading but because the youngsters keep changing the tune forcing you to learn new dances just to stay relevant.

There is very little new under the sun in IT: things like type checking and inference are decades old.

Re:Show HN: Refurb – A tool for refurbishing and modernizing... by grooot on Wednesday September 28, 2022 @12:26PM (#33009860)
As someone new to python, I don’t understand this attitude.

I have decades of experience, having shipped code in swift, obj-c, Java, Scala, closure, ocaml, C, C++.

A few weeks ago I was asked to write something substantial in python. I have used python in the past for scripts of < 10 lines, so the syntax is not alien.

I have been extremely impressed by the experience. Async code just works and is very efficient. The match statement is very nice. Interacting with the OS is intuitive and well supported. I’m hard pressed to think of a language that would be more concise for what I’m doing.

I’ve had the same experience with JS recently too. It’s a good language now, and it decidedly wasn’t prior to ES6.

If I wind back 10 years or 20 years, there is just no way the languages as they were as capable as they are now. I can do much more with much less code.

The languages may be more complex, but they enable my code to be less complicated, and me to get more done.

Re:Show HN: Refurb – A tool for refurbishing and modernizing... by carapace on Friday September 30, 2022 @02:55PM (#33039101)
It sounds like you have the experience to use Python well, and haven't (yet) had to work with problematic Python code. I don't mean this dismissively, I think a lot of things are "trajectory dependent" if you will. E.g. I'm just starting out with OCaml after years of mostly Python and I'm pretty stoked, but I haven't yet had time to find the rough spots and warts, eh?
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by grooot on Monday October 03, 2022 @11:06PM (#33076324)
It sounds as if you’ve had to maintain a bad codebase in Python. I don’t think any language will save you from that. OCaml (a contender for my favorite language) certainly won’t. My comment is about what the language does for me when I write my own code.
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by dagurp on Wednesday September 28, 2022 @05:31AM (#33006093)
As the Zen of Python[1] says: "There should be one-- and preferably only one --obvious way to do it." so this is on brand :)

1. https://peps.python.org/pep-0020/

Re:Show HN: Refurb – A tool for refurbishing and modernizing... by desindol on Wednesday September 28, 2022 @05:30AM (#33006089)
Most early unicorns were or are still python monoliths…
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by awestroke on Wednesday September 28, 2022 @07:23AM (#33006699)
Oh, really? Which ones?
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by IshKebab on Wednesday September 28, 2022 @02:56PM (#33011775)
Dropbox is the only one I know of but as far as I know they have started migrating to Go. I guess they'll never fully migrate because they have a lot of code.
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by LittlePeter on Wednesday September 28, 2022 @11:09AM (#33008896)
Not sure why you are down-voted...

Instagram and Dropbox, both used Python.