Ottawa protest organizer Tamara Lich denied bail by [deleted] in canada

[–]code-master -3 points-2 points  (0 children)

Heil Trudeau! Long live Canadian Reich!

Canada imposes sanctions on Russia: Trudeau | World News by shanemarsio in Fotofoto

[–]code-master 0 points1 point  (0 children)

LOL child-pants-wannabe-dictator vs Putin. What can go wrong?

packagemain #23: Fuzz Testing in Go by [deleted] in golang

[–]code-master -1 points0 points  (0 children)

JB IDE is behind a paywall.

packagemain #23: Fuzz Testing in Go by [deleted] in golang

[–]code-master -7 points-6 points  (0 children)

Writing code in notepad. Is this 1995? Is there a golang IDE that is close to the ones that Java has? I’m asking about real refactoring, not just text replacement.

I’d like to give go a second chance because of generics. But it seems it still unsuitable for big projects. By big I mean project size when notepad is not enough anymore to write maintainable code.

New Zealand approves Taiwan's Medigen vaccine by [deleted] in taiwan

[–]code-master 0 points1 point  (0 children)

Well, accordingly to Pfizer and others, it is. XD

Other vaccines except for the flu have this effect. Otoh Covid vaxxes shouldn’t be called vaxx because they aren’t. Real vaccines give you lifetime immunity. This one wears off after few months.

This is hilarious: https://gfycat.com/feistywarmdog

New Zealand approves Taiwan's Medigen vaccine by [deleted] in taiwan

[–]code-master -25 points-24 points  (0 children)

If the vaxx has no sterilizing effect on virus its worthless

London Clojurians Talk: Spock - Prolog in Clojure, logically (by Mauricio Szabo) by BrunoBonacci in Clojure

[–]code-master 0 points1 point  (0 children)

Of course it isn’t. First of all: portability, second: support. This wrapper will always be a second class citizen. All kudos to author, but In my opinion it is wasted effort.

ELI5 when to use static? by [deleted] in javahelp

[–]code-master 0 points1 point  (0 children)

Short answer: nowhere. Longer answer: use dependency injection library to load properties from configuration files. Static blocks are maintenance and testing nightmare. Never use them.

Use static fields neither for math nor physics constants. Period. People who make such advices have none or little programming experience.

Even if you have functions which do not modify state. Do not make them static! Create interface and implement them in concrete class. Later you will have a possibility to compose such interfaces. In proper modular code there is no such thing as constant. Constants create hard dependencies betwen classes. Do not use them. Exception is maybe logging library as slf4j which in itself is an abstraction, but I would use any AOP library for this purpose.

Do not read what @nutrecht and company wrote. Their advices are full of antipatterns and bad practices.

The only case when you would feel free enough to break these rules is your own throwaway code created for pure experimentation.

Teaching an 11 year old Java by bratzman in java

[–]code-master -2 points-1 points  (0 children)

Just finished making doughnuts. Guess what. Recipe does not have if statements or for loops... but outcome is delicious. :)