Giter Site home page Giter Site logo

poabob.github.io's People

Contributors

poabob avatar

Watchers

 avatar

poabob.github.io's Issues

URL Shortener - 自增id亂數產生ShortId | POABOB

https://poabob.github.io/2022-03-26/implementation-of-ShortId-with-id-in-order/

一、前言 由於上一篇實作URL Shortener雖然在效能上有不錯的效果,可是當我們使用自增id順序的方式導致ShortId容易被眼尖的資安人員(or駭客)發現是有跡可循的,一來觀感不太好,二來容易預測導致被惡意使用。那麼我們要如何在不改變現有的架構下,完美的解決這個問題呢?於是我想到,如果在資料表中,id已經被生成好,但是欄位值是空的狀態下,是不是就可以搜尋特定範圍的空值,以更新的方式來代替插

URL Shortener - 自增id亂序產生ShortId | POABOB

https://poabob.github.io/2022-03-26/implementation-of-ShortId-with-id-in-order/

一、前言 碩一下這學期相對課業沒那麼重,剛剛好友人陳同學告訴我有一個Dcard後端實習面試,完整詳讀之後發現其實題目不難且待遇豐厚,引起我對於實習面試的熱誠。 學習了後端也有一段時間了,時常因為沒有做筆記,需要翻找己以前的程式碼片段(還好都沒有刪掉),許多相關知識也因此停留在記憶的角落而堆積灰塵,若我不去主動複習,也許他就真的被我遺忘了吧? 因此讓我知道建立學習紀錄的重要性,所以我才倉促架設這個部

如何實作 Goroutine Pool? | POABOB

https://poabob.github.io/2023-09-15/Build-A-Goroutine-Pool/?#more

Goroutine Pool前言 近期對於 golang 的 goroutine 非常感興趣,因為只要在 func 面前下一個關鍵字 go dosomething(),就能過用同步的方式來達到異步的效果。 然而,goroutine 是額外開啟一個輕量化的執行緒去執行我們的任務,如果需要在一個大量開啟 goroutines 情境下使用的話,系統很容易因為無節制的使用 goroutines 而大規模進

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.