Readit News logoReadit News
gregpardo commented on Rayton Solar: Legitimate Investment or Scam?   medium.com/truth-review/r... · Posted by u/johncoogan
gregpardo · 8 years ago
Not surprising. Bill Nye is a business man not a scientist.
gregpardo commented on Node.js has forked into Ayo   sourcecontribute.com/2017... · Posted by u/wut42
sitepodmatt · 8 years ago
To me it's sad how meta Node.js community is, even worse is with five minutes browsing on the tablet I can't even find out exactly what this nasty person said or did. I suspect this is another hypersensitive SJW act. It started with the legend Crockford being banned from NodeConf for saying dog-balls. Grow up ffs!
gregpardo · 8 years ago
I remember arguing to keep the word 'suicide' in due to breaking API changes it would cost to fix it. They made the change and it ended up breaking a bunch of modules and also was way more of a headache to implement. All because a word that is not a great choice.
gregpardo commented on Node.js has forked into Ayo   sourcecontribute.com/2017... · Posted by u/wut42
gregpardo · 8 years ago
Witch hunt. People who aren't busy coding get involved in this junk.
gregpardo commented on Trump Strategic and Policy Forum, Which Included IBM and GM CEOs, Disbands   techcrunch.com/2017/08/16... · Posted by u/janober
corporateslave3 · 8 years ago
In what ways has Trump done anything similar to Hitler?
gregpardo · 8 years ago
Oh you didn't get the memo... He's LITERALLY the same. The media told me so.
gregpardo commented on Phoenix 1.3.0 Released   phoenixframework.org/blog... · Posted by u/chrismccord
gregpardo · 8 years ago
I actually love the domain driven work done in this release. I think it was a bold move from the team and breaks them even further away from Rails on EVM that people tend to think.

I have been bit so many times with trying to figure out where to put things like authentication/registration in a traditional MVC rails like app.

gregpardo commented on How Discord Scaled Elixir to 5M Concurrent Users   blog.discordapp.com/scali... · Posted by u/b1naryth1ef
manukall · 8 years ago
I've recently launched https://pryin.io, an application performance monitoring tool made for Elixir and Phoenix. It hooks into Phoenix and gives you insights into how long your request / channels take and what Ecto queries are run / how long those take. You can also manually augment pretty much anything else (background jobs, API calls, ...). Plus it keeps track of some important BEAM metrics like memory consumption.
gregpardo · 8 years ago
Looks cool. Might want to have a demo site running for people to poke around.
gregpardo commented on Powering Twitch and Medium, Algolia (YC W14) raises $53M   venturebeat.com/2017/06/0... · Posted by u/losecontrol
gregpardo · 8 years ago
This is great for something like a public website. What about a situation where I want some of my users to only be authorized to view some of my data based on a set of rules I set in my backend application. Can Agolia accomplish this?

EDIT: Looks like they do support this.. https://www.algolia.com/doc/api-client/ruby/api-keys/#genera...

However, I think for a small project it will probably be extra work to keep these keys synchronized vs just doing a postgres search for my project

gregpardo commented on Kotlin is the hero Android needs   10clouds.com/blog/kotlin-... · Posted by u/kasiakrn
yeasayer · 8 years ago
It's very sad that our industry is so hype driven.

Nothing really changed, you could write Android apps on Kotlin before, as well as on any other JVM language. But now "Kotlin is the hero".

I suspect that Google's adoption of Kotlin is just politics: JetBrains develops Android Studio for Google, so they pushed Kotlin as part of the deal. Google could acknowledge Scala years ago, but didn't, because Scala authors spend less time on bullshit politics and more time on actually improving the language.

Also, I don't understand the point of Kotlin. Clojure, Groovy and Scala are all very distinctive from each other and have their own niche. Kotlin is just a subset of Scala. Same thing, but less features. I guess it's NIH principle applied to JetBrains.

gregpardo · 8 years ago
Ever tried to code a robust Android app in Scala? It's a nightmare. Kotlin you just plugin and you can convert your source files very easily. I would agree syntax is not that much different but the compatibility is.
gregpardo commented on How Three Kids with No Experience Beat Square and Translated Final Fantasy V   kotaku.com/how-three-kids... · Posted by u/wallflower
gregpardo · 8 years ago
I learned how to program in the Rom Hacking scene and was involved with a team that released 4 patches for games.

The amount of dedication and hours our team put in was incredible. I think I managed around 30-40 hours with high-school.

Also, a lot of the reasons some games never made it stateside or came way late was often financial or political. The US versions of these companies often ran slightly independent from the Japanese game studios and the RPG adoption was not huge in the early console days here yet.

gregpardo commented on JSON Web Tokens should be avoided   paragonie.com/blog/2017/0... · Posted by u/CiPHPerCoder
StevePerkins · 8 years ago
The criticisms of JWT seem to fall into two categories:

(1) Criticizing vulnerabilities in particular JWT libraries, as in this article.

(2) Generally criticizing the practice of using any "stateless" client tokens. Because there's no great way to revoke them early while remaining stateless, etc.

The problem is that both of these groups only criticize, neither of them can ever seem to actually recommend any alternatives.

I could care less about JWT per se. I'm happy to implement a similar pattern with something else (e.g. store a secure cookie post-auth, skip all the refresh business and just let it expire when it expires, and employ an ugly revocation strategy only if absolutely necessary). I don't need JWT for this.

If I'm providing a REST API, then I'd prefer a token string that I could pass as a header value rather than forcing the use of cookies. Although I suppose you could argue that a cookie is just another header value.

Either way, if you're serving up a REST API to a JavaScript UI... what's NOT a good option is server-side session state (e.g. Java servlet sessions). That requires you to either: configure your load balancer for sticky-sessions, or employ a solution to share session state across all your server-side instances (which never works very reliably). Moreover, relying on a session isn't a very RESTful auth strategy in the first place.

So if I'm writing a SPA in 2017, then I'm definitely taking a client-side approach and running afoul of the #2 critics. And since JWT is so widely implemented (e.g. if I use a "Login with Google" option then I'm using JWT), I'm probably running afoul of the #1 critics too.

These criticism are fine, I guess. There's no faster route to blog clicks, book sales, speaker invites, and consulting dollars than: (1) telling everyone to jump on this year's hype train, or (2) telling everyone that last year's hype train sucks. What the world really needs is a bit more actual prescriptive recommendations of what to do instead.

gregpardo · 8 years ago
For number 2, you could expire them by encoding some identifier based off a hash or key tied to the user object. Change that object and have the server reject the token if that meta data no longer validates.

u/gregpardo

KarmaCake day53March 18, 2016View Original