IT討論區(172) - 3年exp+留港升職潮

1001 回覆
17 Like 0 Dislike
2022-09-03 15:59:21
new map
iterate thru array
get corresponding student from map
if exist calculate new avg and update
else set new element
2022-09-03 16:12:52
我是嗰個唔係student
開咗個obj入面每條key係年份
個value又係另一個obj key係月份
個value又係另一個obj key係一條str寫埋dd-mm-yyyy
個value係嗰日所有entry嘅sum
2022-09-03 16:29:43
起一個hashmap用student做key loop起成條list


lm leetcode高手
2022-09-03 16:30:07
最直接睇就reduce做個array,每個item係學生+各科嘅sum同count
[
  {
    student: 'B',
    sum: { chinese: 90, english: 30 },
    count: { chinese: 2, english: 1 }
  },
  ...
]

然後再用map除返個average?
2022-09-03 16:52:18
雖然有4 while但其實都係睇咗個array一次
2022-09-03 17:10:54
應該話除咗同一日嘅entry要sum
仲要同另一日嘅sum separate換月要separate
換另一年都要
如果當初store data嗰陣做埋呢部分就唔洗
但係到底應唔應該處理到咁先store
2022-09-03 17:31:23
做dev 但想學多d networking野,成日聽到人講d network野都聽唔明
2022-09-03 17:35:28
例如呢
2022-09-03 17:37:49
唔知點解network野特別難理解,例如subnet呢個概念我好似仲未理解到,之後想睇multicast個原理 發現裡面既concept都幾難
2022-09-03 18:05:32
其實application 唔使太深究。只係多2進制野,唔落手純睇易迷失者。
2022-09-03 18:19:29
Subnet就係一個range of ip
基於方便大家既原因 subnet既size要2既power 同埋有alignment

令你唔明既應該係routing而唔係subnet

Multicast是幾難 你識左基本switching同routing之後 就睇下igmp同pim
2022-09-03 18:34:15
Yes yes yes and then suddenly you need to use SO_REUSEADDR
or compliance policy changes and you need to tap all traffic and store for a year

Good to know more on the other sides of IT
2022-09-03 18:58:13
其實手巴你做政府定軍工IT,乜鳩狗屎垃圾requirnments 都硬食過
2022-09-03 18:59:58
政府邊會咁比力
軍工點樣上黎鳩噏咁多野
2022-09-03 19:43:16
政府vendors咪食呢d.

支那軍工係咁上下水平.

tag traffic 做乜要係layer 3做, Firewall同layer2 switch 就做到wor. 不過唔知details 唔鳩up. compliance policy做到呢個level , 都唔係一般人.
2022-09-03 19:52:10
咁你都要寫app去decode架麻 user理撚得你識唔識成條pipe line 總之你自己死掂個monitor session佢
2022-09-03 19:58:11
I'm devastated to report that Peter Eckersley (@pde), one of the original founders of Let's Encrypt, died earlier this evening at CPMC Davies Hospital in San Francisco.

Peter was the leader of EFF's contributions to Let's Encrypt and ACME over the course of several years during which these technologies turned from a wild idea into an important part of Internet infrastructure. He also took a lot of initiative in coalescing the EFF, Mozilla, and University of Michigan teams into a single team and a single project. He later served on the initial board of directors of the Internet Security Research Group.

RIP
2022-09-03 20:03:47
有無java spring mvc高手。
我新手追人project見service, repository係set做interface之後整多個ServiceImp class implements 返個interface再加多粒annotation defines做beans(?)
其他class call 個interface就用到ServiceImpl 啲method。
我想網睇有人答spring auto scanning自動pair up咗。想知有無人知道嗰official answer
2022-09-03 20:13:09
哩啲baeldung有晒答案

你唔明個位睇埋@Qualifier就應該明
2022-09-03 20:25:29
睇咗你嘅網講interface driven controller。好似無解到點解call interface就可以用到impl。Qualifier係指有multiple impl個interface take 邊個impl
2022-09-03 20:27:29
手巴係professional engineer

我只係一個寫垃圾畀人笑嘅code entertainer
2022-09-03 20:41:00
個 keyword 係 Dependency Injection 囉 = =
2022-09-03 20:42:55
又捧殺。
2022-09-03 20:46:33
好似有料到,研究下先
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞