~/pito salas
home blog link blog pages + new post
admin

Posts tagged #stackoverflow

2 posts

  • 2021-04-06

    In Sinatra(Ruby), how should I create global variables which are assigned values only once in the application lifetime? - Stack Overflow

    Sinatra state management tips

  • 2021-04-06

    ruby - Is a global variable defined inside a Sinatra route shared between requests? - Stack Overflow

    Say I've got: get '/' do $random = Random.rand() response.body = $random end If I have thousands of requests per second coming to /, will the $random be shared and 'leak' outside the context or...

© Salas Blog. All rights reserved.