Maxim Belugin रीट्वीट किया
Maxim Belugin
202 posts

Maxim Belugin
@AxCoder
Senior C# backend developer
Moscow, Russia शामिल हुए Eylül 2011
67 फ़ॉलोइंग128 फ़ॉलोवर्स

AI powered supply chain attack
LLM Security@llm_sec
* People ask LLMs to write code * LLMs recommend imports that don't actually exist * Attackers work out what these imports' names are, and create & upload them with malicious payloads * People using LLM-written code then auto-add malware themselves vulcan.io/blog/ai-halluc…
English

@thomaslevesque @Dave_DotNet If you declare a private nested type it will be available for name collision in the different file or the same partial class.
File1:
partial class A {
private class B {
}
}
File2:
partial class A {
private class B { <-- collision
}
}
English

@Dave_DotNet I keep forgetting about this feature. I haven't used it yet. To be honest, I'm not sure I see the point. How is that different from declaring a private nested type?
English

Interesting non-obvious behavior of structs and generics in C#
axcoder.github.io/Structs-Puzzle…
#csharp #dotnet #generics #structs
English
Maxim Belugin रीट्वीट किया
Maxim Belugin रीट्वीट किया

An interesting approach like approvaltests.com . IMO that can be used as pinning tests for limited amount of scenarios, but for most of cases explicit declaration of assertions is preferable. TaxAmount.Should().Be(Base * Rate) is more readable than TaxAmount.Should().Be(15)
Michael Feathers@mfeathers
Testing should feel like work in a REPL that we persist. blog.janestreet.com/the-joy-of-exp…
English
Maxim Belugin रीट्वीट किया

The biggest bugfix actually required me to build a private copy of System.Windows.Forms.dll 😬 .NET 7 shipped with a nasty bug in Form.ShowDialog(), and a fix is being fast-tracked for the 7.0.2 servicing release in January. github.com/dotnet/winform…
English

Sarted using conventionalcomments.org with emoji
Like:
💡suggestion: consider renaming <this> to <that>
#codereview
English
Maxim Belugin रीट्वीट किया
Maxim Belugin रीट्वीट किया
Maxim Belugin रीट्वीट किया

“XML provides a proper engineering solution to data exchange, so we use JSON instead. JSON gives software developers a more convenient experience by not addressing the hard problems that XML took on.”
Peter Hilton@PeterHilton
Why CSV survives - the enduring nature of comma-separated values (CSV) #data hilton.org.uk/blog/csv-survi…
Asker, Norge 🇳🇴 English

@IevgenMir @oFce Hello. Cause can be in ER or in a specific report. ER has some memory optimization features disabled by default. You can enable them and test reports or just contact support. Er features are in the "org administration" module
English

So I prefer to use 'var' only when it is obvious that type is not AnyType, in other case I cast it to specific type as early as possible
#dyn365fo
English

#XppGroupies I use 'var' keyword in C# totally
In X++ using of 'var' has some nuances:
🧵
English










