Log for
電訊台
唉 logic 啊 如果你話到佢咁勁嘅話 你不如喺我嗰份day 01 和 02 嗰度寫出嚟點解囉
無人叫你print hello world都要寫喎
好彩Peter你唔係寫航空/信號系統,唔係應該會死好多人
呢個git version 喇 結果我係唔會講的
但呢個嘅改版呢 當然係賺到啦
算啦我睇數學書 睇佢點定義複雜啦 我淨係知道邏輯叫我解釋呢樣野真係睇到火都嚟㗎啦
and is both need to correct or is one statments need to correct can pass not is two statments is not the ans, it will pass the case
d三文魚有蟲,吞拿魚有水銀,左下角果隻睇落都唔新鮮
unordered_map好似efficient D
Python就好on9, 如果not in map就直接加會throw error
if k in d:
d[k] += 1
else:
try:
d[1] += 1
except:
d[1] = 1都得 但我慣左
if k in d
Python dictionary 唔會Default 0
冇研究過collections入面d奇怪datastructure
collections.defaultdict(lambda : 0)
collections.defaultdict(int)
因為。。。`class int()` 都係callable
collections.defaultdict(int)
collections.defaultdict(int)
collections.defaultdict(str)
empty string, empty list etc
最近操Leetcode先用得多左 itertools
defaultdict都係睇leetcode solution先知
一陣Licson會唔會又出黎話:你地講D我明既野得唔得,唔准講Programming,淨係可以講Networking
有d medium/hard 用python幾行收工
97 years old is indeed a bit too old
class Solution {
public:
int balancedStringSplit(string s) {
int l_cnt = 0;
int r_cnt = 0;
int ret = 0;
for (auto &ch : s)
{
if (ch == 'L')
{
l_cnt++;
}
if (ch == 'R')
{
r_cnt++;
}
if (l_cnt == r_cnt)
{
l_cnt = 0;
r_cnt = 0;
ret ++;
}
return ret;
}
};
我個Senior PM都話:我寧願佢炒我,咁我有份肥雞食
例如晚晚都run bash script
curl XGU d Linux mirror 去/dev/null
會timeout然後drop connection 換IP?
哦 我知喇 就係:我唔用,都要霸住條線,大家都冇bandwidth
Netflix, Prime Video會中途問係咪continue watching
Download ISO and delete ?
while true do firefox youtube
只要我keep住download ~380kBps
while true
do
wget https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso -O /dev/null
done
如果家用router 唔support就要用佢隻野
同埋SingTel係我住既呢幾年,試過幾單全國上唔到網超過10hours 既incident
一個number代表一個vlan configuration
係咁話講邏輯要由頭解釋到尾個程式點到 痴線㗎你唔撚識睇code
就算話我係自己做你都廢㗎啦 但又解釋唔到條問題又提唔到建議 簡單啲來講就係亂噏
Peter 知道咩係binary search tree 未
Peter 知道咩係linear regression 未
有啲人係容易激到人哋扯火 你問佢野呢佢又答唔到你 淨係問之前碩士啲資料咋俾埋晒啲濕鳩答案
嗰個紀錄裏面呢佢解釋咗錫絲嗰啲點樣入去嘅條件你有冇佢講過嗰啲嘢嘅內容
唔撚知係咪佢 做咗呢個群組呢話呢入Master呢嗰啲條件呢 同點樣嗰啲咩對話呢係答得非常奇怪都睇唔明 搵人睇都話冇講清楚點樣什麼附加條件
咁你專心讀你嘅PHD啦 我最撚憎就係computer Science
我研究 algorithms 嘅,連我都睇唔明你啲algo 冇人睇得明
Full time cs phd 肯定未來做professor 啦
咁我當然話冇用 因為我都睇唔明啊 叫我去應用我想自殺算啦
同埋唔駛話我剩係識理論,我都multiple industry offers
我唔係唔識 係叫我解釋出嚟我一定會想斬你的 因為我好憎要去諗點樣去解釋
honors discrete mathematics
Peter 證明緊嘅嘢係佢未有能力讀software
Peter君,我真係想睇你點interview for software engineering positions
學software 我直頭想講粗口添 麻煩到死 淨係講理論都一大堆最憎
blackbox......你玩咩,點做audit
我今日學左consistent hashing同telemetry 😄
有時覺得自己好廢,自己係imposter 就會過嚟望下Peter
我都唔撚知 我淨係知道你之前講的spring 話好鬼容易 我後來翻查 真是容易到你阿媽都唔認得啦 如果要佢全部功能都讀晒嘅話接近要曬一年時間
如果peter D Code 有問題 一定俾人問到傻都答唔出
仲未計 spring 嗰d 邏輯 搞埋呢power分分鐘去到三年啦
因為我會寫唔同嘅Test case寫到OK先交上去
我忽然覺得,讀U一個sem一個language係好撚勁,但係唔知點解
QA係check logic,但係呢同documentation係兩回事
C family 嘅 languages 唔會話太foreign
學新language, be productive 可能只需要幾日時間
programming language 學sicp 話齋,其實最重要都係primitives, means of combination, and means of abstraction
想博下,send完email冇reply就冇報admission了
send email 係畀potential supervisor?
都係,我覺得快上手應該係因為有existing project
我個要求好低,siu4
我仲未搞清楚d binding
我唔記得啲detail (e.g. bind, call)了,睇返應該ok
dynamic scope vs lexical scope
我靜係知arrow function係lexical scope
js仲有transpiler between diff ES versions
只係學下人哋點design architecture
我原意都係咁
學埋唔同language semantics
full stack = 兩倍responsibility = 兩倍人工
都唔係既,寫曬backend frontend,唔洗同人夾,我就可以hea做