Skip to content

Use https instead of http #1471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions _ba/cheatsheets/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Scala Cheatsheet
partof: cheatsheet

by: Brendan O'Connor
about: Zahvaljujući <a href="http://brenocon.com/">Brendan O'Connor</a>u ovaj cheatsheet teži da bude kratki pregled sintakse Scale. Licenca pripada Brendan O'Connor-u, pod CC-BY-SA 3.0 licencom.
about: Zahvaljujući <a href="https://brenocon.com/">Brendan O'Connor</a>u ovaj cheatsheet teži da bude kratki pregled sintakse Scale. Licenca pripada Brendan O'Connor-u, pod CC-BY-SA 3.0 licencom.

language: ba
---
Expand Down Expand Up @@ -47,7 +47,7 @@ language: ba
| `var (x,y,z) = (1,2,3)` | destrukturirajuće vezivanje: otpakivanje torke podudaranjem uzoraka (pattern matching). |
| <span class="label important">Loše</span>`var x,y,z = (1,2,3)` | skrivena greška: svim varijablama dodijeljena cijela torka. |
| `var xs = List(1,2,3)` | lista (nepromjenjiva). |
| `xs(2)` | indeksiranje zagradama ([slajdovi](http://www.slideshare.net/Odersky/fosdem-2009-1013261/27)). |
| `xs(2)` | indeksiranje zagradama ([slajdovi](https://www.slideshare.net/Odersky/fosdem-2009-1013261/27)). |
| `1 :: List(2,3)` | cons. |
| `1 to 5` _isto kao_ `1 until 6` <br> `1 to 10 by 2` | šećer za raspon (range). |
| `()` _(prazne zagrade)_ | jedina instanca Unit tipa (slično kao u C/Java void). |
Expand All @@ -56,11 +56,11 @@ language: ba
| `if (check) happy` _isto kao_ <br> `if (check) happy else ()` | sintaksni šećer za uslov. |
| `while (x < 5) { println(x); x += 1}` | while petlja. |
| `do { println(x); x += 1} while (x < 5)` | do while petlja. |
| `import scala.util.control.Breaks._`<br>`breakable {`<br>` for (x <- xs) {`<br>` if (Math.random < 0.1) break`<br>` }`<br>`}`| break ([slajdovi](http://www.slideshare.net/Odersky/fosdem-2009-1013261/21)). |
| `import scala.util.control.Breaks._`<br>`breakable {`<br>` for (x <- xs) {`<br>` if (Math.random < 0.1) break`<br>` }`<br>`}`| break ([slajdovi](https://www.slideshare.net/Odersky/fosdem-2009-1013261/21)). |
| `for (x <- xs if x%2 == 0) yield x*10` _isto kao_ <br>`xs.filter(_%2 == 0).map(_*10)` | for komprehensija: filter/map. |
| `for ((x,y) <- xs zip ys) yield x*y` _isto kao_ <br>`(xs zip ys) map { case (x,y) => x*y }` | for komprehensija: destrukturirajuće vezivanje. |
| `for (x <- xs; y <- ys) yield x*y` _isto kao_ <br>`xs flatMap {x => ys map {y => x*y}}` | for komprehensija: međuproizvod (vektorski proizvod). |
| `for (x <- xs; y <- ys) {`<br> `println("%d/%d = %.1f".format(x, y, x/y.toFloat))`<br>`}` | for komprehensija: imperativ-asto.<br>[sprintf-stil.](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) |
| `for (x <- xs; y <- ys) {`<br> `println("%d/%d = %.1f".format(x, y, x/y.toFloat))`<br>`}` | for komprehensija: imperativ-asto.<br>[sprintf-stil.](https://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) |
| `for (i <- 1 to 5) {`<br> `println(i)`<br>`}` | for komprehensija: iteracija uključujući gornju granicu. |
| `for (i <- 1 until 5) {`<br> `println(i)`<br>`}` | for komprehensija: iteracija ne uključujući gornju granicu. |
| <span id="pattern_matching" class="h2">podudaranje uzoraka (pattern matching)</span> | |
Expand Down
12 changes: 6 additions & 6 deletions _ba/tour/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ Java ima korisnički definisane metapodatke u formi [anotacija](https://docs.ora
I upotrijebiti je ovako:

```
@Source(URL = "http://coders.com/",
@Source(URL = "https://coders.com/",
mail = "[email protected]")
public class MyClass extends HisClass ...
```

Primjena anotacije u Scali izgleda kao poziv konstruktora, dok se za instanciranje Javinih anotacija moraju koristiti imenovani argumenti:

```
@Source(URL = "http://coders.com/",
@Source(URL = "https://coders.com/",
mail = "[email protected]")
class MyScalaClass ...
```
Expand All @@ -108,30 +108,30 @@ ako se koristi naziv `value` onda se u Javi može koristiti i konstruktor-sintak
I upotrijebiti je kao:

```
@SourceURL("http://coders.com/")
@SourceURL("https://coders.com/")
public class MyClass extends HisClass ...
```

U ovom slučaju, Scala omogućuje istu sintaksu:

```
@SourceURL("http://coders.com/")
@SourceURL("https://coders.com/")
class MyScalaClass ...
```

Element `mail` je specificiran s podrazumijevanom vrijednošću tako da ne moramo eksplicitno navoditi vrijednost za njega.
Međutim, ako trebamo, ne možemo miješati dva Javina stila:

```
@SourceURL(value = "http://coders.com/",
@SourceURL(value = "https://coders.com/",
mail = "[email protected]")
public class MyClass extends HisClass ...
```

Scala omogućuje veću fleksibilnost u ovom pogledu:

```
@SourceURL("http://coders.com/",
@SourceURL("https://coders.com/",
mail = "[email protected]")
class MyScalaClass ...
```
Expand Down
2 changes: 1 addition & 1 deletion _ba/tour/singleton-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Kao i `val`, singlton objekti mogu biti definisani kao članovi [trejta](traits.
Singlton objekt može naslijediti klase i trejtove.
Ustvari, [case klasa](case-classes.html) bez [tipskih parametara](generic-classes.html)
će podrazumijevano kreirati singlton objekt s istim imenom,
i implementiranim [`Function*`](http://www.scala-lang.org/api/current/scala/Function1.html) trejtom.
i implementiranim [`Function*`](https://www.scala-lang.org/api/current/scala/Function1.html) trejtom.

## Kompanjoni (prijatelji) ##

Expand Down
2 changes: 1 addition & 1 deletion _ba/tour/unified-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Dijagram ispod prikazuje hijerarhiju Scala klasa.

## Hijerarhija tipova u Scali ##

[`Any`](http://www.scala-lang.org/api/2.12.1/scala/Any.html) je nadtip svih tipova, zove se još i vrh-tip.
[`Any`](https://www.scala-lang.org/api/2.12.1/scala/Any.html) je nadtip svih tipova, zove se još i vrh-tip.
Definiše određene univerzalne metode kao što su `equals`, `hashCode` i `toString`.
`Any` ima dvije direktne podklase, `AnyVal` i `AnyRef`.

Expand Down
6 changes: 3 additions & 3 deletions _books/1-programming-in-scala-3rd.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "Programming in Scala, 3rd ed"
link: http://booksites.artima.com/programming_in_scala_3ed
link: https://booksites.artima.com/programming_in_scala_3ed
image: /resources/img/books/ProgrammingInScala.gif
status: Updated for Scala 2.12
authors: ["Martin Odersky", "Lex Spoon", "Bill Benners"]
publisher:
---

(First edition [available for free online reading](http://www.artima.com/pins1ed/))
(First edition [available for free online reading](https://www.artima.com/pins1ed/))

Being co-written by the language's designer, Martin Odersky, you will find it provides additional depth and clarity to the diverse features of the language. The book provides both an authoritative reference for Scala and a systematic tutorial covering all the features in the language. Once you are familiar with the basics of Scala you will appreciate having this source of invaluable examples and precise explanations of Scala on hand. The book is available from [Artima](http://booksites.artima.com/programming_in_scala_3ed). Award winning book - [Jolt Productivity award](http://www.drdobbs.com/joltawards/232601431) for Technical Books.
Being co-written by the language's designer, Martin Odersky, you will find it provides additional depth and clarity to the diverse features of the language. The book provides both an authoritative reference for Scala and a systematic tutorial covering all the features in the language. Once you are familiar with the basics of Scala you will appreciate having this source of invaluable examples and precise explanations of Scala on hand. The book is available from [Artima](https://booksites.artima.com/programming_in_scala_3ed). Award winning book - [Jolt Productivity award](https://www.drdobbs.com/joltawards/232601431) for Technical Books.
2 changes: 1 addition & 1 deletion _books/2-scala-for-the-impatient.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Scala for the Impatient"
link: http://www.horstmann.com/scala/index.html
link: https://www.horstmann.com/scala/index.html
image: /resources/img/books/scala_for_the_impatient.png
status: Available Now
authors: ["Cay S. Horstmann"]
Expand Down
4 changes: 2 additions & 2 deletions _books/3-programming-scala.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: "Programming Scala"
link: http://shop.oreilly.com/product/0636920033073.do
link: https://shop.oreilly.com/product/0636920033073.do
image: /resources/img/books/ProgrammingScala-final-border.gif
status: Updated for Scala 2.11
authors: ["Alex Payne", "Dean Wampler"]
publisher: O’Reilly
publisherLink: http://www.oreilly.com/
publisherLink: https://www.oreilly.com/
---

Both are industry experts, Alex Payne being the lead API programmer at Twitter, a social networking service based on Scala. O’Reilly, the publisher, writes: "Learn how to be more productive with Scala, a new multi-paradigm language for the Java Virtual Machine (JVM) that integrates features of both object-oriented and functional programming. With this book, you'll discover why Scala is ideal for highly scalable, component-based applications that support concurrency and distribution. You'll also learn how to leverage the wealth of Java class libraries to meet the practical needs of enterprise and Internet projects more easily."
2 changes: 1 addition & 1 deletion _books/4-functional-programming-in-scala.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ image: /resources/img/books/FPiS_93x116.png
status: Available now
authors: ["Paul Chiusano", "Rúnar Bjarnason"]
publisher: Manning
publisherLink: http://www.manning.com/
publisherLink: https://www.manning.com/
---

"Functional programming (FP) is a style of software development emphasizing functions that don't depend on program state... Functional Programming in Scala is a serious tutorial for programmers looking to learn FP and apply it to the everyday business of coding. The book guides readers from basic techniques to advanced topics in a logical, concise, and clear progression. In it, you'll find concrete examples and exercises that open up the world of functional programming."
4 changes: 2 additions & 2 deletions _books/5-scala-in-depth.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: "Scala in Depth"
link: http://www.manning.com/suereth
link: https://www.manning.com/suereth
image: /resources/img/books/icon_Scala_in_Depth_93x116.png
status: Available now
authors: ["Joshua D. Suereth"]
publisher: Manning
publisherLink: http://www.manning.com/
publisherLink: https://www.manning.com/
---

"While information about the Scala language is abundant, skilled practitioners, great examples, and insight into the best practices of the community are harder to find. Scala in Depth bridges that gap, preparing you to adopt Scala successfully for real world projects. Scala in Depth is a unique new book designed to help you integrate Scala effectively into your development process. By presenting the emerging best practices and designs from the Scala community, it guides you though dozens of powerful techniques example by example. There's no heavy-handed theory here-just lots of crisp, practical guides for coding in Scala."
4 changes: 2 additions & 2 deletions _books/6-scala-puzzlers.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: "Scala Puzzlers"
link: http://www.artima.com/shop/scala_puzzlers
link: https://www.artima.com/shop/scala_puzzlers
image: /resources/img/books/scala-puzzlers-book.jpg
status: Available now
authors: ["Andrew Phillips", "Nermin Šerifović"]
publisher: Artima Press
publisherLink: http://www.artima.com/index.jsp
publisherLink: https://www.artima.com/index.jsp
---

"Getting code to do what we want it to do is perhaps the essence of our purpose as developers. So there are few things more intriguing or important than code that we think we understand, but that behaves rather contrary to our expectations. Scala Puzzlers is a collection of such examples in Scala. It is not only an entertaining and instructive way of understanding this highly expressive language better. It will also help you recognize many counter-intuitive traps and pitfalls and prevent them from inflicting further production bug hunt stress on Scala developers."
8 changes: 4 additions & 4 deletions _cheatsheets/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Scala Cheatsheet
partof: cheatsheet

by: Brendan O'Connor
about: Thanks to <a href="http://brenocon.com/">Brendan O'Connor</a>, this cheatsheet aims to be a quick reference of Scala syntactic constructions. Licensed by Brendan O'Connor under a CC-BY-SA 3.0 license.
about: Thanks to <a href="https://brenocon.com/">Brendan O'Connor</a>, this cheatsheet aims to be a quick reference of Scala syntactic constructions. Licensed by Brendan O'Connor under a CC-BY-SA 3.0 license.

languages: [ba, fr, ja, pl, pt-br, zh-cn, th, ru]
---
Expand Down Expand Up @@ -176,7 +176,7 @@ languages: [ba, fr, ja, pl, pt-br, zh-cn, th, ru]
</tr>
<tr>
<td><pre class="highlight"><code>xs(2)</code></pre></td>
<td>Paren indexing (<a href="http://www.slideshare.net/Odersky/fosdem-2009-1013261/27">slides</a>).</td>
<td>Paren indexing (<a href="https://www.slideshare.net/Odersky/fosdem-2009-1013261/27">slides</a>).</td>
</tr>
<tr>
<td><pre class="highlight"><code>1 :: List(2, 3)</code></pre></td>
Expand Down Expand Up @@ -227,7 +227,7 @@ breakable {
break
}
}</code></pre></td>
<td>Break (<a href="http://www.slideshare.net/Odersky/fosdem-2009-1013261/21">slides</a>).</td>
<td>Break (<a href="https://www.slideshare.net/Odersky/fosdem-2009-1013261/21">slides</a>).</td>
</tr>
<tr>
<td><pre class="highlight"><code>for (x &lt;- xs if x % 2 == 0)
Expand Down Expand Up @@ -261,7 +261,7 @@ breakable {
val div = x / y.toFloat
println("%d/%d = %.1f".format(x, y, div))
}</code></pre></td>
<td>For-comprehension: imperative-ish.<br /><a href="http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax"><code>sprintf</code> style</a>.</td>
<td>For-comprehension: imperative-ish.<br /><a href="https://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax"><code>sprintf</code> style</a>.</td>
</tr>
<tr>
<td><pre class="highlight"><code>for (i &lt;- 1 to 5) {
Expand Down
4 changes: 2 additions & 2 deletions _es/overviews/core/actors.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ la ejecución del argumento por nombre `fun`.
## Actores remotos

Esta sección describe el API de los actores remotos. Su principal interfaz es el objecto
[`RemoteActor`](http://www.scala-lang.org/api/2.9.1/scala/actors/remote/RemoteActor$.html) definido
[`RemoteActor`](https://www.scala-lang.org/api/2.9.1/scala/actors/remote/RemoteActor$.html) definido
en el paquete `scala.actors.remote`. Este objeto facilita el conjunto de métodos necesarios para crear
y establecer conexiones a instancias de actores remotos. En los fragmentos de código que se muestran a
continuación se asume que todos los miembros de `RemoteActor` han sido importados; la lista completa
Expand All @@ -452,7 +452,7 @@ de importaciones utilizadas es la siguiente:
### Iniciando actores remotos

Un actore remot es identificado de manera unívoca por un
[`Symbol`](http://www.scala-lang.org/api/2.9.1/scala/Symbol.html). Este símbolo es único para la instancia
[`Symbol`](https://www.scala-lang.org/api/2.9.1/scala/Symbol.html). Este símbolo es único para la instancia
de la máquina virual en la que se está ejecutando un actor. Un actor remoto identificado con el nombre
`myActor` puede ser creado del siguiente modo.

Expand Down
6 changes: 3 additions & 3 deletions _es/overviews/core/string-interpolation.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Este nuevo mecanismo permite a los usuarios incluir referencias a variables de m
val name = "James"
println(s"Hello, $name") // Hello, James

En el ejemplo anterior, el literal `s"Hello, $name"` es una cadena "procesada". Esto significa que el compilador debe realizar un trabajo adicional durante el tratamiento de dicha cadena. Una cadena "procesada" se denota mediante un conjunto de caracteres que preceden al símbolo `"`. La interpolación de cadenas ha sido introducida por [SIP-11](http://docs.scala-lang.org/sips/pending/string-interpolation.html), el cual contiene todos los detalles de implementación.
En el ejemplo anterior, el literal `s"Hello, $name"` es una cadena "procesada". Esto significa que el compilador debe realizar un trabajo adicional durante el tratamiento de dicha cadena. Una cadena "procesada" se denota mediante un conjunto de caracteres que preceden al símbolo `"`. La interpolación de cadenas ha sido introducida por [SIP-11](https://docs.scala-lang.org/sips/pending/string-interpolation.html), el cual contiene todos los detalles de implementación.

## Uso

Expand Down Expand Up @@ -61,7 +61,7 @@ El interpolador `f` es seguro respecto a tipos. Si pasamos un número real a una
f"$height%4d"
^

El interpolador `f` hace uso de las utilidades de formateo de cadenas disponibles en java. Los formatos permitidos tras el carácter `%` son descritos en [Formatter javadoc](http://docs.oracle.com/javase/1.6.0/docs/api/java/util/Formatter.html#detail). Si el carácter `%` no aparece tras la definición de una variable, `%s` es utilizado por defecto.
El interpolador `f` hace uso de las utilidades de formateo de cadenas disponibles en java. Los formatos permitidos tras el carácter `%` son descritos en [Formatter javadoc](https://docs.oracle.com/javase/1.6.0/docs/api/java/util/Formatter.html#detail). Si el carácter `%` no aparece tras la definición de una variable, `%s` es utilizado por defecto.

### Interpolador `raw`

Expand All @@ -87,7 +87,7 @@ En Scala, todas las cadenas "procesadas" son simples transformaciones de código

id"string content"

la transforma en la llamada a un método (`id`) sobre una instancia de [StringContext](http://www.scala-lang.org/api/current/index.html#scala.StringContext). Este método también puede estar disponible en un ámbito implícito. Para definiir nuestra propia cadena de interpolación simplemente necesitamos crear una clase implícita que añada un nuevo método a la clase `StringContext`. A continuación se muestra un ejemplo:
la transforma en la llamada a un método (`id`) sobre una instancia de [StringContext](https://www.scala-lang.org/api/current/index.html#scala.StringContext). Este método también puede estar disponible en un ámbito implícito. Para definiir nuestra propia cadena de interpolación simplemente necesitamos crear una clase implícita que añada un nuevo método a la clase `StringContext`. A continuación se muestra un ejemplo:

// Note: We extends AnyVal to prevent runtime instantiation. See
// value class guide for more info.
Expand Down
2 changes: 1 addition & 1 deletion _es/overviews/parallel-collections/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ paralelas referirse al artículo \[[1][1]\]

1. [On a Generic Parallel Collection Framework, Aleksandar Prokopec, Phil Bawgell, Tiark Rompf, Martin Odersky, June 2011][1]

[1]: http://infoscience.epfl.ch/record/165523/files/techrep.pdf "flawed-benchmark"
[1]: https://infoscience.epfl.ch/record/165523/files/techrep.pdf "flawed-benchmark"
Loading