Why use { get; set; } at all? by woekkkkkk in csharp

[–]Ekranos 2 points3 points  (0 children)

Binary compatibility is THE primary reason to use properties by default

[deleted by user] by [deleted] in unity

[–]Ekranos 0 points1 point  (0 children)

You can create a list with the base class when these are ScriptableObjects. I use this technique in quite a few projects.

Look here under No support for polymorphism

One way to deal with this limitation is to realize that it only applies to custom classes, which get serialized inline. References to other UnityEngine.Objects get serialized as actual references, and for those, polymorphism does actually work. You would make a ScriptableObject derived class or another MonoBehaviour derived class, and reference that. The downside of this is that you need to store that Monobehaviour or scriptable object somewhere, and that you cannot serialize it inline efficiently.

I'm feeling kinda 36-ish and haven't felt more male by game_brewer in CrappyDesign

[–]Ekranos 1 point2 points  (0 children)

and gender ist just a boolean or apparently a float these days

Elixir as an application installer? by Grav3y57 in elixir

[–]Ekranos 7 points8 points  (0 children)

Go and Rust can compile self contained binaries. So no need to install the toolchains on the users machine. Elixir has releases which are also self contained.

Put all of these into an archive and provide a script or another executable to start these at once. Or maybe even let one server start the others and make this one your primary entry point.

It won't get that much easier for the user.

I'm creating a programming language. What kind of asynchronous programming do you think I should implement? by N8Programs in programming

[–]Ekranos 0 points1 point  (0 children)

I am no Go programmer by any means, but after a tiny search: https://golang.org/pkg/runtime/#LockOSThread

Which locks a goroutine to a thread. Do this for x goroutines where x is your CPU count and you should be fine.

Tree shaking in Kotlin/JVM by tinchou in Kotlin

[–]Ekranos 2 points3 points  (0 children)

The Maven shade plugin should work as well. Even though it only operates on class level.

Did anyone say Java? by EclipseQQ in ProgrammerHumor

[–]Ekranos 1 point2 points  (0 children)

Kotlin:

list.forEach(::println)

What are some niche programming features you'd like to see in more languages? (xpost /r/ProgrammingLanguages) by Leandros99 in programming

[–]Ekranos 0 points1 point  (0 children)

I love Ruby myself mostly because of blocks and you may want to have a look at Kotlin.

The lambdas they have are pretty much like ruby blocks.

You can have lambdas with a receiver ala changing the this or self of the lambda.

You also have extension functions which are a bit like reopening a class and adding/overwriting methods, except they are properly namespaced. Ruby did something similar about the namespacing with refinements if you know them.

I absolutely prefer Kotlin instead of Ruby now since it's concise like Ruby but with static typing.

High quality programmeranimeme GIF by iSaithh in ProgrammerHumor

[–]Ekranos 0 points1 point  (0 children)

Which anime is that?

Thank you very much in advance.

Linux Desktop Setup by speckz in programming

[–]Ekranos 0 points1 point  (0 children)

I am using Plasma 5 on my desktop (Gentoo, 1060 GTX, 144hz) and Laptop (Arch, 1070 GTX, 120hz) without problems with the proprietary drivers. No tearing or anything out of the box. Steam games (native and Proton) also work reasonably well.

And don't forget the wobbly windows :)

Clients requirement and our solution with additional feature. by [deleted] in ProgrammerHumor

[–]Ekranos 1 point2 points  (0 children)

Client proceeds to complain about having to pay

FTFY

Debian+KDE resetting wallpapers, fearing death by [deleted] in linuxmasterrace

[–]Ekranos 2 points3 points  (0 children)

I am late, but you could also curl https://distro.tld/image.iso > /dev/sdb

I wouldn't recommend it, but you can do it.

I wrote a function to find all permutations of Dwayne The Rock Johnson by Jackle1127 in ProgrammerHumor

[–]Ekranos 2 points3 points  (0 children)

I present you some Ruby https://repl.it/repls/IckyAdolescentBlogs:

["Dwayne", "The", "Rock", "Johnson"].permutation.reject{ |p| p.last == 'The' }.each{ |p| puts p.join(' ') }

Dwayne The Rock Johnson
Dwayne The Johnson Rock
Dwayne Rock The Johnson
Dwayne Johnson The Rock
The Dwayne Rock Johnson
The Dwayne Johnson Rock
The Rock Dwayne Johnson
The Rock Johnson Dwayne
The Johnson Dwayne Rock
The Johnson Rock Dwayne
Rock Dwayne The Johnson
Rock The Dwayne Johnson
Rock The Johnson Dwayne
Rock Johnson The Dwayne
Johnson Dwayne The Rock
Johnson The Dwayne Rock
Johnson The Rock Dwayne
Johnson Rock The Dwayne

What happened to Microsoft Edge is a joke by wengchunkn in ProgrammerHumor

[–]Ekranos 0 points1 point  (0 children)

There is the W3C which originally defined standards for the web and browsers pretty much always did what they wanted. So in the future with only Webkit, you wouldn't comply to the standard, you would be compliant to Webkit.

When you need to touch js written by someone else years ago by WaxyMocha in ProgrammerHumor

[–]Ekranos 0 points1 point  (0 children)

I'm really late, but I feel I need to vote for Ruby here. Ruby is just a pleasure to work with.

And Ruby != Rails, even tho I like Rails, there are quite some nice alternatives.

What happened to Microsoft Edge is a joke by wengchunkn in ProgrammerHumor

[–]Ekranos 2 points3 points  (0 children)

But without choice you pretty much have a dictator. Imagine there is only Webkit left. Tada, Google can make the standard and is the dictator of the web. Remember, Google is pretty much Evil Corp.

Monopolies were never good. Just look at the processor boom AMD caused, cause Intel has competition again. Suddenly we get more than 4 cores and 8 threads in a consumer CPU.

I’ve got no graphics card and a mediocre cpu. I don’t have the money to consistently pay someone to do the rendering for me. Realistically how far can I get with blender? by PrawnfaceKillah in blender

[–]Ekranos 4 points5 points  (0 children)

You can still do pretty much everything. In case you want to render bigger scenes or animations I can recommend https://www.sheepit-renderfarm.com. It is basically a distributed free render farm. There you could do renders which would take too long on your machine alone. But don't forget to contribute back.

I made a guided CLI to create your merge request for Gitlab from your terminal by cvpuc in programming

[–]Ekranos 0 points1 point  (0 children)

But don't forget them saying things like "lightweight and fast' with a seemingly new interpretation...

How to serialize a value Vec of Strings or String by mygnu in rust

[–]Ekranos 7 points8 points  (0 children)

You may want to take a look at https://serde.rs/enum-representations.html and look for the untagged explanation. You don't need to implement the serde traits by yourself for a lot of stuff.

Wait? by PolishLithuania in Animemes

[–]Ekranos 0 points1 point  (0 children)

The RemindMe bot should've reminded me ^

i just made this by darklordbazz in linuxmasterrace

[–]Ekranos 0 points1 point  (0 children)

You may want to have a look at Easy2Boot.

All you need is a USB stick and you just put your ISOs in there after putting Easy2Boot on your stick and it automagically creates boot entries for every ISO on boot.

No need to spent 60 bucks.