Skip to main content

Home/ Groups/ Larvata
1More

dspinellis/unix-history-repo: Continuous Unix commit history from 1970 until today - 1 views

  •  
    "Continuous Unix commit history from 1970 until today"
2More

Using Services to Keep Your Rails Controllers Clean and DRY - 0 views

  • I’ll typically create an actions folder for things like create_invoice, and folders for other service objects such as decorators, policies, and support. I also use a services folder, but I reserve it for service objects that talk to external entities, like Stripe, AWS, or geolocation services.
  • You can create your own actions, decorators, support objects, and services.
10More

Service objects in Rails will help you design clean and maintainable code. Here's how. - 0 views

  • Services has the benefit of concentrating the core logic of the application in a separate object, instead of scattering it around controllers and models.
  • Additional initialize arguments might include other context information if applicable.
  • And as programmers, we know that when something can go wrong, sooner or later it will!
  • ...7 more annotations...
  • we need a way to signal success or failure when using a service
  • what ActiveRecord save method uses
  • if the services role is to create or update rails models, it makes sense to return such an object as result.
  • utility objects to signal success or error
  • services will be used on the boundary between user interface and application
  • All the business logic is encapsulated in services and models
  • how we can use Service Objects, Status Objects and Rails’s Responders to produce a nice, consistent API
5More

Slimming Down Your Models and Controllers with Concerns, Service Objects, and Tableless... - 1 views

  • The single responsibility principle asserts that every class should have exactly one responsibility. In other words, each class should be concerned about one unique nugget of functionality
  • fat models are a little better than fat controllers
  • when every bit of functionality has been encapsulated into its own object, you find yourself repeating code a lot less.
  • ...2 more annotations...
  • objects with a single responsibility can easily be unit tested
  • a vanilla Rails 4 app directory contains models, views, controllers, and helpers does not mean you are restricted to those four domains.
1More

AppleDesignResources/SanFranciscoFont - 1 views

  •  
    The San Francisco font by Apple used in the Apple Watch, iOS 9, and OS X El Capitan. Originally found at https://developer.apple.com/watchos/download/ 如果沒Apple developer帳號,但需要安裝San Fancisco字型,可先使用
1More

從ES6開始的JavaScript學習生活 · GitBook - 2 views

  •  
    "這是一本JavaScript程式語言的中文入門書籍。市面上或網路上,有很多的JavaScript的入門書籍,或是教學文章,與它們所不同的比較點如下: 符合中文使用者學習的使用範例 以ECMAScript 6(ES6, ES2015)標準為基礎寫成 加入了以中文拼音英文字詞的方式,強調程式語言中的英文 加入風格樣式指引(主要為Airbnb所製作)的提示 儘可能涵蓋了大部份常使用到的JavaScript語法與用法 如果你對JavaScript程式語言有興趣,你可以參考這本書,本書的閱讀對象並沒有預設任何基礎"
1More

IPFS is the Distributed Web - 0 views

  •  
    " A peer-to-peer hypermedia protocol to make the web faster, safer, and more open."
1More

How to Learn Advanced Mathematics Without Heading to University - Part 3 - QuantStart - 0 views

  •  
    "In the first and second articles in the series we looked at the courses that are taken in the first half of a four-year undergraduate mathematics degree - and how to learn these modules on your own."
1More

Introducing debugger.html ★ Mozilla Hacks - the Web developer blog - 0 views

  •  
    "debugger.html is a modern JavaScript debugger from Mozilla, built as a web application with React and Redux. This project was started early this year in an effort to replace the current debugger within the Firefox Developer Tools. Also, we wanted to make a debugger capable of debugging multiple targets and functioning in a standalone mode."
1More

/dev/lawyer The MIT License, Line by Line - 0 views

  •  
    " >> law, technology, and the space between All content by Kyle E. Mitchell, who is not your attorney."
1More

I don't understand Python's Asyncio | Armin Ronacher's Thoughts and Writings - 0 views

  •  
    "Recently I started looking into Python's new asyncio module a bit more. The reason for this is that I needed to do something that works better with evented IO and I figured I might give the new hot thing in the Python world a try. Primarily what I learned from this exercise is that I it's a much more complex system than I expected and I am now at the point where I am very confident that I do not know how to use it properly. It's not conceptionally hard to understand and borrows a lot from Twisted, but it has so many elements that play into it that I'm not sure any more how the individual bits and pieces are supposed to go together. Since I'm not clever enough to actually propose anything better I just figured I share my thoughts about what confuses me instead so that others might be able to use that in some capacity to understand it."
1More

drduh/macOS-Security-and-Privacy-Guide: A practical guide to securing macOS. - 1 views

  •  
    "A practical guide to securing macOS."
1More

Dply - 0 views

shared by crazylion lee on 27 Nov 16 - No Cached
  •  
    "Create a cloud server FREE for 2 hours, add more time as you need it."
1More

CSS Reference - A free visual guide to the most popular CSS properties. - 0 views

  •  
    "A free visual guide to CSS"
1More

Home | Upskill - 0 views

  •  
    "Premium Web Development Courses"
1More

Applying the Linus Torvalds "Good Taste" Coding Requirement - Medium - 0 views

  •  
    "Applying the Linus Torvalds "Good Taste" Coding Requirement"
« First ‹ Previous 801 - 820 of 1422 Next › Last »
Showing 20 items per page