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

interesting ... i am acquainted with ramayana on account of growing up in india but wasnt aware of this sunlight recommendation in it


im curios why you think so ?


what a coincidence!

i am reading your book now and thoroughly enjoying it!

Learning Go's quite good to get dangerous with Go quickly, so good job!


>I'd like to know how others think about the hypothesis of the pandemic causing the next evolution? With the proliferation of habit trackers and productivity tools. What's begun is focusing less on the spiritual and more on actions.

I have also had thoughts about this. I do think that having time to themselves made some humans (and perhaps humanity as a whole) more reflective.

But also I dont think it's sustainable. Already, most offices have been pushing workers to return. We are sliding back into the old ways.

And people no longer have as much time to reflect, to be thoughtful.

>For my own journal I have chosen to capture more objective facts e.g. the actions in my day-to-day life. And place less effort on recording more subjective reactions like my mood.

I have some reservations about this.

Our moods and feelings tell us a lot about ourselves, things that we are not conscious of.

And writing about these subtle moods and feelings helps me be more conginizant of those things.


It’s a subtle aspect of moods and emotions that we are not privileged to know their impetuses. Yet, to learn them can be as simple as asking the subconscious of this, and this is a crucial function of free writing.


>And I think what that experience generally says is that it's a bit overkill. We can do better. Like Rust.

Or OCaml perhaps ? They have taken a very pragmatic approach to fp and allow mutations because thats the pragmatic choice sometimes.


The funniest thing is that to compile Rust, enabling various compiler features (like borrow checker etc), the code has to be transmuted into non-mutable one Single Static Assignment form :V


And in the functional world, Lean 4 achieves language level support for local mutation, early return, etc. in the same way, by converting it into non-mutating code:

https://dl.acm.org/doi/10.1145/3547640


In some ways, CPS as compilation target already went that way.

Sure, ultimately the code mutates values in place, but the specific actions are modeled as pure operations


you might be interested in the concept of digital gardens: https://maggieappleton.com/garden


oh this is great. there's still room for improvement but it satisfies my basic requirements very well.

thanks, this is quite useful for my macos.


any plans to add pdf support?


Gotta hand it to The Browser Company for doing so much for Swift lang.

Though I haven't used Swift in production I have enjoyed its ergonomics in my tinkerings with it. So I'd be so glad if Swift is able to break out of its niche into broader usage.


They supposedly also got SwiftUI working on windows. I’d be curious to hear more about that, cause I believe the article doesn’t touch on this one.


It’s not SwiftUI (which would require Apple’s AppKit or UIKit), but rather interop with the Windows native WinRT https://speakinginswift.substack.com/p/swift-meet-winrt


WinRT was abandoned by Microsoft. They said the new hotness is now WinUI 3.

Well that was until late 2023. Then they realized nobody was writing pure Windows UI code in WinUI 3. (Probably because people were still playing catch up). So they have now have unofficially mothballed WinUI 3 and the new hotness is now MAUI - cross-platform UI! - in 2024. (But no Linux support ho-ho)

Not sure what it will be next year.




I hope Microsoft would settle for one UI library instead of pushing a new one every five years. WinUI 3 is their most recent invention. Application developers can't keep up with the changing standards.


With all the mismanagement around WinRT, only the Windows team themselves and companies with sunken cost into UWP looking into a migration path, still care about WinUI 3.

Look no further than the Github repos for the general sentiment.


Sorry bud, but its 2024 and MAUI is the new hotness. WinUI 3 is already (unofficial) abandonware.


I thought folks like saleem already had been building up a UIKit-like layer for exactly this.


A properly motivated Apple would have been pushing cross platform Swift/SwiftUI and launched an App Store on both Android and Windows.

Imagine how many developers would just release to the App Store and re-release that on Android/etc to not need two codebase, and Apple would expand their 30% cut massively.

A lot of Android users would get apps from Apple’s store due to vetting/generally higher investment in App Store apps from major companies.


But Apple does not want Android users to have the same apps people have on their iPhone. They want as much distinction as possible.

Apple is the iPhone company, everything else is just accessories.


Nope - that would be a massive undertaking. Someone tried reimplementing SwiftUI but it was abandoned quickly after realising how much work it would entail: https://github.com/Cosmo/OpenSwiftUI


Are there other glaring mistakes in this book frequently ?

Do you have suggestions for alternative books dealing with similar topic?

Context: Noob in JS security, but know a decent amount of JS + building apps.


A few others that jump out to me:

* 04-AntiForgeryToken would not provide any actual protection against CSRF (there are a few ways to do it, but all at minimum require 1) the token to be generated by the server and 2) a way for the server to compare against a known good value, either from its session DB or by "double-submitting" the token [0]).

* 18-SecureWebStorage encrypts the value without including an authentication tag, meaning it can likely be fully decrypted or modified by the user (lookup a Vaudenay attack or try out https://cryptopals.com/ if you're curious there)

Those are the ones I have specific experience with and looked at first, so maybe the more frontend-oriented examples are better?

[0] https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Re...


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

Search: