HNHacker News
TopNewBestAskShowJobs

hota_mazi

2,724 karma · joined May 30, 2016

submissionscomments
hota_mazi··on Double Commander
I've been a big fan of xPlorer 2 [1] for many years now.

[1] https://www.zabkat.com/

hota_mazi··on Clojure needs a Rails
From everything I've seen these past years, Scala is on the same path to extinction as Clojure is.

Java keeps getting more popular, pushed by the very solid innovations that Oracle has been trickling into it every release, and Kotlin has certainly picked up a lot of momentum these past five years.

hota_mazi··on Clojure needs a Rails
This is bigger than a single individual.

Maybe this technical choice makes that person happy, but what if it makes ten other developers on the team unhappy, or unable to do their work because they don't know this new technology?

What if that technical choice makes the whole code base unmaintainable in the following months because it gets abandoned, or is just so niche that it's impossible to hire developers familiar with it?

hota_mazi··on Swift Proposal: Move Function
Your remark is particularly timely since a Swift proposal to add a move() function just came out.

Basically, a timid but interesting step to get Swift to move toward ownership semantics, on top of its current Arc based memory management.

hota_mazi··on Swift Proposal: Move Function
Rust and Kotlin are much more advanced than Swift when it comes to writing full stack, deployable, multi platform, and performant applications...
hota_mazi··on Swift Proposal: Move Function
> 8 years later, it's safe to say it's not the language of choice for the new kernel or driver code, not the one for the hot new web framework and it's not replacing Python

Rust has become all that, and for a change, I am happy to observe that we're stuck with a pretty good language.

hota_mazi··on Learning Go as a Python Developer: The Good and the Bad
Yup. Java is 27 years and has a splendid package management system (Maven Central) which is so well designed that you can use it from two different tools that are extremely different (Maven and Gradle).
hota_mazi··on Go generics are not bad
Sure, but the compiler doesn't care, and that's the problem.
hota_mazi··on Six programming languages I’d like to see
`Reader` and `ReaderT` are not implicit at all, they still need to pass parameters explicitly.

What other ways do you have in mind?

I am not aware of any Haskell functionality or compiler flag that enables implicit parameter passing, like Java, Kotlin, and Rust allow.

hota_mazi··on Six programming languages I’d like to see
This article is just about mocks and doesn't really touch on dependency injection at all, and Haskell simply doesn't have the mechanisms to supply the kind of implicit passing that useful DI requires.
hota_mazi··on Six programming languages I’d like to see
> you won't get into an inconsistent state when everything is reactive

That's like saying "There will never be bugs".

There will be bugs.

And when you come across one and you can change a variable and have another variable affected in some other part of your program and you have no idea how these two variables are connected, you are going to have a nightmare of a time debugging.

hota_mazi··on Six programming languages I’d like to see
This looks like hell to me. It's side effects to the tenth power, which must make debugging an absolute nightmare.
hota_mazi··on Six programming languages I’d like to see
I'd like to see a language with baked in support for dependency injections, so that my functions can take two types of parameters: its "real" parameters, which it needs to perform its function, and "dependencies", that are passed implicitly by the runtime.

Basically, a formalization of Dagger/Guice into a language.

hota_mazi··on Go generics are not bad
Not really.

Rust, Haskell, Kotlin, yes. They force you to consider the error path.

Go makes it all too easy to just ignore errors and produce crashy code.

hota_mazi··on What is `Box<str>` and how is it different from `String` in Rust?
Rust just opens up the kimono and exposes bare metal details about strings.

A string with quotes goes into the executable.

A `String` exists at runtime and is an entire string.

An `&str` is a slice of a string: it points to an existing string for a certain number of characters.

Not all programs or programmers require this amount of knowledge, but if you want to understand programming at a deeper level, Rust is a great tool to dive into the deep end to understand complex topics about programming languages.

hota_mazi··on Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
> OOP can lead to overly complex code, uneeeded abstractions and design patterns thrown on top of each other for no good reason.

All programming paradigms can do that, you are not making any particularly salient point about OOP here.

OOP doesn't mean that everything needs to be an object, but inheritance and shared behaviors are concepts that map neatly between the real world and the programming world, which is why OOP has been such a resounding success.

We have refined this approach now (e.g. using delegation over inheritance), but these basic concepts of shared behavior and reuse remain.

hota_mazi··on Ante: A low-level functional language
It's a stupid joke.

The negative reactions that a lot of people have toward Lisp's parentheses are not because of the call function syntax but because parentheses are used everywhere else in Lisp's syntax.

hota_mazi··on Easy 6502
Well, if you really want to nitpick, there are quite a few instructions in the 6502 that are unnecessary.

For example, STX. You could emulate it with PHA, TXA, STA, PLA.

But overall, you are correct that the 6502 was extremely primitive in various ways, especially compare to the 8080 and followers.

hota_mazi··on Fly.io: The reclaimer of Heroku's magic
Great question. I want to know the answer to it.

I apologize for being skeptical but the wording in the contract seems to be extremely handwavy and they don't give me any confidence that if my bill goes from $4 to $200 that month because I made it to the front page of reddit, my bandwidth will magically be waived.

Right now, I feel 100% sure that my credit card would get charged.

hota_mazi··on Fly.io: The reclaimer of Heroku's magic
How about large traffic from a legitimate spike (e.g. front page of reddit or HN)?

You have enumerated a lot of alternatives so far (prepaying, waiving attack costs) but you still haven't addressed the number one scenario that everybody has been asking about, and which was the reason why Heroku was such a hit: do you offer a flat fee which, if exceeded, simply shuts down the app until the next billing cycle?

hota_mazi··on The Birth of Tcl
See my comment above about "upvar".
hota_mazi··on The Birth of Tcl
TCL has a feature which to me qualifies as a total "What the hell were they thinking?", not unlike the COME FROM command from Brainfuck, except, in a real language.

That statement is upvar [1]. Read its description and despair.

[1] https://www.tcl.tk/man/tcl/TclCmd/upvar.html

hota_mazi··on The best engineering interview question I've ever gotten
The question actually appears at the end of this unnecessarily lengthy and verbose article. Here it is:

> Add a mult command to memcached.

hota_mazi··on Zig self hosted compiler is now capable of building itself
Not sure where you got that impression from, the Android team has never pushed, let alone mentioned, Dart/Flutter, ever. All the Flutter advertising you hear is from the Flutter team.

Kotlin and Java are the main languages supported on Android.

hota_mazi··on Updated Okta Statement on Lapsus$
If someone has access to your email account, they more than likely will be able to password reset quite a few accounts (I'd start by searching your inbox for which banks/stock trades you use and take it from there).
hota_mazi··on A complete guide to TypeScript’s 'never' type
Note that they are two different verbs (to be and to have, respectively), so the context should have made it clear which one you should use.
hota_mazi··on Advanced Programming Languages (2009)
It's interesting to observe that in the couple of years that followed this article (published in 2009), three of today's most influential and arguably, best designed languages, were born: Kotlin, Swift, and Rust.
hota_mazi··on Advanced Programming Languages (2009)
You know how in shells, you can use the pipe operator, "|", to chain commands together?

Monads are the same thing, but for functions.

They adjust the output of one function so it can become the input of the next one.

hota_mazi··on Functional programming patterns in Smalltalk
> In Kotlin, does the “it” of a lambda hide a variable named “it” in the outer scope?

Yes, which is why it's recommended to name your closure parameter (instead of using `it`) when you nest these.

hota_mazi··on Functional programming patterns in Smalltalk
> Why do you have to find names for closure arguments? I don't know why do you have to find names for arguments in functions/methods either?

You are missing the point.

What Kotlin gets right here is that most of the time, these closures only have one parameter so it allows you to not declare that parameter and instead, use `it`. Smalltalk (and many other languages) missed that simple quality of life improvement, but once you get used to it, it really makes the code more readable. Obviously, you can always decide to pick your own name anyway, so Kotlin's approach subsumes Smalltalk's here.

> I think Smalltalk seems "quirky" compared to your Kotlin example only becuase we've all gotten used to a standardized C-inspired syntax.

My examples are not complaining that Smalltalk uses [] instead of {}, please reread what I wrote. Smalltalk is making a lot of bizarre syntactic choices that really only impede readability with unnecessary symbols (e.g. the . terminator).

← PreviousPage 6 of 34Next →