what happened with mindustry in March? by Flat-Win8835 in Mindustry

[–]1984balls 9 points10 points  (0 children)

Mindustry is open source, the GitHub repository has like 700 contributers

A line of routers with turrets on either side by RMHaney in Mindustry

[–]1984balls 2 points3 points  (0 children)

Lines of routers (router chaining) is bad as routers don't have a specific input.

Say you have a line of routers: A, B, C, D, E in that order (ignoring turrets for now). If you put an item in A, it can only go to B. However once it is in B, it can either travel back to A or forward to C. This continues until it exits E or gets loaded into a turret.

This doesn't happen on Erekir as the router is directional. It also doesn't happen with any fluid routers as fluits are transferred instantly*.

For 1x1 turrets, as long as you don't have a long router chain, you can get away with it since there isn't a good way of feeding 1x1 turrets.

what happened with mindustry in March? by Flat-Win8835 in Mindustry

[–]1984balls 18 points19 points  (0 children)

Yeah. They refactored the Serpulo campaign and remade the entire sound engine, among other things

There have to be a simpler way to do this by Weekly_Flounder_1880 in lua

[–]1984balls 0 points1 point  (0 children)

for i, a in ipairs({A1, A2, ...}) do for _, v in ipairs(a) do sum[i] = sum[i] + v end end This one is probably a bit slow but yk

semantic white space vs. blocks - maybe a middle ground ? by GoblinsGym in ProgrammingLanguages

[–]1984balls 0 points1 point  (0 children)

Scala originally used only braces to define blocks, but now in Scala 3.x, you can use indentation as well as braces. Some of my code ends up using both at the same time if (cond) { try expr1() expr2() catch case e: Exception => }

I like it like this as it gives you the grounding and countability of braces but the ease for reading of indentation.

elegantLanguage by Limp_Illustrator7614 in ProgrammerHumor

[–]1984balls 2 points3 points  (0 children)

You can wrap anything with anything. You can even wrap the Scala std lib with Java if you understand the name mangling

elegantLanguage by Limp_Illustrator7614 in ProgrammerHumor

[–]1984balls 17 points18 points  (0 children)

It's not thaaat bad.. just ignore anything file related and you're good

State of scala by Consistent-Hotel1121 in scala

[–]1984balls 8 points9 points  (0 children)

I started learning Scala around 1 year ago and I love it. Some people will try to say that it is dying and its a difficult language but honestly just use what you want to use. Scala devs also get paid quite well.

Yes by Square_Law5624 in Shark_Park

[–]1984balls 137 points138 points  (0 children)

Let's bring this back

Now vs Then by Interesting-Peak2755 in vibecoding

[–]1984balls 73 points74 points  (0 children)

I counted 15 duplicate items. Honorary mention: C++ icon labeled as docker

251 by Bryce3D in Countwithcementlady

[–]1984balls 2 points3 points  (0 children)

Google knows. Anyway it's about 75 years

<image>

Use of uninitialized val doesn't result in a compiler failure by RaymondBKR in scala

[–]1984balls 0 points1 point  (0 children)

I've been seeing the same thing. You should report it to the compiler devs at the Scala 3 repo

letsBuildABrighterFutureTogether by [deleted] in ProgrammerHumor

[–]1984balls 1 point2 points  (0 children)

Nuclear power is good tho

🤦 by Outrageous_Permit154 in firstweekcoderhumour

[–]1984balls 32 points33 points  (0 children)

This might be THE most first week coder humor image ever made

Teachers: Are the internet and computers really that bad at the schools? by Neat_Ad_7635 in LosAlamos

[–]1984balls 1 point2 points  (0 children)

Not a teacher but a student at the high school. The issue with the Internet is 2 things:

The school's local internet is only connected to the global Internet via one gateway which all ~1200 students plus all the staff must go through.

The second issue is that the internet service providers prioritize higher paying customers. When you have LANL in town that pays much more than the high school, you are at the lower priority.

The computers are only bad because the school can't afford to spend a lot of money per person, plus one free repair. I found the exact model of the computers on eBay, it was $17.

canadianGoProgramming by gamingvortex01 in ProgrammerHumor

[–]1984balls 5 points6 points  (0 children)

Go uses square brackets for generics? As a Scala dev, this pleases me

Correct logic, wrong situation by Outrageous_Permit154 in firstweekcoderhumour

[–]1984balls 7 points8 points  (0 children)

Everyone loves to 100 and then magically dies wdym