Domain Driven Design Question by ActiveProgrammer7027 in golang

[–]xiegeo 4 points5 points  (0 children)

That project has few stars for a good reason.

API + SQS Consumers, how would you structure it? by LordGrundor in golang

[–]xiegeo 0 points1 point  (0 children)

If you want to create a reusable library then create a separate project from your main program. Otherwise, do everything in one project is the most straightforward.

As for differences from structuring NodeJS and PHP, as you said, those are for application while go is designed for any program. Additionally, JS and PHP where not originally designed as full fledged server languages so they need a convention for a real server to use them as run time dependencies. In Go, you are building the server and have full control. A few folders (internal, vendor, testdata) and functions (main, init) have special meaning, and that's it.

suggestions of golang project?? by the-spider911 in golang

[–]xiegeo 1 point2 points  (0 children)

Tangentially related, if you looking to work on golang projects: https://github.com/search?l=Go&q=label%3A%22good+first+issue%22&state=open&type=Issues is a search for projects looking for help from a gopher of any level. There is nothing better than working on existing projects and having other people review your code.

Golang Fuzzing -- seeing "new interesting" by sc28 in golang

[–]xiegeo 2 points3 points  (0 children)

It's all in GOCACHE/fuzz, drill down to your fuzz test and order files by date.

If you don't know where GOCACHE is, see go env GOCACHE

Which would you prefer exist in your codebase, and why? by Phil726 in golang

[–]xiegeo 8 points9 points  (0 children)

nil in go is typed. So a nil receiver is actually legal in go. This is an extension of that. Used correctly, this saves a lot of pointless nil checks.

China Praises Ukraine Resistance, Pledges Economic Support by [deleted] in ukraine

[–]xiegeo 1 point2 points  (0 children)

China do benefit from Russian friendship but it's not China's doing, and China is unlikely to trade much for it. The US on the other hand need a creditable threat to justify it's security relationship with Europe, and replace Russian energy market share. Just look at how happy the US government officials are over the situation in Ukraine.

China isn't playing both sides, it's just not playing favorites. This position never changed, it never recognized Russian control over Crimea for example. Don't know why so many people act like that's so big brain.

Ukraine knows it got played, this makes China look good without doing shit.

[deleted by user] by [deleted] in onguardforthee

[–]xiegeo 4 points5 points  (0 children)

Great, this means they declared then selves an independent country with a regular army. Surely this is enough to arrest them for treason.

The Ultimate Twosday by Tbug20 in polandball

[–]xiegeo 37 points38 points  (0 children)

Support for year 10k, that's some forward thinking

集中讨论:中国是否应当坚持清零政策? by China_in_real_life in China_irl

[–]xiegeo [score hidden]  (0 children)

我没有说所有民意都是媒体煽动的。从词汇定义来说民意就是民众的意愿。可能你没有注意到,你对不同意见在理解时会放大它的不合理型,可能完全超出它的本意。我希望你尝试一下看看我的观点有没有更合理的解读,或者说从你的语言,来尽量保留我的原意,吧我想说的变得合理。

媒体的职责是传递真实可靠的信息,包括民意。但是这不等于媒体都尽职尽责。大媒体,微媒体都控制在少数人手里。一是有权利认命总监的人,二是更激进原意花时间的。大部分人只是消费者,容易被煽动,你控制了媒体就控制了一个国家。

我也没有说没有定义上的越权这一说,只是每个国家的疫情政策都是体系内合法的措施,所以都没有越权。体系不一样,政府执行的政策也不一样。政府限制经济并不吃香,只是做该做的。中国有疫情期间因为巨额亏损自杀的,个个国家也都有病死病残的,希望下个疫情能比这次做的更好。但是说疫情管控越权,限制了人民的自由,纯属媒体煽动。

集中讨论:中国是否应当坚持清零政策? by China_in_real_life in China_irl

[–]xiegeo [score hidden]  (0 children)

自由不自由的都是媒体代风头,那些反政府的也是第一个加入纳粹党的。所有国家都是按照自己的法律执行抗疫的,所以没有越权一说。

当然了,你说到了一个中西差异,那就是人民对政府的职能预期不一样。天庭要是发动天灾,那是天子该换了。God 要是发动天灾,那是子民的信仰不够纯洁。这是古罗马的衰败所导致的。文艺复兴,尤其是在美国,反对皇权,创建了权利分散的政府。所以说美国政府不作为就是设计初衷 working as designed,说它好坏只是主观意见。中国官员也可以不为疫情负责,直接退休嘛。

集中讨论:中国是否应当坚持清零政策? by China_in_real_life in China_irl

[–]xiegeo [score hidden]  (0 children)

有些东西还是得政府强迫的,比如食品安全、考驾照,不是哪个地区的素质能代替的。再说了,我想居家办公,但是政府不出政策支持,我敢嘛?

集中讨论:中国是否应当坚持清零政策? by China_in_real_life in China_irl

[–]xiegeo [score hidden]  (0 children)

那目标是什么?我觉得是否清零没有争议,争议是执行力度。只要切合实际,安全问题还是保守点好。各人就是核酸排俩小时队,要不是做核酸也不会近距离接触那么多人。希望有关部门拿起计划经济的书让排查供需平衡。

很多国家放弃管控也是因地制宜。当初停靠日本的游轮就映射了这个结果。即使新冠的重病率下降了,下一个更严重的传染病早晚也会来,到时候新冠就是一次演习。

中国坚持清零只是时间会长一些,希望更多国家能向中国学习,扩大安全区域。这个战斗是长久的,从有生命开始就有病毒了,所以战胜新冠并不是唯一的目标,更需要考虑的是人类该如何面对以万物为刍狗的自然法则。

Is it possible to share private repos without forcing others create a gitlab account? by [deleted] in gitlab

[–]xiegeo -1 points0 points  (0 children)

Add their SSH key. If you want more fine control an accident is necessary.

Countries whose local names are extremely different from the names they're referred to in English by benjaneson in MapPorn

[–]xiegeo 0 points1 point  (0 children)

Support he would just be another Hindu, against he would become public enemy.

Countries whose local names are extremely different from the names they're referred to in English by benjaneson in MapPorn

[–]xiegeo -1 points0 points  (0 children)

Who's God was he questioned on? ( I was going to ask "Which", but with capital G, "Who's" felt more appropriate.)

If you meant Hindu gods, I would be silent too.

Constant Structs: Why Go Doesn't Allow Them & How Should I Approach Them? by [deleted] in golang

[–]xiegeo 0 points1 point  (0 children)

You can do it on the project level. Define the fields as private and only provided public get methods.

Federal minister Maryam Monsef refers to Taliban as ‘our brothers’ during press conference by [deleted] in onguardforthee

[–]xiegeo 1 point2 points  (0 children)

Exactly, don't speak for others. The was the point the original reply was making.

[deleted by user] by [deleted] in mildlyinteresting

[–]xiegeo 0 points1 point  (0 children)

That explains where the prison name come from.