сұрақ |
жауап |
if you don’t specify the type of value you need, Swift uses type inference to work out the appropriate type. оқуды бастаңыз
|
|
Jeśli nie określisz typu wartości, jakiej potrzebujesz, Swift dokona wnioskowania typu.
|
|
|
If you combine integer and floating point, laterals in an expression, a type of double will be inferred from the context. оқуды бастаңыз
|
|
|
|
|
I inferred from her expression that she wanted to leave. оқуды бастаңыз
|
|
|
|
|
a structure of data that has several parts Tuples group multiple values into a single compound value. оқуды бастаңыз
|
|
|
|
|
the puddles had coalesced into shallow streams оқуды бастаңыз
|
|
łączyć się (w nową formę)
|
|
|
... each of which expresses the same functionality in the more succinct way. оқуды бастаңыз
|
|
... Z których każdy wyraża ten samą funkcjonalność w bardziej zwięzły sposób.
|
|
|
There was a splendid array of food on the table. оқуды бастаңыз
|
|
szyk, uporządkowany zbiór Na stole był wspaniały szyk jedzenia.
|
|
|
However, this is a rather long-winded way to write what is essentially a single expression function. оқуды бастаңыз
|
|
|
|
|
Nonetheless, you can still make the types explicit, if you wish, and doing so is encouraged if it avoids ambiguity for readers of your code. оқуды бастаңыз
|
|
|
|
|
оқуды бастаңыз
|
|
|
|
|
Jo tweeted the picture of herself with the cake with the caption “Cake from my favourite bakery!" оқуды бастаңыз
|
|
|
|
|
оқуды бастаңыз
|
|
|
|
|
because state properties help manage, transient states, like the highlight state of the bottom filter, settings, or a currently selected list item, declare state properties as private, and avoid using them for persistent storage. оқуды бастаңыз
|
|
przemijający, przejściowy
|
|
|
Since then different database vendors implemented SQL in their products with some variations. оқуды бастаңыз
|
|
|
|
|
Ruby allows you to (partially) mitigate this problem by passing a Hash as an argument or one of the arguments. оқуды бастаңыз
|
|
Ruby pozwala ci (częściowo) złagodzić ten problem poprzez przekazanie hasza jako argument lub jeden z argumentów.
|
|
|
Complete the theme‘s design by making the label, more legible and displaying more of the theme’s color. оқуды бастаңыз
|
|
|
|
|
1) concrete objects like stones. 2) SwiftUI provides concrete scenes like WindowGroup оқуды бастаңыз
|
|
|
|
|
could you fetch me my glasses from the other room, please? I have to fetch my mother from the station. оқуды бастаңыз
|
|
|
|
|
if the pain persists, consult a doctor. The cold weather is set to persist throughout the week. оқуды бастаңыз
|
|
|
|
|
You’ll add Codable conformance for the app’s models and write methods to load and save scrums. оқуды бастаңыз
|
|
Dodasz zgodność z Codable dla modeli w aplikacji i napiszesz metody, by ładować i zapisywać scrumy.
|
|
|
That'll be $52.50 altogether, please. I'm not altogether sure I want that. He's bad-tempered, selfish, and altogether an unpleasant man. оқуды бастаңыз
|
|
in total, completely, considering everything
|
|
|
оқуды бастаңыз
|
|
|
|
|
The app displays the guidance string when the associated error occurs. оқуды бастаңыз
|
|
|
|
|
You’ll add a material to create a blur effect behind the view, like inserting a frosted glass layer between the view and its background. оқуды бастаңыз
|
|
|
|
|
MeetingView shows a preliminary arrangement of views, but the central timer view is still a placeholder circle. оқуды бастаңыз
|
|
|
|
|
remainder operator (in Swift) The remainder operator is also known as a modulo operator in other languages. The reminder operator works out how many multiplies of b will fit inside a and return the value that is left over. оқуды бастаңыз
|
|
operator reszty (w Swift)
|
|
|
... which is more concise than the code used in the second example. оқуды бастаңыз
|
|
|
|
|
оқуды бастаңыз
|
|
|
|
|
оқуды бастаңыз
|
|
|
|
|
оқуды бастаңыз
|
|
|
|
|
The tradeoff is that simulated devices run within the Simulator app on your Mac and don’t replicate the performance or features of an actual device. оқуды бастаңыз
|
|
|
|
|
doing everything that you should do оқуды бастаңыз
|
|
robiący wszystko to, co powinien.
|
|
|
If you are new to programming, there will be a lot of new material to digest. оқуды бастаңыз
|
|
|
|
|
Analogies that try to compare programs to objects we are familiar with tend to fall short. оқуды бастаңыз
|
|
|
|
|
subdued lighting, subdued laughter/cheers оқуды бастаңыз
|
|
przytłumione światło, przytłumione dźwięki
|
|
|
The first version of the program was extremely obscure, whereas this last one is almost English. оқуды бастаңыз
|
|
|
|
|
In actuality, it mostly makes finding problems in your programs harder because the system will not point them out to you. оқуды бастаңыз
|
|
W rzeczywistości, to głównie utrudnia znajdowanie problemów w programach, ponieważ system nie wskaże ci.
|
|
|
JavaScript leaves space for a lot of techniques that are impossible in more rigid languages, and as you will see. оқуды бастаңыз
|
|
JavaScript pozostawia miejsce na wiele technik, które nie są możliwe w bardziej sztywnych językach, i jak zobaczysz.
|
|
|
a lot of techniques can be used to overcome some of JavaScript’s shortcomings. оқуды бастаңыз
|
|
wiele technik można użyć do pokonać niektóre z niedociągnięć JavaScript
|
|
|
I believe reading code and writing code are indispensable parts of learning to program. оқуды бастаңыз
|
|
Wierzę, że czytanie kodu i pisanie kodu to niezbędne części nauki programowania.
|
|
|
Try to not just glance over the examples—read them attentively and understand them. оқуды бастаңыз
|
|
Spróbuj nie tylko prześlizgnąć wzrokiem po przykładach - przeczytaj je uważnie i zrozum je.
|
|
|
A typical modern computer has more than 30 billion bits in its volatile data storage (working memory) оқуды бастаңыз
|
|
|
|
|
As soon as you no longer use a value, it will dissipate, leaving behind its bits to be recycled as building material for the next generation of values. оқуды бастаңыз
|
|
|
|
|
оқуды бастаңыз
|
|
|
|
|
it does not add, but it concatenates – it glues two strings together. оқуды бастаңыз
|
|
|
|
|
In cases where you actually have to concern yourself with these values, I recommended treating them as mostly interchangeable. оқуды бастаңыз
|
|
|
|
|
The logical operators && and || handle values of different types in a peculiar way. оқуды бастаңыз
|
|
osobliwy, specyficzny, dziwny
|
|
|
оқуды бастаңыз
|
|
|
|
|
оқуды бастаңыз
|
|
|
|
|
оқуды бастаңыз
|
|
|
|
|
оқуды бастаңыз
|
|
|
|
|
bread and butter = essential part of the work functions are the bread and butter of JavaScript programming. оқуды бастаңыз
|
|
chleb z masłem = istotna część pracy
|
|
|
Each binding has a scope, which is the part of the program in which the binding is visible. оқуды бастаңыз
|
|
Każde powiązanie ma zakres, czyli część programu, w której widoczne jest powiązanie.
|
|
|
for example, this function – which outputs the ingredients needed to make a batch of hummus – has another function inside it. оқуды бастаңыз
|
|
|
|
|
The downside of this is that it is possible that you’ll accidentally pass the wrong number of arguments to functions. And no one will tell you about it. оқуды бастаңыз
|
|
|
|
|
The upside is that this behavior can be used to allow a function to be called with different numbers of arguments. оқуды бастаңыз
|
|
|
|
|
The programmer has to decide on an appropriate balance. оқуды бастаңыз
|
|
|
|
|
But just as we are about to send the farmer the code (along with a hefty invoice), she calls and tells us she’s also started keeping pigs... оқуды бастаңыз
|
|
large, heavy, powerful
|
|
|
It conflates three things—printing, zero-padding, and adding a label—into a single function. оқуды бастаңыз
|
|
combine
|
|
|
оқуды бастаңыз
|
|
|
|
|
Resist that urge. You won’t get any real work done—you’ll just be writing code that you never use. оқуды бастаңыз
|
|
|
|
|
Make sure to keep a tally of the number of customers going in and out. оқуды бастаңыз
|
|
|
|
|
computing) Suitable for processing by a diff program in order to show differences. You’ll use a diffable data source, which updates and animates the user interface when the data changes. оқуды бастаңыз
|
|
podlegający porównywaniu przez program diff
|
|
|
The introduction of this book alluded to the following as a nice way to compute the sum of a range of numbers: console. log(sum(range(1, 10))); оқуды бастаңыз
|
|
|
|
|
Pregnant women often suffer from iron deficiency. оқуды бастаңыз
|
|
Kobiety w ciąży często cierpią na brak żelaza.
|
|
|
оқуды бастаңыз
|
|
|
|
|
Several well-known women have been troubled by stalkers recently. оқуды бастаңыз
|
|
Kilka znanych kobiet było nękanych przez (?) ostatnio.
|
|
|
When it became clear that wasn’t going to be enough, many people balked at the need to use more memory per character. оқуды бастаңыз
|
|
Gdy stało się jasne, że to nie będzie wystarczające, wielu było niechętnych używaniu więcej niż jednemu bajtowi na znak.
|
|
|
There is work underway to add this to the language. оқуды бастаңыз
|
|
|
|
|
I have simply been withholding information about the way JavaScript objects work. оқуды бастаңыз
|
|
Po prostu wstrzymywałem informacje o tym, jak działają obiekty Javascript.
|
|
|
It is the great ancestral prototype, the entity behind almost all objects, Object. prototype. оқуды бастаңыз
|
|
|
|
|
Functions derive from Function. prototype, and arrays derive from Array. prototype. оқуды бастаңыз
|
|
|
|
|
Dr. Carter is an influential member of the board. оқуды бастаңыз
|
|
|
|
|
{table} As we will see in this chapter, this apparently innocuous property brings great power to the language, because it allows us to apply in Lua many powerful programming techniques from the functional-language world. оқуды бастаңыз
|
|
{table} Jak zobaczymy później w tym rozdziale, ta wydawałoby się niepozorna właściwość daje wielką moc.
|
|
|
For instance, in the allwords iterator, the cost of creating one single closure is negligible compared to the cost of reading a whole file. оқуды бастаңыз
|
|
Na przykład, w iteratorze allwords, koszt stworzenia pojedynczego domknięcia jest nieistotny w porównaniu do kosztu odczytania pliku.
|
|
|
However, in a few situations this overhead can be undesirable. оқуды бастаңыз
|
|
Aczkolwiek, w pewnych sytuacjach ten naddatek może być niepożądany.
|
|
|
Using the underscore after: d avoids clobbering registers or the clipboard. оқуды бастаңыз
|
|
|
|
|
I can get down on this badboy (The Primeagean about dev mouse he got from a box) оқуды бастаңыз
|
|
|
|
|
(about array length counted to first nil) For several applications this restriction is not a hindrance, such as when all elements in the array have a fixed type. оқуды бастаңыз
|
|
(o długości tablicy liczonej do pierwszego zera) W przypadku kilku zastosowań to ograniczenie nie stanowi przeszkody, na przykład gdy wszystkie elementy tablicy mają stały typ.
|
|
|
The crux of each test is a call to assertEqual() to check for an expected result. оқуды бастаңыз
|
|
|
|
|
оқуды бастаңыз
|
|
a permanently fixed piece of furniture in a house, such as a bath, that would not be taken by someone when moving to a new home.
|
|
|
used to describe a person or action that is very dishonest and unfair оқуды бастаңыз
|
|
The low down on fixtures.
|
|
|
something that you say when you tell someone about something surprising that happened: lo & behold! I am a YAML comment! оқуды бастаңыз
|
|
oto i oto (humorystyczne)
|
|
|
making the irreversible possible оқуды бастаңыз
|
|
|
|
|
The code here should be idempotent so that it can be executed at any point in every environment. оқуды бастаңыз
|
|
idempotentny (niezmieniający wyniku przy kolejnych powtórzeniach) Kod tutaj powinien być idempotentny, aby można go było wykonać w dowolnym miejscu i w każdym środowisku
|
|
|
If you have created namespaced routes, form_with has a nifty shorthand for that too. оқуды бастаңыз
|
|
Jeśli utworzyłeś trasy z przestrzenią nazw, form_with ma również na to fajny skrót.
|
|
|
Controller is responsible for orchestrating the whole process of handling a request in Rails, though it normally hands off any heavy code to the Model. оқуды бастаңыз
|
|
Kontroler jest odpowiedzialny za koordynację całego procesu obsługi żądania w Railsach, chociaż zwykle przekazuje Modelowi każdy skomplikowany kod.
|
|
|
оқуды бастаңыз
|
|
okropne programistyczne przyzwyczajenia!
|
|
|
Depending on the use case, it's usually a good idea to create a non-unique index and optionally a foreign key constraint on the author column for the books table. оқуды бастаңыз
|
|
W zależności od przypadku użycia zazwyczaj dobrym pomysłem jest utworzenie nieunikalnego indeksu i opcjonalnie ograniczenia klucza obcego w kolumnie autora tabeli książek.
|
|
|
For example, consider a medical practice where patients make appointments to see physicians. оқуды бастаңыз
|
|
Rozważmy na przykład praktykę lekarską, w której pacjenci umawiają się na wizyty u lekarzy.
|
|
|
He left the routine checks to one of his subordinates. оқуды бастаңыз
|
|
|
|
|
If for some reason you change the value of an owner model's primary key, and do not also update the foreign keys of the counted models, then the counter cache may have stale data оқуды бастаңыз
|
|
czerstwy, nieświeży (tu: nieaktualny) Jeśli z jakiegoś powodu zmienisz wartość klucza podstawowego modelu właściciela i nie zaktualizujesz także kluczy obcych zliczonych modeli, pamięć podręczna licznika może zawierać nieaktualne dane
|
|
|
If you’re already accustomed to iTerm keybindings, you need to learn and switch to tmux keybindings, which are cumbersome. оқуды бастаңыз
|
|
Jeśli jesteś już przyzwyczajony do skrótów klawiszowych iTerm, musisz się nauczyć i przejść na skróty klawiszowe tmux, które są kłopotliwe.
|
|
|
... how does the editor, which from henceforth we will call „client” оқуды бастаңыз
|
|
... jak radzi sobie edytor, którego odtąd będziemy nazywać „klientem”
|
|
|
(HTTP 2) This allows us to focus more on coding and less on intricate toolchain configurations. оқуды бастаңыз
|
|
Dzięki temu możemy bardziej skupić się na kodowaniu, a mniej na skomplikowanych konfiguracjach łańcucha narzędzi.
|
|
|
оқуды бастаңыз
|
|
|
|
|
The generated JSON code will be added to the head section of the layout using the JavaScript import map tags helper, which also includes the ESModule shims for browsers lacking native support for Import Maps. оқуды бастаңыз
|
|
Wygenerowany kod JSON zostanie dodany do sekcji head układu przy użyciu pomocnika JavaScript import tagów map, który zawiera również podkładki ESModule dla przeglądarek, które nie obsługują natywnie importu map.
|
|
|
to give a greeting to someone, or to ask someone to do something. I must now bid you farewell. With Import Maps becoming the default way to load third-party JavaScript libraries in Rails 7, we can bid farewell to the complexities of Webpack and Node.js. оқуды бастаңыз
|
|
pozdrowić kogoś, powiedzieć Muszę cię teraz pożegnać. Ponieważ Import Maps staje się domyślnym sposobem ładowania bibliotek JavaScript innych firm w Rails 7, możemy pożegnać się ze złożonością Webpacka i Node.js.
|
|
|
It offers a simpler alternative to the prevailing client-side frameworks which put all the logic in the front-end... оқуды бастаңыз
|
|
Oferuje prostszą alternatywę dla dominujących frameworków po stronie klienta, które umieszczają całą logikę w interfejsie...
|
|
|
... and confine the server side of your app to being little more than a JSON API. оқуды бастаңыз
|
|
i ograniczają stronę serwerową aplikacji do bycia niczym więcej niż interfejsem API JSON.
|
|
|
The persistent process is managed by Turbo, and you write your server-side code as though you were living back in the early aughts – blissfully isolated from the complexities of today’s SPA monstrosities! оқуды бастаңыз
|
|
the ten year period from 2000 through 2009 Trwałym procesem zarządza Turbo, a kod po stronie serwera piszesz tak, jakbyś żył we wczesnych latach dziejów – w błogiej izolacji od złożoności współczesnych potworów SPA (single-page-applications)!
|
|
|
... as though you were living back in the early aughts – blissfully isolated from the complexities of today’s SPA monstrosities! оқуды бастаңыз
|
|
... jakbyś żył we wczesnych latach dziejów – w błogiej izolacji od złożoności współczesnych potworów SPA (single-page-applications)!
|
|
|
single page applications' monstrosities оқуды бастаңыз
|
|
|
|
|
оқуды бастаңыз
|
|
|
|
|
Once you’ve done that you might also want to peruse the help Lua guide, which has a lot of really useful information about where Lua and Neovim meet. оқуды бастаңыз
|
|
Kiedy już to zrobisz, możesz także przeczytać pomocniczy przewodnik po Lua, który zawiera wiele naprawdę przydatnych informacji o miejscach spotkań Lua i Neovima.
|
|
|
for example, intermittent network connectivity could prevent some or all of our JavaScript from loading. оқуды бастаңыз
|
|
|
|
|
This resilient approach, commonly known as progressive enhancement, is the practice of delivering web interfaces, such that the basic functionality is implemented in HTML and CSS and... оқуды бастаңыз
|
|
|
|
|
... and tiered upgrades to the base experience are layered on top with CSS and JavaScript progressively, when they underlying technologies are supported by the browser. оқуды бастаңыз
|
|
|
|
|
This might get the job done, but it’s clunky. оқуды бастаңыз
|
|
|
|
|
When you click an eligible link, Turbo Drive prevents the browser from following it, changes the browser’s URL using the History API... оқуды бастаңыз
|
|
uprawniony, spełniający warunki Po kliknięciu kwalifikującego się łącza Turbo Drive uniemożliwia przeglądarce skorzystanie z niego i zmienia adres URL przeglądarki za pomocą interfejsu API historii
|
|
|
The two states are contiguous with/to each other, but the laws are quite different. оқуды бастаңыз
|
|
similar: neighbouring Te dwa stany sąsiadują ze sobą, ale prawa są zupełnie inne.
|
|
|
оқуды бастаңыз
|
|
|
|
|
promiscuity and death go together оқуды бастаңыз
|
|
|
|
|