• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. Browser Session vs JWT tokens for authentication system for an app?

      I'm working on an app idea, it's going to be "API first" in design which means there is a clear separation between the backend and frontend. Former will be accessible through a REST API and the...

      I'm working on an app idea, it's going to be "API first" in design which means there is a clear separation between the backend and frontend. Former will be accessible through a REST API and the latter can be simple HTML without me having to delve too much on it. The idea is that the end users or clients will write their own front-end interacting with this REST API in future.

      Firstly, I want to know where to start. Writing a REST API seems quite easy and simple for me as a backend engineer but I've never implemented a "pure API" app in practice. Do you just validate the headers, do the crunching and return back a JSON response? What all must you take care of here?

      Finally, authentication and session handling is something very important here, isn't it? If I make use of session feature in the REST API (like PHP sessions or Django sessions, for eg), authentication will be pretty easier. I don't have to worry about encryption as SSL/TLS would be already doing that for me through the browser. But then what is the downside of this method? Why do so many people use JWT tokens then?

      Coming to JWT tokens, is that the only way of encrypting/validating REST APIs, or are there others? My biggest concern here is scaling and performance. I'm willing to implement the most efficient path here, the one that gives the most performance using least resources.

      3 votes
    2. I'm back!

      hi, i've returned to look at how the site's going after a couple of years! is it dead? there seems to be some activity here but also the site isn't being worked on, wonder how y'all are doing...

      hi, i've returned to look at how the site's going after a couple of years! is it dead? there seems to be some activity here but also the site isn't being worked on, wonder how y'all are doing here. seems to be some performance issues here as well, is it slow just for me?

      i originally left because there wasn't any activities in the topics i was interested in, but i'll browse around, see what everyone's talking about

      21 votes
    3. Fortnightly Programming Q&A Thread

      General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads. Don't forget to format your code using the triple...

      General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.

      Don't forget to format your code using the triple backticks or tildes:

      Here is my schema:
      
      ```sql
      CREATE TABLE article_to_warehouse (
        article_id   INTEGER
      , warehouse_id INTEGER
      )
      ;
      ```
      
      How do I add a `UNIQUE` constraint?
      
      2 votes
    4. What did you do this week (and weekend)?

      As part of a weekly series, these topics are a place for users to casually discuss the things they did — or didn't do — during their week. Did you accomplish any goals? Suffer a failure? Do...

      As part of a weekly series, these topics are a place for users to casually discuss the things they did — or didn't do — during their week. Did you accomplish any goals? Suffer a failure? Do nothing at all? Tell us about it!

      5 votes
    5. Unpopular opinion: Wikipedia's old look was much better than the new one

      I say that after throwing some caution to air because I understand that every new thing has some initial resistance or pushback due to the "past comfort zone" effect. But having said that, I feel...

      I say that after throwing some caution to air because I understand that every new thing has some initial resistance or pushback due to the "past comfort zone" effect.

      But having said that, I feel the aesthetics of the old site was much better than the new one. But then again, I'm from the old-school world who also prefers old reddit to the new one in browsing experience, so my opinion could be biased! But even considering the modern web design, don't you think the black icons on the top right have a somewhat odd look? And the "21 languages" feels a bit verbose, the I10N icon already conveys what that dropdown is about? And finally, that scrollable sidebar on the left looks a tad ugly?

      I just hope this is just a beta stage or something of Wikipedia's new version and a better one will evolve soon! But that's just one humble unpopular opinion, me thinks!

      15 votes
    6. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      6 votes
    7. What are the most personally influential/impactful/useful Tildes posts you can remember?

      Inspired by this post by @kfwyre. For me, there's many; I don't want to influence responses but I will shout out the monthly mental health threads. Those really got me to (over)share feelings and...

      Inspired by this post by @kfwyre.

      For me, there's many; I don't want to influence responses but I will shout out the monthly mental health threads. Those really got me to (over)share feelings and find some reason. I got through dark times thanks to you all, Tildoes.

      10 votes
    8. Oscar nominations are announced tomorrow, what would be a nomination that makes you happy?

      For me, as much as I didn’t care for the film, This is a Life from EEAAO getting into original song would make me incredibly happy. It’s such a good song and indie songs like it rarely get...

      For me, as much as I didn’t care for the film, This is a Life from EEAAO getting into original song would make me incredibly happy. It’s such a good song and indie songs like it rarely get nominated.

      Another one would be Glass Onion getting into Supporting Actress and Costumes.

      5 votes
    9. What is the present state of NPM Packaging System?

      As I recall, about 2-3 years ago I had experimented with what is called the npm install xyz through some tutorials, etc. The objective was to improve my tooling or toolchain at least with things...

      As I recall, about 2-3 years ago I had experimented with what is called the npm install xyz through some tutorials, etc. The objective was to improve my tooling or toolchain at least with things like css/js minification, etc. along with Bootstrap customization. The idea was to then move on to other newer learnings like react, etc.

      But I was soon disgruntled by the whole process! Neither bootstrap turned out to be an easy horse to tame, and NPM was like this astronomical universe of packages that keep on downloading into your folders! I soon lost taste of the whole thing and kept using my tried and tested stack of PHP scripts and using stock Bootstrap through CDNs.

      But today, I want to give it another shot. Has NPM improved than earlier days? What is the best way to go about building a toolchain using it? Are there any useful guides that make the whole process easier to digest?

      6 votes
    10. Weekly coronavirus-related chat, questions, and minor updates - week of January 23

      This thread is posted weekly, and is intended as a place for more-casual discussion of the coronavirus and questions/updates that may not warrant their own dedicated topics. Tell us about what the...

      This thread is posted weekly, and is intended as a place for more-casual discussion of the coronavirus and questions/updates that may not warrant their own dedicated topics. Tell us about what the situation is like where you live!

      3 votes