SOLID principles, and SOLID in frameworks (part 1)
Solid principles contains five best praticles when construct source code by OOP methodology. Single responsible principles The single-responsibility principle (SRP) is a computer-programming pri...
Solid principles contains five best praticles when construct source code by OOP methodology. Single responsible principles The single-responsibility principle (SRP) is a computer-programming pri...
How to build a Shortened URL By Ruby On Rails like Bitly or Twitter Give a website shortenedUrl to convert longURL to short URL with alpha lexigraphy encoded/decoded response to User. Give two e...
Delegation && Dependency Injection Delegation Ruby’s standard library provides us SimpleDelegator as an easy way to implement the decorator pattern. You pass in your object to the construct...
Loop in decrease mode Python In Python, decrement is not clearly supported by syntax. By default, the loop is used to iterate over the sequence: a list, a tuple, a dictionary, a set, or a string. F...
Repository pattern Khái niệm Design Pattern là một kỹ thuật trong lập trình hướng đối tượng, nó khá quan trọng và mọi lập trình viên muốn giỏi đều phải biết. Được sử dụng thường xuyên trong các ngô...
Phương thức Softbank payment bằng PHP Tôi sẽ bắt đầu với nội dung bài viết luôn, với lý do là có biết bao phương thức payment và nếu bạn làm việc ở thị trường Nhật thì softbank payment là một phươn...
Jekyll admin editor Jekyll admin được cung cấp bới Opensource, với hệ thống support khá khiêm tốn hiện tại jekyll-admin đang dừng lại version 0.11.0 nhưng nếu chỉ là khiếm tốn thì tôi sẽ không giới...
Controller def get_data_notification per_page = 5 page = params[:page].present? ? params[:page].to_i : 1 all_notiff = NotificationServices::GetList.new(current_account).run() @to...
textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[...
By HTML5 and Javascript eg, a submit form Using setCustomValidity function by default js and oninput="checkPasscode(); , required on input field. <form> <label for="passcode">Enter Pa...