Profile cover photo
Profile photo
Max Shmelev
111 followers
111 followers
About
Max's posts

Post has attachment
Attribute Caching
Let's talk about caching in C# and making our life easier around it. If you use caching, the most common pattern would be something like: object GetValue()
{
object o = GetFromCache("myKey");
if (o== null)
{
o = CalcValue();
SaveToCache ("myKe...

Post has attachment
Multiple RoutePrefix
In MVC5 Microsoft has added routing using C# attributes . It is hard to overestimate this feature: finally you don't need to switch between your controllers and RoutesConfig.cs to find out where all your endpoints go. To make it even sweeter they added Rout...

Bug in parsing image URLs.

If there's a space in an image URL, Feedly trims anything after it and the image is not shown in the "Full Articles" mode.
Example.
Feed: http://sergeydolya.livejournal.com/data/rss
Image in RSS: "http://www.4sync.com/web/get/s.dolya/blog/2014-03-04 New Zeland/20140314_newzeland_586.jpg"
Image in Feedly: "http://www.4sync.com/web/get/s.dolya/blog/2014-03-04"

Post has attachment
Embedding GIT Commit Hash to Assembly Version
Have you ever tried to understand looking at your DLL what GIT branch it corresponds to? Have you been thinking if your commit is already in this DLL or not?
To easily find a GIT commit which your binary assembly relates to, it would be very handy to have t...

Post has attachment
А гугл-то жжет. Прям автоматом распознал и анимировал.
Animated Photo
Animated Photo
2013-12-23
2 Photos - View album

Post has attachment
PhotoPhotoPhotoPhoto
4 Photos - View album

Post has attachment
Avoiding Duplicate Query Parameters in Web API
If you pass parameters to your Web API using queries, you would have a method like: public IEnumerable<string> Get([FromUri] string p1)... And you'll call it like: .../Values?p1=a All of this works perfectly fine until someone passes you duplicate parameter...

Post has attachment

Post has attachment
Wait while more posts are being loaded