— Слушай, ты разработчик. Ответь, почему разработчики всегда неправильно оценивают время на создание программ?
— Представь что тебе надо разгрузить машину, сколько времени это займет?
— Пару часов
— Это камаз
— 8 часов
| // | |
| // debounce-throttle.swift | |
| // | |
| // Created by Simon Ljungberg on 19/12/16. | |
| // License: MIT | |
| // | |
| import Foundation | |
| extension TimeInterval { |
| @interface NSObject (Debounce) | |
| - (void)debounce:(SEL)action delay:(NSTimeInterval)delay; | |
| @end |
— Слушай, ты разработчик. Ответь, почему разработчики всегда неправильно оценивают время на создание программ?
— Представь что тебе надо разгрузить машину, сколько времени это займет?
— Пару часов
— Это камаз
— 8 часов
| public func storeChatDetailsAsync( | |
| _ item: ChatDetailsInfoType, | |
| callback: @escaping GroupChatDetailsFetchCompletion) | |
| { | |
| self._queue.async | |
| { | |
| [weak weakSelf = self] in | |
| guard let strongSelf = weakSelf | |
| else |
| import FutureKit | |
| extension Promise { | |
| func getCallbackForService() -> ( (Result<T>) -> Swift.Void ) | |
| { | |
| return self.completeWithResult | |
| } | |
| func completeWithResult(result: Result<T>) { |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ContentView | |
| xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="SampleFormsProject.Views.NumbersPadKeyValuePairView" | |
| xmlns:ns_sample_control="clr-namespace:SampleFormsProject.Views;assembly=SampleFormsProject" | |
| > | |
| <ContentView.Content> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ContentView | |
| xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="PracticeDashboard.Views.SalesPipeline.SelectedMonthNumbersPanel"> | |
| <ContentView.Content> | |
| <StackLayout Orientation="Horizontal" BackgroundColor="Blue"> | |
| <BoxView Color="Red" HeightRequest="60"/> |
| namespace PracticeDashboard.PlotBuilders.SalesPipeline | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Helpers; | |
| using global::OxyPlot; | |
| using global::OxyPlot.Axes; | |
| using global::OxyPlot.Series; | |
| using PracticeDashboard.DAL.Models.SalesPipeline; |
| namespace PracticeDashboard.Helpers | |
| { | |
| using DAL.Models; | |
| using DAL.Models.Dashboard; | |
| using Models; | |
| using global::OxyPlot; | |
| using global::OxyPlot.Axes; | |
| using global::OxyPlot.Series; | |
| using System; | |
| using System.Collections.Generic; |
| #import <Foundation/Foundation.h> | |
| @interface TimeBasedUuidGenerator : NSObject | |
| -(NSString*)generateTimeBasedUuid; | |
| -(NSUUID*)generateTimeBasedUuidObject; | |
| @end | |