Java – String Pool

The String Pool

Yeni Java programcılarının kafasını karıştırabilecek nitelikte bir optimizasyondan bahsedeceğim. Buna String Pool diyorlar.
En çok kullanılan objelerden biri olan “String”lerin kendi kendilerini optimize etmesi ve daha az yer kaplamasıdır.
Bahsedilmesi gereken önemli bir nokta şudur ki:
Java bunu sadece çift tırnak kullanarak tanıtım yaptığınızda (otomatik olarak) uyguluyor.
Kod parçalarıyla konuyu açıklayalım. Düz anlatım pek başarılı olmuyor.

Buradan şu output’u alırsınız. Continue reading “Java – String Pool”

You Can’t Be Effective When You’re Too Smart For Your Own Good

Congratulations, smartypants, you’ve got the highest IQ in the room–too bad it’ll make you a pain to work with. Here are 6 techniques for dealing when your genius just gets in the way.

I have had the good fortune to work for, with, and coach many brilliant people. I have watched many of them struggle with being smarter and faster than everyone around them.

Being the smartest one in the room is not easy. (Really.) Continue reading “You Can’t Be Effective When You’re Too Smart For Your Own Good”

Kindle Weather Display

Ever since I first learned about electronic paper, I’ve thought it would be perfect to display some sort of regularly updated, but not real-time, data such as the current date, an agenda, or the weather forecast. Unfortunately, e-paper displays have always cost more than I was willing to spend on such a project. However, with the price of Amazon’s cheapest Kindle recently dropped to $69, I decided e-paper displays were finally cheap enough for me to pursue such a project: an e-paper based weather forecast display.

Continue reading “Kindle Weather Display”

Çalışma Hayatının Genel Prensipleri – A.Fuat Başgil

Çalışma hayatının genel prensipleri:
Her işin ve mesleğin kendi bünyesine mahsus çalışma ve işleme usul ve kuralları vardır. Bunları meslek sahipleri bilir. Bir de, bedeni ve fikri her çeşit iş ve çalışma hayatının ve başarılı olmanın bazı genel ve gerçekçi kuralları vardır. Bunlardan bazıları şöyledir:

* Çalışmak için müsait vakit bekleme. Her zamanı çalışmak için müsait bil. Kendine göre müsait vakit beklersen, o hiçbir zaman gelmez.

* Çalışmak için müsait yer arama. Her yeri çalışmak için müsait bil. Kendine göre müsait yer beklersen, o yeri hiç bulamayabilirsin.

* Bir günde ve bir zamanda yapman gereken bir işi, bir dersi, bir vazifeyi yarına erteleme. Çünkü her günün işi kendine yeter.

* Bir zamanda yalnız tek bir işi yap, yalnız bir ders, bir kitap, hatta bir konu üzerinde çalış. Tâ ki, dikkatin ve kuvvetin yayılıp zayıflamasın. Bir zamanda birden fazla işi yapayım diyen hiçbirini tam ve temiz yapamaz. Dünyaca tanınmış, en büyük İslam âlimlerinden biri olan İmam-ı Gazali’ye İhya-i Ulum adlı muazzam eserini nasıl bir çalışma ile vücuda getirdiğini sormuşlar: “Bir zamanda yalnız bir konu, bir mesele üzerinde çalıştım” demiş.

* Başladığın bir işi bitirmeden başka bir işe başlama. Yarıda kalan iş başlanmamış demektir.
Continue reading “Çalışma Hayatının Genel Prensipleri – A.Fuat Başgil”

Darksiders II – Combat Guide

This section will help you familiarize yourself with the game’s combat system and mechanics.

THE PALE RIDER’S CONSTITUTION

Death’s health is represented by the green bar in the top left of the screen. If it is drained completely, you’ll be forced to restart to the previous checkpoint. Time your attacks so you’ll have time to react and evade hostile attacks.

IGN_025.jpg

The game also allows Death to find and wear various pieces of equipment, which provides additional protection and reduce the damage inflicted to him. There are even some equipment that has the “Regen” property. This type of gear will slowly regenerate Death’s health over time. Some even have the ability to restore a bit of HP by defeating enemies. In addition, Death can use certain pieces of equipment to block enemy attacks. Keep these properties in mind when selecting your equipment. Continue reading “Darksiders II – Combat Guide”

Tatil bitti mi?!

Eveeeeet. Uzun bir tatilden sonra bir kez daha okul başlıyor.  Her ne kadar istemesem de, yine okula gidip aynı saçmalıklarla uğraşmam gerekecek. Üstüne üstlük, böyle güzel uzun bir tatilden sonra okul hiç çekilmez ki..

Tatil yapmaya iyi alışmıştım. Şimdi işin yoksa git matematikle ingilizceyle uğraş tekrar…

Neyse….

-Ne yapmıyoruz?

-Kendimizi olumsuzlukları düşünerek boğmuyoruz.

Bu da geçer…

Yok mu bir tane pozitif yön yaa? 😥