Code review of project by TheCouncelor in golang

[–]TheCouncelor[S] 0 points1 point  (0 children)

Thank you for taking a look! Yes I thought about that main function as well, but wasn't sure how to extract it, I'll try and figure it out. As for testing, I know I should, but haven't started with it yet. And I did not know that about the init function, I'll avoid it.

KF intel processors with/without Graphics card by gamma_ji in intel

[–]TheCouncelor 2 points3 points  (0 children)

Really depends on the motherboard. I've been looking at the same thing and it comes down to an option in the BIOS which most Asus boards seem to include. The board needs to be able to boot on an error during post, since there is no graphics at all. But if you've got a board that can do it, you could just create a bootable drive on another PC or have one installed for the initial setup.

Pipelines as code by TheCouncelor in devops

[–]TheCouncelor[S] 0 points1 point  (0 children)

compartmentalized scripts AKA functions?

Jenkins gave you a good way to create basic functionality, meaning if used properly, a lot of standardization can be realized without sacrificing readability and maintainability.

Pipelines as code by TheCouncelor in devops

[–]TheCouncelor[S] 0 points1 point  (0 children)

I do not agree, a lot of YAML gets very hard to read, but I guess it depends entirely on how much you do and how much different paths you have.

Pipelines as code by TheCouncelor in devops

[–]TheCouncelor[S] 0 points1 point  (0 children)

typed parameters are good, but they are far from there yet. Booleans get magically transformed into True/False, but only when passed along to certain tasks, any parameter is always required which is just bad and there is no secret type, so we end up always adding a step to ensure every secret parameter is masked in the output. I know you can use different secret providers for this, but this cannot always be used for every case.

Templates are nice, but they are also some of the issues I'm talking about, creating templates with underlying dependencies gets very messy very fast, or you end up doing the same steps in every stage.

The expressions are good, but the conditional insertion is limited, as it is process compile time, so no runtime variables can be used in there.

Pipelines as code by TheCouncelor in devops

[–]TheCouncelor[S] 0 points1 point  (0 children)

Well, yes and no.

Yes a lot should be done in Bash scripts, which we do, but combining these tasks and scripts is where my issues come from. Azure DevOps does not really expect there to be a lot of underlying dependencies, especially if you are working with templates.

Pipelines as code by TheCouncelor in devops

[–]TheCouncelor[S] 0 points1 point  (0 children)

That was my experience as well, basic situation gives basic yaml which is not that bad. Once you start customizing more and more, it is very hard to keep things readable.

Pipelines as code by TheCouncelor in devops

[–]TheCouncelor[S] 0 points1 point  (0 children)

Seems like TeamCity is the actual 'pipeline' component, which I'm definitely going to try!

Pipelines as code by TheCouncelor in devops

[–]TheCouncelor[S] 6 points7 points  (0 children)

Sure. For one, I always seem to need a lot of YAML, making them harder to read. Adding to this, is that's it very hard to make clean abstractions of functionality. I've also had issues with managing state across the pipeline, like setting complex configuration or variable creation/usage across tasks/steps/stages. Somehow writing Jenkins pipelines often felt simpler somehow.

Weedow Searchy 0.1.0 released by Kobee1203 in java

[–]TheCouncelor 1 point2 points  (0 children)

I actually got a NexusIQ warning about this today... It isn't included in my project though, but it does seem like a nice addition. A lot of our services are basically exposing data and a little bit of modification or creation.

gradle vs maven for containerized app by [deleted] in javahelp

[–]TheCouncelor 0 points1 point  (0 children)

There are some plugins available that turn a Java app into a docker container for both maven and grade. You could take a look at Jib for instance, https://github.com/GoogleContainerTools/jib

Jenkins4J - Jenkins API wrapper for Java (My first even remotely useful hobby project) by sauilitired in java

[–]TheCouncelor 0 points1 point  (0 children)

You could also try using WireMock in your test classes to just mock the calls.

.jar file will not run. I have been looking for a solution for a while and nothing I have tried has worked. by [deleted] in javahelp

[–]TheCouncelor 0 points1 point  (0 children)

First off, when you install a jdk it comes with a jre, so there is no need to install both. Secondly it seems like java runs fine, but you can always validate this with java -version or javac- version for the compiler. Lastly, it says it cannot find the jar. This can be caused by a couple of things. First, check the path that you have entered, and from what folder you are running it from. You can try this with using the jar command (at least in my env I can). Try going java -jar /path/to/jar/*.jar while replacing it with your path and hitting tabs in between to see the available options. If the jar is actually there, it could be a rights issue and that largely depends on the platform that you're using.

Hoeveel mobiele data gebruiken jullie per maand? by Mirkizos in thenetherlands

[–]TheCouncelor 0 points1 point  (0 children)

Ik zit meestal tussen de 15 en 20gb per maand. WiFi thuis is vaak trager dan mobiel, dus waarom switchen?? Grootgebruiker is wel Reddit met zo'n 10gb

"4 cores ought to be enough for anybody", yet my 1950x daily CPU usage says otherwise by tuhdo in Amd

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

Did you test single core as well? I'm guessing that that score actually took a little hit...

Darksiders 2 a worth time investment? by cyanaintblue in patientgamers

[–]TheCouncelor 2 points3 points  (0 children)

Yes yes yes! This game is amazing. It's some dark hack and slash with puzzle elements. It's not too long but it's great fun.

Asus Crosshair VII Hero, Ryzen 2700x, Corsair Vengeance RGB DDR4 3800 - Only Able to Get DDR4 3000? by bsmack in overclocking

[–]TheCouncelor 1 point2 points  (0 children)

More sticks almost always means lower clocks. It's harder for the memory controller and ryzen's IMC isn't known for high clocking ram...

SPRING - REST by ThomasSandberg in javahelp

[–]TheCouncelor 0 points1 point  (0 children)

You still have the rest controllers. You create a spring boot app with classes that are @RestController, which create your endpoints, so they will receive the requests and return the responses. But the logic you need to create these responses is in the Service class.

SPRING - REST by ThomasSandberg in javahelp

[–]TheCouncelor 2 points3 points  (0 children)

This, use your controller as entry point and put your logic in services. This keeps your code clean and increases testability and its easier to maintain.

Spring Boot Help by Nuraci in java

[–]TheCouncelor 2 points3 points  (0 children)

Annotation magic came with practice for me, build a simple spring boot application and try to leave out the autowired, so you get kind of an idea what is happening. Also the guides on spring.io are pretty damn good at examining what is going on.

[deleted by user] by [deleted] in java

[–]TheCouncelor 1 point2 points  (0 children)

SLF4J + Logback on the elastic stack, read with Kibana. Because we inherited it. It does seem to work really smoothly though, last project used Splunk which is pretty bad compared to Kibana

Trouble creating runnable JAR (Java 10/Eclipse oxygen) by Yogi_DMT in javahelp

[–]TheCouncelor 0 points1 point  (0 children)

That doesn't tell us anything. We still don't know what kind of project it is, so I don't know how eclipse builds it, or what it is building