Something like this: http://jasonette.com
607 karma · joined December 19, 2018
Something like this: http://jasonette.com
:)
Just a smiley, no other words!
Does a developer, who does not have the same requirements similar to the company that has released its internal tools, need to use those tools and frameworks? No, certainly not. Use something that you are comfortable with and not that is flavour of the month because some big tech company promotes it.
:)
It is not about the keyboard. If the mind is busy pacing ahead then it slows down the task at hand.
How did you find your first few clients?
Thank you!
I will give you an example of what is the mindset of people(mostly HR) here. There were major changes going to happen at this company I was working for(we didn't know at that time, but came to know much later). The usual trick HR plays in these types of cases is to increase some perks to keep all employees "happy" so that they don't leave the company. So the HR of this company announced a perk via email, that the company will be providing "fruit bowl" to employees every day in the morning. Everyone was excited as there was no other means of eating at the office except for a small vending machine that delivered limited supply of sandwiches and a small coffee machine(did I mention that this company was a world-leader?). The day was announced for the "fruit bowl" perk. So on the day of the perk, when people came to the office they saw that a small bowl of fruits was kept in the "kitchen". There were 2-3 bananas, 2 pears, 1-2 kiwifruit, one apple and a bunch of grapes. One senior engineer who was with the company almost since its inception sent an angry email to the HR and CC'd it to the rest of employees at the office asking them how on earth this fruit bowl was going to be shared between 50+ employees at the office. The HR's reply was(again CC'd to everyone in the office) "But there are grapes"!
And I am not kidding you, I saw this type of "perks" being advertised in the country where I am. The perks are something like this:
"We provide our employees with lunch on Fridays" or "We provide our Employees lunch on first Thursday on the month" etc. What are engineers, beggars? But that is common in companies that are founded in the country where I stay. When I moved to an US founded company in my country, not only did my salary increase substantially(by local salary standards) but the perks were something like this:
Breakfast, Lunch, Pizza if had to stay late, unlimited supply of coffee, onsite postal service, onsite laundry, haircut, manicure, shoe-polish, ironing service, on-site shop for snacks, payment for car fuel(extra pay if the car was environment friendly), 24-7 access to free gym at the Marriot, discounted shopping coupons and the list goes on. And this was not FAANG!
The reaon this is happening is because(I learnt this indirectly), the local companies collaborate, in partnership with recruitment agencies, behind the scene to not only keep salaries low but to share the information with HR that someone is looking for a job or has interviewed at some other company.
In the US, if I am not mistaken, there was a very famous litigation that forced US companies to stop collaborating in artificially keeping salaries down and deliberately not hire from certain companies. This is not there in Europe I suppose.
And this has trickled down since.
Because the token is generated per request, there is no requirement to revoke the token. Each request is a session in itself. The private payload of the token contains the username if the user was authenticated, else that information is not present in the token. That gives an indication to the server that the request is from already authenticated user.
> There’s no way to logout or invalidate sessions?
A logout request from user will contain the token that was sent in the response to previous request from that user. Because the token is generated per request, the way the server can "invalidate" a session is by simplying logging out the user by removing the username from the next token. If a token is compromised then that will create a problem for that single request because the next token will be different and will be using a new key for encryption.
> I’m not sure what you mean by stateless server.
Stateless means the server does not have to maintain session information.
I create a new token for each request. Store expiry time and ephemeral id in the token and the cookie, set a separate ephemeral session cookie. Then on the server side check the expiry time and then cross-check the id stored in the token to the one in the session cookie. And then in response to the request generate a new token with a new id and expiry time.
> check the DB to see if the session is still valid
I am trying to build a stateless server. But I am trying to understand the advantages and disadvantages of stateless and stateful way of managing web sessions.
I am doing an MPA. I am setting a session cookie, the secure only flag and the origin flag. But I am using JWT to store the ephemeral session id which is then compared on the server-side to the session cookie as a cross-check. A new JWT with new id is created for each request. That way the server remains stateless and the client gets new token back for each request; this token is then used in the next request. The only question I have is what are the disadvantages of doing this i.e. making each request independent of the other requests and then cross-checking the validity of incoming request by comparing id stored in the JWT with the one stored separately in another cookie.
> Httpd is pretty hardened and they are plenty of auth solutions for it, if you are using it.
I am not using httpd.
Do you mean login using google, facebook etc?
I don't want to use third-party login services. Are there any pre-built self-hosted systems for this?
Yes.
> JWT/cookie page rendered stuff is fine
Please could you elaborate on this?
> And use HTTPS for all traffic.
Yes, that is done.
> unless this is a comp-sci quiz question testing your understanding of sessions/security, haha
No it is not :)
* https://www.webtoolkit.eu With Wt there is no requirement for Bootstrap and/or jQuery though.
[0] The founder explaining the car: https://www.youtube.com/watch?v=3sDwGazHefM
Dr. Trevor Mundel[0], who leads the Gates Foundation’s global health work, and Dr. Niranjan Bose[1], Bill Gates' chief scientific adviser.
[0] https://www.gatesfoundation.org/Who-We-Are/General-Informati...
A recent AMA related to covid-19. There are references to his team and adviser: https://www.reddit.com/r/Coronavirus/comments/fksnbf/im_bill...
His Reddit handle is: https://www.reddit.com/user/thisisbillgates His Twitter handle is: https://twitter.com/BillGates His blog is: http://www.gatesletter.com
If you search, you will also easily find his email address online. He has multiple email addresses as per online searches.
HTH
I think this needs to be resolved across industry. The so-called "leadership" should learn that not all fingers are equal but every finger has use and value. Similary not every employee can be a leader and extrovert. It is the leadership's responsibility to identify and make use of "silent souls" on a team to greater effect. In my career I have seen people who are introverts to be very capable when given a right environment; in fact they exceed others on the team. Forcing people to be what they are not is not a good leadership practice.