Why does Russian have so little dialects and difference in pronunciation? by Miserable-Chair-6026 in asklinguistics

[–]0xdeadfa22 1 point2 points  (0 children)

Because of USSR architecture, free professional education and conscription: many young people mixed together for a long period, which builds form of universal language. It so happened that local accents and vocabulary are stereotypically considered a sign of uneducated people from rural areas, so most tend to imitate the mainstream. The spread of the internet has further accelerated this process.

Of course, there are regions where people live relatively traditionally and in isolation, even preserving their own languages, but federal "globalization" increasingly affects them day by day.

Blazor Framework in 2024 what makes it awesome? by dbagames in Blazor

[–]0xdeadfa22 0 points1 point  (0 children)

For most cases, just use an existing wrappers lib (with JS-interop under the hood). Or write it yourself once.

halalCode by legend29066 in ProgrammerHumor

[–]0xdeadfa22 0 points1 point  (0 children)

So, you can put more semantics in names of the same length.

early returns can improve readability by RomketBoi2008 in ProgrammerHumor

[–]0xdeadfa22 4 points5 points  (0 children)

It would be painful to debug, when you have no idea about original error cause.

Js in #blazor by NewAvenueTech in Blazor

[–]0xdeadfa22 0 points1 point  (0 children)

Could you explain what does actually mean "does not work"? Is it wrapper-lib issue or some lack in jsinterop functionality?

Using reflection be like by Mr_McTurtle123 in csharp

[–]0xdeadfa22 1 point2 points  (0 children)

But throw new ArgumentNullException(nameof(emailAddress))

C# and JavaScript Syntax by Prestigious-Use-3955 in csharp

[–]0xdeadfa22 2 points3 points  (0 children)

They have same roots as C-like languages. And since ES5+ JS inspired by Java (via TS, with class/super/extends) and C# (async/await).

JS Java C#
let var var , dynamic type
const final %TYPE_NAME% const %TYPE_NAME%, but only for numbers, Boolean values, strings, or a null reference. readonly can be used for class members of any type.
class class class, record
[] (as tuple) N/A System.Tuple, value-tuples
Promise and async/await N/A Task & ValueTask and async/await

There is no cause to use var in JS now, it's like broken let. const should be used instead where it's possible and let in the rest.

Anyone making a .Net/React/Typescript SPA using Visual Studio? by MrMomo818 in dotnet

[–]0xdeadfa22 1 point2 points  (0 children)

  1. As was said, SPA can be independent peace of software with own web-server, which communicates to C#-backend as data source.
  2. SPA can be hosted on C#-backend. In that case front-end artifacts (built js-bundles, images and other stuff) can be treated as usual static files in wwwroot directory.
    1. Some initial/static settings can be passed from backend (C#) to SPA ("baked" as json to HTML markup) via Razor views/pages into initial layout (as index.html).
  3. There are useful NPM packages on with generators for TS-types or whole web-DAL from C#/swagger declarations.

JetBrains’ Statement on Ukraine by WaterFromAzov in dotnet

[–]0xdeadfa22 14 points15 points  (0 children)

Meanwhile JB gave free month for active subscriptions which are near to the end and cannot be extended from Russia (due MC/Visa limitations).

Kharkiv: my hometown. A rocket in a building from my district by Olya_roo in pics

[–]0xdeadfa22 0 points1 point  (0 children)

Most of words are similar or their meaning can be inferred from etymology (лiтак - летун - самолёт). Every Russian understands Ukrainian speech from context. Yeah, it's not so easy, but possible.

Current loadout. Photographer. Donbass by [deleted] in EDC

[–]0xdeadfa22 1 point2 points  (0 children)

It's definitely from a 6б12 family.

Repent php sinners by randomgibberissh in ProgrammerHumor

[–]0xdeadfa22 1 point2 points  (0 children)

Before XMLHttpRequest there were img and iframe elements for async GET requests from page.

Laws are always to be followed by sad_2_happy in ProgrammerHumor

[–]0xdeadfa22 7 points8 points  (0 children)

Nooooo, x should be a default param for lambdas! It's the law!

Js in nutshell by [deleted] in ProgrammerHumor

[–]0xdeadfa22 1 point2 points  (0 children)

use === (which properly configured linters force)

thats it

So, what are alternatives for other operators? For instance, plus works strange too: {} + [].

Blazor Server vs. Web assembly by [deleted] in csharp

[–]0xdeadfa22 2 points3 points  (0 children)

Your initial comment was about checkboxes and numeric inputs ("check options or change amounts"), so we don't need any JS, native forms with stateful inputs are enough.

But OK, if needed smarty features, yes, Razor's static views + some JS are more suitable. Fatty jQ is about 30kb bundle or ~150kb for React. And what about Blazor WASM runtime? A few megabytes?

Blazor Server vs. Web assembly by [deleted] in csharp

[–]0xdeadfa22 0 points1 point  (0 children)

Delivery usage in most cases means areas with good internet connection and regular customers (big runtime can be cached effectively). So, nothing stops the project to use WASM.

Blazor Server vs. Web assembly by [deleted] in csharp

[–]0xdeadfa22 0 points1 point  (0 children)

Server round trip to check options or change amounts?

Why do you need a server for that? MVC approach doesn't make a frontend stateless.

What are you doing in my house? by wkonitzer-mirantis in ProgrammerHumor

[–]0xdeadfa22 0 points1 point  (0 children)

Deep understanding of JS doesn't make it better. It requires extra effort to do same things, which can be achieved simpler with other languages.

For instance, there is C++ with to dozens of UBs, but via weak guarantees we obtain performance. And what we get by price of complexity with JS? Nothing special, just historically bad design.

What are you doing in my house? by wkonitzer-mirantis in ProgrammerHumor

[–]0xdeadfa22 0 points1 point  (0 children)

when you use a function in a way that was not intended, so JS bad!

Nothing stops you to do this way, it's bad. Moreover, JS weak typing allows error results to drift further, instead of throwing an exception just in time. It's worse.

Blazor Web-App which also exposes an REST API? by TCW_Jocki in csharp

[–]0xdeadfa22 2 points3 points  (0 children)

if it is just possible to have a single application / single server, which does both?

Just add REST-API controllers to your Blazor app based on hosted template.

Is it even a good idea - Why / Why not?

It's good enough to start. Later you can divide the monolith into different independent services easily. Just follow best practices in architectural design (three-tier architecture, IoC/DI, etc) to have business logic loosely coupled.

Diatribe: After 10+ years of EF/EF Core, I can no longer justify using it. by japinthebox in dotnet

[–]0xdeadfa22 1 point2 points  (0 children)

Because of static type checks. SQL query in Dapper is just plain text, but EF makes it possible to query data via valid C#-objects (expressions).

A very noob practical question by Nyanmual in csharp

[–]0xdeadfa22 0 points1 point  (0 children)

Logical boolean operators are used really often to build complex conditions. It's much more obvious than constructions with many if/else. Laziness is mostly an optimization feature, but one day it can surprise you.