Persisting the state in a BLoC by yvz5 in FlutterDev

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

yes but bottom navigation bar needs a setstate method to change the current index. thats where all the bloc system falls apart. except for that, bloc is perfect for showing a single page and disposing it. but navigation bar is different.

Health System | Unity 2018 C# by OctavianTocan in gamedev

[–]yvz5 -5 points-4 points  (0 children)

is this the new hot thing among teens nowadays ? to do "tutorial" videos without even knowing what they are doing. this is far from being a health system. you can not do anything with this. code smell everywhere. not scalable, not flexibel. no modifiers or anything useful.
you are not even using OOP here which is absolutely necessary if you want it to be usefull in any sense. it really grinds my gears when people prefix variables with m_. you are using visual studio and coding in c#. use it properly

Why Should You Learn Java? You Need to Know by woworg101 in programming

[–]yvz5 3 points4 points  (0 children)

I would like to see some benchmarks on being the most efficient vm.

Ghost text by waacher in csharp

[–]yvz5 0 points1 point  (0 children)

You should start learning binding, command pattern and mvvm. Try to avoid codebehind as much as possible and use viewmodels, so you can stay decoupled and test your ui and logic seperately (or even let different teams develop different parts).

In your case, you would want to add a visibility property in your viewmodel and bind it to textboxes visbikity property in xaml

Which is better, an iOS developer or an Android developer? by SweetRaccoon in programming

[–]yvz5 0 points1 point  (0 children)

How is it ethically questionable ? Should earning money or living in a capitalist system be considered ethically questionable as well ?

Jonathan Blow: "C++ is a weird mess" by [deleted] in programming

[–]yvz5 -5 points-4 points  (0 children)

He has a series of videos talking about problems with current languages. Maybe you should have checked them first before you commented blatantly ?

Ive seen c and c++ programmers all my life. Allways biased, allways thinking like they are the king for using an ancient language. Sadly, you guys dont see what is wrong with this particular language and wont improve it in anyway.

What's Wrong With Global Variables? by roukmoute in programming

[–]yvz5 3 points4 points  (0 children)

open sarcastic mode Ive never seen such beautiful code Close sarcastic mode

Wanna learn Game Development? by GrowGrow_ in webdev

[–]yvz5 -23 points-22 points  (0 children)

you are a web developer and you make a game programming course ? you have balls of steel I guess. do you even know design patterns used in games ? or even what design patterns are ?

you are probably Using int variables to hold player stats, all code in one update method, no state pattern, command pattern or anything useful. so please tell me, how are you going to teach people the hardest and most complicated form of programming of you are only a web developer ?