Update
I have books/resources, and they're free!
SCHEDULING
We will be working on 1 concept a week, starting today. Next Monday, I'll check in with everyone--if that's too fast or too slow, we can always change it. But that will be the pace to start.
VOICE CHATS
Discord voice chats will begin next week (4/22/19) and decided on based on the results of the following polls:
JAVA poll link: https://doodle.com/poll/kzukrpm3z8dd44m3
GO poll link: https://doodle.com/poll/piq93mhaipxz8wx9
And without further adieu... your books:
JAVA LEARNERS: http://greenteapress.com/thinkjava6/thinkjava.pdf
GO LEARNERS: https://gobyexample.com
I encourage everyone to download/save this information somewhere just in case!
Hey everyone!
Following up on @amasad's post here.
We're building out some learning materials over on our Discord server, and we would love your input!
We've now added a few Language Learning Club channels, with the idea being we'd all learn together.
Before we choose our very first language, I'd love to see what you all are interested in learning.
If you could fill out this survey by Weds at 5:00 PM CST, that'd be great.
Feel free to post any questions/concerns below.
P.S. YES, we will have voice chat for this! 🗣
Here is another extra: factorial examples using even more languages!
In PHP:
<?php
// PHP code to get the factorial of a number
function Factorial($number){
if($number <= 1){
return 1;
}
else{
return $number * Factorial($number - 1);
}
}
// Driver Code
$number = 10;
$fact = Factorial($number);
echo "Factorial = $fact";
?>
In forth:
: fac recursive
dup 1 > IF
dup 1 - fac *
else
drop 1
endif ;
: lp
swap 1 + swap
do
i . i ." ! = " i fac . cr
loop ;
16 0 lp
In LISP:
(defun factorial (n)
(if (= n 0)
1
(* n (factorial (- n 1))) ) )
(loop for i from 0 to 16
do (format t "~D! = ~D~%" i (factorial i)) )
The same thing in BrainF (yeah, that is complicated...)
+++++++++++++++++++++++++++++++++
>++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++
>++++++++++
>+++++++
>
>+
<<
[
>++++++++++++++++++++++++++++++++++++++++++++++++.
------------------------------------------------
<<<<.-.>.<.+
>>>>>
>
>++++++++++
<<
[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]
>[<+>-]
>[-]
>>
>++++++++++
<
[->-[>+>>]>[+[-<+>]>+>>]<<<<<]
>[-]
>>[++++++++++++++++++++++++++++++++++++++++++++++++.[-]]
<[++++++++++++++++++++++++++++++++++++++++++++++++.[-]]
<<<++++++++++++++++++++++++++++++++++++++++++++++++.[-]
<<<<<<.
>>+
>[>>+<<-]
>>
[
<<<[>+>+<<-]
>>[<<+>>-]
>-
]
<<<<-
]
In F#:
let factorial (num:int) =
seq { for n in [1..num] -> n }
|> Seq.reduce (fun acc n -> acc * n)
Now in Ocaml
let rec factorial n =
if n <= 1 then
1
else
factorial (n-1) * n;;
let () =
for n = 0 to 16 do
Printf.printf "%d! = %d\n" n (factorial n)
done;
I hope you enjoyed these extra languages which might be interesting. [Warning: Upvote begging ahead!] Upvote this damn it, i spent an hour using brainf.
@enigma512 I already did Pascal, and try adding highlighting
@theangryepicbanana Pascal removed. Syntax highlighting not added yet
@enigma_dev We all love brainf
Here is a list of factorial examples in several different languages so you can so what different languages look like.
Tcl:
Red:
Scala:
Pascal:
Swift:
Ruby:
Perl 6:
Julia:
C#:
CoffeeScript:
Haxe:
R:
As you can see, there are a lot of cool languages out there, so hopefully you'll come learn some of these with us!
(pls upvote this took me like half an hour)
This is great, @theangryepicbanana -- I think something along the same lines for printing "Hello World" and simple loops would also be great.
@themaka ye I'll do that soon
Bonus: Here's some more languages: -
JavaScript: -
Java: -
C
C++
Kotlin
Python
Rust
@TheDrone7 I had been doing lesser-known languages
@theangryepicbanana I observed as much, although I don't think Ruby, Swift and C# are lesser-known languages, specially C#.
@TheDrone7 Wow, thanks guys! This is great.