YAZILIM · DEVOPS · SİSTEM2013’ten beri not alıyorum

Yakup KALEBAŞI

“Alınan bilginin karşılığı öğrenmektir; öğretilmemiş bilgi ise henüz tamamlanmamıştır.”

Yazılım geliştirme, sunucu altyapısı ve veritabanı yönetimi üzerine pratik notlar ve adım adım rehberler. Konular: .NET Core / C#, Kubernetes, Docker, PostgreSQL, Redis ve yazılımı güvenli şekilde yayına almak (DevSecOps).

270+

TEKNİK MAKALE

13 Yıl+

SİSTEM ARŞİVİ

Son Yazılar & Sistem Deneyimleri

Toplam 270+ Yazı İçerisinden

  • DRY: Don’t Repeat Yourself

    DRY (Kendizi tekrar etmeyin) Eğer aynı kodu ikiden fazla yerde tekrarlıyorsanız durup bir düşünün. Mümkünse tekrar eden kodları içeren fonksiyonlar/metotlar oluşturun ve başkalarının da kolayca kullanabilmesi için bu…

  • Online Pdf, Excel v.s. Download
    ,

    Online Pdf, Excel v.s. Download

    <html> <head> <meta http-equiv=”content-type” content=”text/html; charset=UTF-8″> <meta name=”robots” content=”noindex, nofollow”> <meta name=”googlebot” content=”noindex, nofollow”> <script type=”text/javascript” src=”http://code.jquery.com/jquery-2.1.3.js”></script> <link rel=”stylesheet” type=”text/css” href=”/css/result-light.css”> <script type=”text/javascript” src=”http://www.cloudformatter.com/Resources/Pages/CSS2Pdf/Script/xepOnline.jqPlugin.js”></script> <style type=”text/css”></style> <title>@cloudformatter template</title>…

  • sealed Keyword’ü Nedir? Ne İşe Yarar?

    sealed Keyword’ü Nedir? Ne İşe Yarar?

    sealed keywordü bir class ve metod modifier(niteleyici)dır. Eğer bir class sealed komutuyla işaretlenmişse o classtan kalıtım yapılamaz. Yani o class başka bir sınıfın base classı olamaz. Ayriyetten bir…

  • MVC içindeki filtreler

    MVC içindeki filtreler

    Filter  Interface  Default Implementation  Authorization Filter  IAuthorizationFilter AuthorizeAttribute  Action Filter  IActionFilter ActionFilterAttribute  Result Filter  IResultFilter ActionFilterAttribute  Exception Filter  IExceptionFilter HandleErrorAttribute Authorization : Diğer filtreler ve Action metodlardan önce çalışmaktadır.Controller…

  • MVC Get Attributes
    , ,

    MVC Get Attributes

    Assembly assembly = Assembly.GetExecutingAssembly(); IEnumerable<Type> types = assembly.GetTypes() .Where( type => typeof(Controller).IsAssignableFrom(type) && type.Name.Replace("Controller", "") == controllerName) .OrderBy(x => x.Name); foreach (Type cls in types) { HelpAttribute helpAttribute…

  • MVC Get – Controllers, Actions, Attributes and Return Types – 2
    , ,

    MVC Get – Controllers, Actions, Attributes and Return Types – 2

    Assembly assembly = Assembly.LoadFrom(sAssemblyFileName) IEnumerable<Type> types = assembly.GetTypes().Where(type => typeof(Controller).IsAssignableFrom(type)).OrderBy(x => x.Name); foreach (Type cls in types) { list.Add(cls.Name.Replace("Controller", "")); IEnumerable<MemberInfo> memberInfo = cls.GetMethods(BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Public).Where(m…

  • MVC Get – Controllers, Actions, Attributes and Return Types
    , ,

    MVC Get – Controllers, Actions, Attributes and Return Types

    Assembly asm = Assembly.GetAssembly(typeof(MyWebDll.MvcApplication)); var controlleractionlist = asm.GetTypes() .Where(type=> typeof(System.Web.Mvc.Controller).IsAssignableFrom(type)) .SelectMany(type => type.GetMethods(BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Public)) .Where(m => !m.GetCustomAttributes(typeof( System.Runtime.CompilerServices.CompilerGeneratedAttribute), true).Any()) .Select(x => new {Controller = x.DeclaringType.Name,…

  • c# Mapping Class

    c# Mapping Class

    public static class TypeExtensions { public static void MapTo<T, S>(this S source, T target) { Type sourceType = source.GetType(); Type targetType = target.GetType(); var sourceProperties = sourceType.GetProperties(); var…