text
stringlengths
301
426
source
stringclasses
3 values
__index_level_0__
int64
0
404k
Control Theory, Linear System. terms of lower powers, we can write Note that this is a weighted sum of the columns of the controllability matrix, and also the terms that appear in the integral term of the state equation solution. If these are linearly independent, the control action acts along all possible actions in the state
medium
2,168
Control Theory, Linear System. space. If there is linear dependence, there are directions where the control input is ineffective, rendering the system uncontrollable. Thus, the rank of the controllability matrix may be viewed as the number of linearly independent directions along which the control input affects the states. Edit:
medium
2,169
Travel, Web Development, Front End Development, Heyraeh, Life. Photo by Marcus Dall Col on Unsplash There and Back again I imagine us like a little modest boat on that ocean. At times it’s smooth sailing; flat glass-like water stretching all around in miles blinding us with the sun and sky’s reflection off it. Other times you are heaved in the air violently as
medium
2,171
Travel, Web Development, Front End Development, Heyraeh, Life. the water beneath you curls and drops. Clinging for life you hang onto your backyard boat with desperation to make it through. It’s remarkable how much goes flying out of your boat when you are heaved so quickly into the air. If I were an illustrator I would want to freeze frame that image; our
medium
2,172
Travel, Web Development, Front End Development, Heyraeh, Life. little boat perched at the tip of an ocean mountain, askew, objects ejecting in every direction, and my body upside down and sideways. Change focuses on those intangible heart “things”; those slippery thoughts and expectations that slide around when you try and put your finger on them. Change is
medium
2,173
Travel, Web Development, Front End Development, Heyraeh, Life. that mountain cliff of reality, or that gigantic stage light revealing and blinding everything. So it’s not surprising to me that I find myself in a place of “what the hell do I do with my life”. I’m grateful change has clarified things yet i’m also terrified at the decisions that need to be made
medium
2,174
Travel, Web Development, Front End Development, Heyraeh, Life. because none of them in any direction are easy. I spent the last 5 weeks doing web development; reading, learning, listening, coding, refreshing, and getting back to something I’ve always loved. Hours and hours have melted away and huddled into one giant existence. Granted, whenever I get time with
medium
2,175
Travel, Web Development, Front End Development, Heyraeh, Life. my better half we have this habit of melting time — regardless of what we are doing; there is no past, present, or future — there is just us existing together. It’s always been one of my favourite things about us. In this last little stretch we have both taken a journey back to something we each
medium
2,176
Travel, Web Development, Front End Development, Heyraeh, Life. did before we met each other — web development. There are things you do in your life where the work, frustration, sweat, focus, and learning don’t feel like a burden. They don’t tire you out or wear you down. Instead — these frustrations are motivating endeavours that invigorate you. There have
medium
2,177
Travel, Web Development, Front End Development, Heyraeh, Life. only been a handful of things in my life that cause time to melt and I’ve always seen it as the universe showing me that my heart and my tasks are aligned. Sometimes it takes a wayward path in a random direction to really help return you to where you’re meant to be. The pain, frustration, and
medium
2,178
Travel, Web Development, Front End Development, Heyraeh, Life. turmoil of that wayward path can burn straight through you but it’s in the midst of those fires you see what really matters. Isn’t that always how hard times refine us? Like a sun-dripped blinding light the realization that 1) this was actually attainable and 2) I would be unmeasurably happy doing
medium
2,179
Travel, Web Development, Front End Development, Heyraeh, Life. it crested over that horizon of frustration and burned my eyes. Not a graceful soft dawning but a “why have you been so slow” kind of dawning Do I have the courage to lay hold of things I want in my life? Do I have the strength to pursue them? Will I be lured by the comfort of the “known” and
medium
2,180
Mindfulness, Philosophy, Mental Health, Psychology, Self. Like Neo from The Matrix, we strive to know ourselves like we are the main character in our lives. Photo by Mathieu Stern on Unsplash Know thyself... Know thyself... Hmm... A concept that has resonated through time and culture. A concept so strong and profound, it has captivated philosophers,
medium
2,182
Mindfulness, Philosophy, Mental Health, Psychology, Self. writers, artists, and you. And this isn't by accident—it holds great promise. It promises that after you have known thyself, you would have attained self-mastery, purpose, and intentional living. But everything has a darker side—and "know thyself" isn't an exception. But how can knowing yourself be
medium
2,183
Mindfulness, Philosophy, Mental Health, Psychology, Self. bad, you may ask? Please let me elaborate. THE LIGHT AND DARK OF 'KNOW THYSELF' Self-awareness, the human ability to think about our thoughts, emotions, and behaviors as if we are seeing them from an outside perspective—obviously, this is a very powerful ability. This ability helps us understand
medium
2,184
Mindfulness, Philosophy, Mental Health, Psychology, Self. our motivations, spot patterns, and guide us into becoming our ideal selves. Like an artist uses vision with the knowledge of light and shadow to make a work of art on a canvas. Likewise, by knowing ourselves, we become the artists of our own lives, crafting the narrative of who we are. However,
medium
2,185
Mindfulness, Philosophy, Mental Health, Psychology, Self. just as prolonged exposure to the sun can make vibrant colors more dull, excessive self-introspection can distort our image of who we actually are. By excessively searching for who we are, we risk creating unrealistic narratives about ourselves. Think about the time you watched a movie, and you
medium
2,186
Mindfulness, Philosophy, Mental Health, Psychology, Self. started acting like the movie character for a little while, only to snap back to reality because that person in the movie isn't who you actually are. According to research by Dr. Tasha Eurich, heightened self-introspection does not always equate to true self-knowledge. In fact, it can turn into
medium
2,187
Mindfulness, Philosophy, Mental Health, Psychology, Self. self-hate fueled by self-criticism that keeps us trapped in a cycle of anxiety and hurt. WHERE TO DRAW THE LINE So since we know that excessive self-introspection is harmful, how do we know when to stop it so we don't cross that line? The answer lies not in the self-examination itself, but in its
medium
2,188
Mindfulness, Philosophy, Mental Health, Psychology, Self. purpose. Basically, if our aim is to uncover our flaws and shortcomings, then it becomes a tool that will only bring harm. However, if we shift our focus from self-criticism to self-acceptance, then it becomes the helper it was designed to be. Understanding and accepting that we are works in
medium
2,189
Mindfulness, Philosophy, Mental Health, Psychology, Self. progress, with strengths and weaknesses, we can really build the foundation for genuine happiness and enlightenment. The journey towards self-acceptance requires a delicate balance. We must know and understand our shortcomings without letting them define who we are. Imagine a gardener taking care
medium
2,190
Mindfulness, Philosophy, Mental Health, Psychology, Self. of a rose bush—she sees and understands that thorns grow on rose bushes, but her focus is on nurturing the actual rose and helping it bloom—not paying much mind to the thorns or the injuries she gets from them. All she cares about is taking care of the beautiful roses. DON’T DO IT ALONE Embarking
medium
2,191
Mindfulness, Philosophy, Mental Health, Psychology, Self. on this path of self-acceptance is a very daunting task, especially when you plan on doing it alone. This is where the importance of people you trust and you know love you comes into play. These trusted individuals that will be honest and compassionate will be able to give you much-needed
medium
2,192
Mindfulness, Philosophy, Mental Health, Psychology, Self. constructive criticism. They are not there to judge or condemn you, but to offer gentle guidance and sweet support when you need it. Don’t just seek to "know thyself"; do it with compassion, honesty, and a deep love for who you are. This journey to self-discovery is a lifelong one, armed to the
medium
2,193
Soyutlama, Abstraction, Yazılım, Türkçe. Geçenlerde bir mülakatta sordum abstraction nedir diye. Cevap alamadım. Junior pozisyonu olduğu için normal karşıladım aslında. Sonra kendisine günlük hayattaki manasıyla abstraction kelimesinden ne anlıyorsun diye sordum. Ona da cevap veremeyince, bu kavramların zannedildiği kadar anlaşılmış ve
medium
2,195
Soyutlama, Abstraction, Yazılım, Türkçe. bilinen meseleler olmadığını düşünmeme neden oldu ve bu yazı çıktı karşınıza. Ne kadar da çok çıkıyor karşımıza bu iki kavram yazılım hayatımız boyunca. Hemen hemen her mülakatın, özellikle de OOP kullanan şirketlerin devamlı sorduğu sorulardandır abstraction ve encapsulation kavramlarının ne
medium
2,196
Soyutlama, Abstraction, Yazılım, Türkçe. oldukları ve aralarındaki farklar. Bu kadar çok sorulması, bu kavramları değersizleştiren ve sıradanlaştıran bir sorun olarak görülmesin. Çoğu insan terimleri kavramsal düzeyde bilmiyor. Genelde implementasyon açılarından biliyorlar. Mesela, abstraction nedir diye sorun: Sınıfları, arayüzler
medium
2,197
Soyutlama, Abstraction, Yazılım, Türkçe. arkasında saklamaktır… diye cevap alırsınız. Hatta daha somut şekilde bile cevaplar gelir: Arayüzler bir soyutlamadır. Geçenlerde bir mülakatta kendisine Dependency Injection nedir diye sorduğum senior bir mühendis bana Spring framework içinde sınıfların nasıl inject edildiğinden bahsetmeye
medium
2,198
Soyutlama, Abstraction, Yazılım, Türkçe. başladı. Anlaşılan ilk defa DI ile orada tanıştı ve bunu formülize edip ortaya genel bir kavram çıkaramadı. Terimler, kendilerini oluşturan sebep ve sonuçlar zaviyesinden anlaşılmayınca, bu şekilde ki cevaplar kaçınılmaz oluyor. Bana insanı anlat deyince, yakın arkadaşı Ali’yi anlatması ve onunla
medium
2,199
Soyutlama, Abstraction, Yazılım, Türkçe. ne kadar da iyi zaman geçirdiğinden bahsetmesi gibi bir durum bu aslında. Nedir Abstraction Yazılım kariyerim boyunca keşfettiğim en değerli şeyin abstraction olmasından dolayı, ondan başlayacağım anlatmaya. Yazılımdaki manasını bir kenarı koyalım. Nedir aslında abstraction? Kainattaki tüm varlığın
medium
2,200
Soyutlama, Abstraction, Yazılım, Türkçe. üzerine bina edildiği bir kavramdır o. Varlığı anlamamızı mümkün kılan müthiş bir olay abstraction. Kullandığınız her kelimeyi ve hissettiğiniz her varlığı çepeçevre sarmıştır aslında. Halbuki ne kadar da az biliniyor değeri! İlimler abstraction sayesinde var oldu. İnsanoğlu abstraction sayesinde
medium
2,201
Soyutlama, Abstraction, Yazılım, Türkçe. devamlı gelişti. En büyük aşkların arkasında abstraction vardı. Çocuğunuza karşı hissettiğiniz o tanımsız şefkat ve sevgiyi sımsıcak kolları ile sarmalayan, abstraction’tan başkası değildi. Eğer abstraction olmasaydı, şu an sizinle burada konuşamıyor olurduk. Hayat söner, varlık yok olur, ve mânâ
medium
2,202
Soyutlama, Abstraction, Yazılım, Türkçe. anlamsızlaşmaya başlardı. Bu kadar önemli olayların arkasındaki bu kavramın çok basit bir tanımı var aslında: Bir varlık ya da sistemi incelerken, fiziksel, mekansal, ve zamansal nitelikleri içinden ilgimizi çekmeyen kısımları ayıklamak sureti ile sadece işimize yarayan kısımlara odaklanmak.
medium
2,203
Soyutlama, Abstraction, Yazılım, Türkçe. Abstraction olmasaydı matematikte hiç bir formül hayat bulamazdı. Genellemeler yapamaz, varlığı anlayamaz ve kaybolur giderdik. Sanat var olmazdı. Ne kaldı ki geriye? Şimdiye kadar soyut düzlemde anlattığım herşeyi somut akla indirgemek için bir örnek vereyim. “Türkler” kelimesi bir soyutlamadır.
medium
2,204
Soyutlama, Abstraction, Yazılım, Türkçe. Altına milyonlarca insan girer. Ama bireysel temelde birbirlerinden yüzlerce hatta binlerce farkı olan bu insanların, ortak olan bazı taraflarını almak sureti ile onları kategorize etmek, işte bu bir abstractiondır. Daha açık konuşmak gerekirse, aynı coğrafya, dil, ve kültürü paylaşmalarını alıp,
medium
2,205
Soyutlama, Abstraction, Yazılım, Türkçe. diğer tüm taraflarını göz ardı etmektir buradaki abstraction. Türkler deyince hanginizin aklına bu insanların aslında hepsinde ortak olan diğer özellikler geldi? Mesela hepsinin bağırsaklarının olması, hepsinin böbreklere sahip olması, yemek yerlerken tükürük bezlerinden salgılanan kimyasallar ile
medium
2,206
Soyutlama, Abstraction, Yazılım, Türkçe. nişastayı daha ağızlarından itibaren sindirime başlamaları… Kim düşündü bu kısımları? Peki abstraction ile sahip olduğumuz bu güç hiç var olmasaydı? Türkler demek sureti ile bir kelime ile anlatabildiğiniz bir kavramı söylemek için ne kadar da çok şey söylemeniz gerekirdi, farkında mısınız? Hatta o
medium
2,207
Soyutlama, Abstraction, Yazılım, Türkçe. çok şey bile başka abstract (soyut) ifadelerden oluşacağı için, konuşmanız imkansız hale gelirdi. Hatta düşünemez olurduk. İlim böyle bir şey aslında. Avam bir insan ile alim bir insanın Türk kelimesinden anlayacağı şeyler çok farklı olacaktır. Soyut bir kavramın arkasındaki hakikatleri ne kadar
medium
2,208
Soyutlama, Abstraction, Yazılım, Türkçe. çok bilirseniz, o kadar bilgilisiniz demektir. Avam bir insan, Türk kelimesini duyunca, kendi köyünde, şehrinde, ülkesinde yaşayanlar ve beraber döner yedikleri insanları görür. Alim ise onların sosyo-kültürel ve sosyo-ekonomik benzerliklerini, tarihlerini, kültürel referanslarındaki
medium
2,209
Soyutlama, Abstraction, Yazılım, Türkçe. ortaklıklarını, dillerini, bakış açılarını, vs. görür ve bunlar üzerinden yorumlarını yapar. Bir kitap, şimşeklerden bahsederken, onları bulutları aşılayan ve yağmur yağmasına neden olan bir olay olarak anlatır; bundan ben, çamaşırlar ıslanacak, gideyim de toplayayım manasını çıkarırım, bir alim
medium
2,210
Soyutlama, Abstraction, Yazılım, Türkçe. ise bundan atomları, eletronları, bulutların dinamiğini, vs. görür ve mest olur. İşte okumak ve öğrenmek her gün karşımızda abstract (soyut) olarak boy gösteren olayların arkası dediğimiz implementasyon detaylarını (nasılını ve hatta nedenini) anlamak içindir. Ellerimi her gün yıkadığım ve bana
medium
2,211
Soyutlama, Abstraction, Yazılım, Türkçe. göre tek kullanım amacı temizlik ve bolca köpürmek olan sabunun, çalışma mantığını anladığım zaman, varlığını bile göremediğim küçük parçacıkların bu kadar akıllı bir çalışma mekaniğine sahip olması karşısında hayranlığımı ve heyecanımı gizlebildiğimi zannetmiyorum. En büyük aşklar bile abstraction
medium
2,212
Soyutlama, Abstraction, Yazılım, Türkçe. sayesinde var olur dedim. Hanginiz sevdiğine bakarken, midesini, böbreklerini, alyuvarlarını, su içerken yemek borusundan suyun akıp sindirimine karışmasını, vs. görüyor ve bunlara aşık oluyor? Ya da kaçınız onu bu özelliklerinden soyutlayıp, güzel konuşmasına, gülümsemesine, bakışlarına bakarak
medium
2,213
Soyutlama, Abstraction, Yazılım, Türkçe. seviyor? Bir cekete bakın. İçindeki ipliği, düğmeleri, dokuması, boyası, cepleri, vs. ile onlarca ve yüzlerce küçük ve birbirleri ile tamamen alakasız parçalardan oluşuyor. Ama hepsi bir amaç uğruna bir araya geliyor. Bizler de, uğruna bir araya geldikleri bu amaç açısından onlara bakıyor ve tüm bu
medium
2,214
Soyutlama, Abstraction, Yazılım, Türkçe. parçalara bir isim veriyoruz: Ceket. Bu mantığı çok iyi anlayın. Çünkü bu ufacık paragrafta anlattığım mantık, abstraction’ın yazılımda ne manaya geldiğini anlatıyor. Bir spor takımının taraftarlarına bakın. Hepsi farklı hikayelerin bambaşka oyuncuları aslında. Ama ortak bir hedefleri var:
medium
2,215
Soyutlama, Abstraction, Yazılım, Türkçe. Takımlarının başarılı olmaları. Paylaştıkları bu ortak noktadan bu insanları inceliyor, farklılıklarını ve diğer benzerliklerini bir kenarı koyuyor, ve hedeflerinin ortaklığından dolayı onlara taraftar diyoruz. Çünkü onlar takımlarının kazanmasına taraftarlar… Yukarıdaki resme bakın. Ev ile alakalı
medium
2,216
Soyutlama, Abstraction, Yazılım, Türkçe. binlerce detayın silinip, sadece belli bir kısmını göstermek ile çizildiğini göreceksiniz. Böyle olmasa resim çizebilir miyiz? Harflere bakın. Onlar aslında seslerin birer soyutlamasıdır. “A” sesini çıkarırken, ses tellerimizin sebep olduğunu titreşimlerin havanın titreşmesiyle ilerleyip kulak
medium
2,217
Soyutlama, Abstraction, Yazılım, Türkçe. zarımıza çarpıp, sonra beynimize elektrik sinyalleri olarak giden tüm bu mekanik olayın en yalın soyutlamasıdır belki “A” ve “a” harfleri. Meydana gelen bu tüm fiziksel olayların varlık amacında ki ortak noktalardan bir tanesi A sesinin var olmasıdır. Biz de onu A harfi ile kağıt üzerinde aslında
medium
2,218
Soyutlama, Abstraction, Yazılım, Türkçe. bir resim olarak gösteriyoruz. Araba kullanmanıza bir bakın: Bir direksiyon, iki pedal, ve bir vites. Arkada çalışan onca parçanın ortak noktası işte bunlar. Yüzlerce parçanın var olma amacı, bizim görebildiğimiz gaz ve frenin çalışmasını sağlamak. Dolayısıyla bir kaç parça ile soyutlanmış devasa
medium
2,219
Soyutlama, Abstraction, Yazılım, Türkçe. bir mühendislik harikası… Ya da tüm bunları göz ardı edip, güç açısından bakabilirsiniz. Bir at ile bir motor arasında ki benzerlikler güçtür. Birisi bir beygir gücünde, diğer 150. Her gün kullandığımız dürüstlük, ahlak, terbiye gibi ifadeler aslında kendilerini oluşturan onlarca davranışın ortak
medium
2,220
Soyutlama, Abstraction, Yazılım, Türkçe. noktasını anlatan soyutlamalardır. Daha binlerce, yüzbinlerce, milyonlarca örnek her an yanımızdan ve içimizden geçip gidiyor. Ne kadar müthiş, ne kadar sade, ne kadar alçak gönüllü, ne kadar hayattar, ne kadar muhteşem bir kavramdır abstraction. Ne kadar vefalı bir dost ve ne kadar sağlam bir
medium
2,221
Soyutlama, Abstraction, Yazılım, Türkçe. omuz. Yazılımda Abstraction Yazılımcılar olarak bizlerin kullandığı abstraction ise şimdiye kadar anlattıklarımın içinde küçücük bir yer alıyor. Farklı katmanlar içinde soyutlamanın kullanılmadığı hemen hemen hiç bir yer yok gibidir. Çok basit bir örnek vereyim. Sizce aşağıda ki bir satırlık bir
medium
2,222
Soyutlama, Abstraction, Yazılım, Türkçe. kod abstraction içerir mi? Durun ve şimdiye kadar anlattıklarım ile olaya bakın: string hello = "world"; Yukarıda hiç interface yok, ya da class, ya da inheritance. Ama abstraction dağ gibi duruyor tam orada. Hem de birden fazla. Bunu üzerine saatlerce konuşabilirim. Ama kısa anlatmaya çalışayım:
medium
2,223
Soyutlama, Abstraction, Yazılım, Türkçe. string bir soyutlamadır. Çünkü string beklentisi ile çalışan verileri soyutlar. Mesela memory içinde nasıl saklanacakları, nasıl okunacakları, diğer veriler ile nasıl etkileşime geçecekleri, operatörlere nasıl tepki verecekleri gibi tüm bu beklentilerin ortak kısmını ifade eder. Bunlar gibi farklı
medium
2,224
Soyutlama, Abstraction, Yazılım, Türkçe. açılardan bir karakter dizisinden beklenenler string olarak soyutlanmıştır. Bunlara davranışsal soyutlama nedir. Çünkü farklı varlıkların ortak davranışlarının ele alınması ile ortaya çıkan soyutlamalar ile ilgilenir. hello bir soyutlamadır. Memory adresini soyutlar. Verini nasıl saklanması
medium
2,225
Soyutlama, Abstraction, Yazılım, Türkçe. gerektiği ve nerede saklanacağı gibi adımları soyutlar. Unutmayın: Alt tarafta çalışan farklı olsalar bile tüm bu kodların bir amacı vardır ve o da hello değişkenin bir memory adresine dönüşmesi ve kendisinin diğer yerlerde referans gösterilmesidir, vs. = (eşit işareti) bir soyutlamadır. Bir
medium
2,226
Soyutlama, Abstraction, Yazılım, Türkçe. verinin atanması adımlarını soyutlar. “world” bir soyutlamadır. Kendisini var eden tüm kodları soyutlar, kendisinin saklanması için kullanılan 010101 soyutlar, oluşturulma ve saklanma sürecini soyutlar. Başka bir koda bakalım. function createAccount(account){ var eligableForCreation = account.age >
medium
2,227
Soyutlama, Abstraction, Yazılım, Türkçe. 18 && account.country === "USA" if(eligableForCreation){ this.pushAccountToCosmosDb(account); }else{ console.log("account is not eligable for opening"); } } Sizce createAccount() fonksiyonu ve eligableForCreation değişkeni bir abstraction mı? Evet. createAccount() içindeki tüm adımlar ilk bakışta
medium
2,228
Soyutlama, Abstraction, Yazılım, Türkçe. birbirlerinden farklı gözükseler bile aslında ortak bir amaç uğrunda oradalar: Yeni bir hesap oluşturmak. Dolayısıyla amaçlarındaki ortaklığı alıp, diğer kısımları göz ardı etmenin adıdır createAccount() fonksiyonu. Bir ceketi oluşturan parçalar gibi. Benzer şekilde eligableForCreation değişkeni
medium
2,229
Soyutlama, Abstraction, Yazılım, Türkçe. kendisine oluşturan parçaların ortak amacını temsil eder. Yaşın 18 den büyük olması ve yaşanılan ülkenin USA olması, hesabı açabilmek demektir. Genelde davranışsal ve amaçsal soyutlamalar karşımıza çok çıkar bu tür kodlarda. Ama kalıtım girince, başka soyutlama katmanlarında, farklı soyutlama
medium
2,230
Soyutlama, Abstraction, Yazılım, Türkçe. çeşitleri ortaya çıkabilir: class Animal{ public int Length {set;get;} public string Gender {get;set;} } class Dog: Animal{ public int TailLength {get;set;} } class Dolphin: Animal{ public string SpeedInWater {get;set;} } Yukarıda uydurduğum sınıflarda, Animal daha çok karakteristik bir abstraction
medium
2,231
Soyutlama, Abstraction, Yazılım, Türkçe. sağlıyor. Köpek ve Yunus karaketlerinin daha specific kısımlarını göz ardı edip, her ikisinde de ortak olan uzunluk ve cinsiyet gibi kısımları ortaya sunuyor. Ama aşağıdaki örnekte daha çok davranısşal ve fonksiyonel bir abstraction göreceksiniz: interface IAnimal{ public void Move(); } class Dog:
medium
2,232
Soyutlama, Abstraction, Yazılım, Türkçe. Animal{ public void Run(); } class Dolphin: Animal{ public void Swim(); } Bunları yaparken, hitap ettiğiniz asıl kitle, bu sınıfları kullacak olan diğer insanlar. Arabalarda ki gaz ve fren gibi kısımlar ile soyutlanan binlerce parça, arabayı nasıl daha kolay kullanılabilir hale getirdiyse,
medium
2,233
Soyutlama, Abstraction, Yazılım, Türkçe. yazılımda da abstraction benzer etkiyi hem sizin için hem de sınıflarınızı kullanacak diğer mühendisler için yapar. Eğer mühendisler, arabanın nasıl çalıştığını bildiklerinden dolayı, onları üretirken herkesi kendileri gibi düşünüyor olsalardı, o zaman araba süren insan sayısı şimdikinin sizce
medium
2,234
Soyutlama, Abstraction, Yazılım, Türkçe. kaçta kaçı kadar olurdu? Benzer şekilde, eğer yazılımda, abstraction çok gelişmiş bir konsept olmasaydı, şu an çoğumuzun 010101 diye kod yazıyor olurduk. Ya da biraz daha ileri gidelim, assembly ile can çekişmek zorunda kalırdık. Özetlemek gerekirse: Farklı kod parçalarının kompleks kısımlarını,
medium
2,235
Soyutlama, Abstraction, Yazılım, Türkçe. sahip oldukları ortak davranışlar, amaçlar, karakteristik özellikler arkasında saklamak sayesinde daha anlaşılır ve kolay kullanılabilir kod yazmaktır abstraction. Bir de Encapsulation vardı! Abstraction dışarıdan bakan içindir demiştik. Encapsulation ise tam tersi. Encapsulation, motor
medium
2,236
Soyutlama, Abstraction, Yazılım, Türkçe. üreticilerinin onu kaporta ve motor kapakları ile koruma içgüdüsüdür. Encapsulation evlerimizde ki kapı ve perdelerdir. Encapsulation beynimizi çevreleyen kafatasıdır. Encapsulation, sınıfımızı başkalarının yanlış kullanımlarımdan korumak için kontrolsüz değişime kapamaktır. Sınıfımızın içeriğini
medium
2,237
Soyutlama, Abstraction, Yazılım, Türkçe. deterministic tutabilmek için koruruz onu. Aşağıda ki örneği bir inceleyin, yeterli olacaktır. class AccountCreator{ public int Age; private string _country; public void CreateAccount(Account account){ this.Age = account.Age; // Simulate some long running task with Thread.Sleep Thread.Sleep(10000);
medium
2,238
Soyutlama, Abstraction, Yazılım, Türkçe. this._country = account.Country; var accountEligible = CheckAge(); } private bool CheckAge(){ if(_country == "USA"){ this.Age++; return this.Age > 18; } } } static void Main(string[] args){ var accountCreator = new AccountCreator(); var account = getAccountFromAzure();
medium
2,239
Math, Differentiation, Mathematics, Engineering, Differential Equations. Photo by Fred Kearney on Unsplash Overview Throughout this series, I explained several techniques to solve a curve-fitting problem. All those techniques can also be applied to more complex models. ODEs are an excellent tool to model and predict processes, while partial differential equations (PDE)
medium
2,241
Math, Differentiation, Mathematics, Engineering, Differential Equations. are excellent tools to model spatiotemporal phenomena. Defining and solving the model Developed in 1822 the heat equation describes the distribution of heat over time in a solid medium. Proposed by Joseph Fourier the heat equation is a spatial case of the diffusion equation. And for only one
medium
2,242
Math, Differentiation, Mathematics, Engineering, Differential Equations. spatial dimension the heat equation can be written as: Where x is the spatial dimension, t is the temporal dimension, u is the temperature. To solve this equation, we are going to use the method of lines(MOL). The method of lines formulates a PDE into an ODE system and that system can be solved
medium
2,243
Math, Differentiation, Mathematics, Engineering, Differential Equations. with standard ODE integrators. To change the PDE to an ODE system, first, we take the finite difference approximation of the derivative in the spatial domain yielding: It can also be noticed that the last equation in the system represents the boundary condition of the original PDE. Using that last
medium
2,244
Math, Differentiation, Mathematics, Engineering, Differential Equations. piece of information the PDE can be solved. Once the equation is solved there are several ways the solution can be plotted, the following shows some common representations of the solution, however, an interpolation between the lines can be performed to create a 2D interpolation function to have a
medium
2,245
Math, Differentiation, Mathematics, Engineering, Differential Equations. 2D function. Montecarlo simulation With the method developed in a previous post, we can estimate the relationship between the different parameters in the model, as well as the confidence intervals of the parameters. Those two objectives can be obtained by performing a Montecarlo simulation. In
medium
2,246
Math, Differentiation, Mathematics, Engineering, Differential Equations. basic terms, we generate a library of data: And to that data, we apply the fitting algorithm previously developed. Then we obtain a library of parameters that can be analyzed to determinate the confidence interval of the parameter, the distribution of the parameter, and the relationship between
medium
2,247
Math, Differentiation, Mathematics, Engineering, Differential Equations. parameters. All that information can be used to select a model that describes the phenomena in a deterministic manner. Through this series, I just explained several basic techniques to analyze and fit models based on differential equations. It can be noticed that the models do not have an explicit
medium
2,248
Math, Differentiation, Mathematics, Engineering, Differential Equations. form, so the use of numerical methods is a must to solve them. The complete code for this analysis can be found in my Github by clicking here. And in the next post of this series, I will show in-depth how to select and optimize the method used for numerical integration.
medium
2,249
Earth Science, Reservoir, Geo Modeling, Geostatistics, Stochastic Modelling. Introduction Stohastic object-based modeling of facies is an effective approach to spatial modeling proposed by Clayton V. Deutsch about two decades ago. Initial algorithms were implemented on Fortran programming language and were quite popular in the geomodeling society. Moreover, such methods
medium
2,250
Earth Science, Reservoir, Geo Modeling, Geostatistics, Stochastic Modelling. became a part of modern tools for geologists. Surprisingly, I didn’t find open-source version for FluvSIM algorithm in Python programming language. And in this post I will describe how it could be implemented in Python. At the end of the post the link to the 2D Geo Channels dataset will be
medium
2,251
Earth Science, Reservoir, Geo Modeling, Geostatistics, Stochastic Modelling. provided. Elements of a channel geometric object Channel object consists of an initial center line angle (the current direction, which is defined as angle between Y axis and a direction vector), a sine phase shift, a source location drift and set of connected segments. Each segment specified as
medium
2,252
Earth Science, Reservoir, Geo Modeling, Geostatistics, Stochastic Modelling. sine function with its own center line angle between Y axis and a direction, an amplitude and a length along direction. Segment center line is defined as center line + delta, where delta has Gaussian normal distribution. Segment amplitude and length are random variables of uniform distribution with
medium
2,253
Earth Science, Reservoir, Geo Modeling, Geostatistics, Stochastic Modelling. lower and upper border. Source location drift is random deltas across X and Y coordinates of a channel source. When it comes to a sine phase shift, it is a random variable which is picked uniformly from (0, 180) option. Basic transformations To generate next channel segment we translate the
medium
2,254
Earth Science, Reservoir, Geo Modeling, Geostatistics, Stochastic Modelling. coordinate system to new one, with the center in a segment start point and with rotation by a center line angle. Single channel generation Given parameters for channel object random vars, a source location and a number of segments, a program iteratively performs following steps for each new
medium
2,255
Earth Science, Reservoir, Geo Modeling, Geostatistics, Stochastic Modelling. segment: Compute center line angle delta, segment length and amplitude as random vars. Compute rate of phase changing such as rate multiplied on segment length would equal to full period of sine (180 degrees or pi radians). Traversing along Y axis in local coordinate system of segment, find curve
medium
2,256
Earth Science, Reservoir, Geo Modeling, Geostatistics, Stochastic Modelling. points with step 1 along Y axis and X as sine function. Using segment point from previous step (source location, initially), perform X, Y curve points transformation to coordinate system of a channel and draw a curve. Add a sink point of a current channel segment to the list with connected segment
medium
2,257
Earth Science, Reservoir, Geo Modeling, Geostatistics, Stochastic Modelling. points. Python implementation provided below: Multiple channels In simulation sources of channels may be distributed accross the canvas with same padding. Code below demonstrates an idea (keep in mind that channels directed from North to South). Results of modeling As you may see on pictires, the
medium
2,258
Earth Science, Reservoir, Geo Modeling, Geostatistics, Stochastic Modelling. object-based stohastic modeling allows simulation of channels with different properties, meandering or strengthened. This approach could be seemlessly integrated in complex pipeline of geological facies maps generation. 2D Channels Dataset Here you may find the 2D Channels dataset with 4500
medium
2,259
Software Development, Software Engineering, Software Testing, Test Automation, Programming. source: pexels 🧪 Why property-based testing? At Promyze, we're convinced that methodologies such as Test-Driven Development (TDD) can really improve the quality of our code. But developers need relevant inputs to ensure our code answers a business requirement. Behavior-Driven Development or Example
medium
2,261
Software Development, Software Engineering, Software Testing, Test Automation, Programming. Mapping sessions help to generate concrete examples of the behavior of a feature. This clearly brings value for developers and allows them to start writing tests and business code. However, our tests usually cover a restricted range of inputs that come from our examples. We assume they are
medium
2,262
Software Development, Software Engineering, Software Testing, Test Automation, Programming. representative enough for our tests. But what if we want to test edge cases? Or if we're not sure that our test is representative? This is where property-based testing comes in. This post is a short intro to this concept. ❓ What is PBT? Property-based testing aims to identify and test invariants:
medium
2,263
Software Development, Software Engineering, Software Testing, Test Automation, Programming. predicates that should be true, whatever the input data are. An invariant is a business rule that can be written as a predicate. A PBT framework will generate random input data and check if the invariant is valid. If one single execution fails, this means the code under test may have some defects
medium
2,264
Software Development, Software Engineering, Software Testing, Test Automation, Programming. in its implementation. But the PBT framework will give you the input data, meaning you can reproduce the problem. PBT is not something new; the first research studies on that topic are from 1994, from Fink & Levitt. 🎓 Illustration with a test case Our platform Promyze is designed for best coding
medium
2,265
Software Development, Software Engineering, Software Testing, Test Automation, Programming. practices sharing. Users can merge two practices if they have the same intention. Each practice can have zero, one, or multiple categories. During a merge, categories of both practices should be merged into the target practice. Here is a simple implementation of this business rule (the
medium
2,266
Software Development, Software Engineering, Software Testing, Test Automation, Programming. mergePractice method) and a unit test written in JS with Mocha and Chai. For simplicity, the code is written in the same file. const chai = require('chai'); var expect = chai.expect; function mergePractice(practice1, practice2) { return { categories:
medium
2,267
Software Development, Software Engineering, Software Testing, Test Automation, Programming. practice1.categories.concat(practice2.categories) }; } describe('Merge two practices', function() { it('should merge categories of the source practices into the target practice', function() { const practice1 = { categories : ["JS"]}; const practice2 = { categories : ["Node"]}; const targetPractice
medium
2,268
Software Development, Software Engineering, Software Testing, Test Automation, Programming. = mergePractice(practice1, practice2); expect(targetPractice.categories).to.eql(["JS", "Node"]); }); }); As you can see, this code does not handle any edge case. The implementation is clearly straightforward with a concat operation. We consider only a typical case with two practices having a single
medium
2,269
Software Development, Software Engineering, Software Testing, Test Automation, Programming. category. 🚀 An implementation of PBT with fast-check Now comes the PBT with fast-check, an open-source framework developed by Nicolas Dubien for Javascript and Typescript. From our example, we can identify two invariants during the merge of two practices: There can't be any duplications in the
medium
2,270
Software Development, Software Engineering, Software Testing, Test Automation, Programming. categories of the target practice. The categories of the target practice should not contain elements that do not appear in the source practices' categories. Here is the implementation of the two predicates. const noDuplicationsPredicate = (targetPractice) => { if (!targetPractice.categories ||
medium
2,271
Software Development, Software Engineering, Software Testing, Test Automation, Programming. !targetPractice.categories.length) { return true; } var uniqueCategories = new Set(targetPractice); return uniqueCategories.size === targetPractice.categories.length; } const targetCategoriesShouldNotContainCategoriesNotInSourcePractices = (sourcePractice1, sourcePractice2, targetPractice) => { if
medium
2,272