const
Regular expressions are on of the most powerful tools in a developer's toolkit. But let's be honest, regex kind of sucks to write. Not only is it hard to write,…
Introduction Web scraping typically refers to an automated process of collecting data from websites. On a high level, you're essentially making a bot that visit…
I almost shipped a bad AI integration once. The feature worked technically: the model answered questions correctly, the UI looked clean, and everyone nodded alo…
Maestro is a library we have developed to handle all playback across SoundCloud web applications. It successfully handles tens of millions of plays per day acro…
一个本地保存的小程序,用户花时间种的花、调好的实验参数,最后可能都装在一份 JSON 里。 如果这份文件在覆盖写入时出了问题,下次启动读到的可能只有半段内容。此时如果捕获异常、返回默认状态,再让自动保存继续运行,原来的数据就更难找回了。 给微境沙盘做原生微信端时,我把保存拆成了两个轮换槽位。每次写其中一个,读取时同时检…






