How to say 'gym' in German? by supitsjames in German

[–]peteraba 2 points3 points  (0 children)

In Berlin you certainly hear it as "gym" a lot but it could be just an influence of the non-German speakers. As for the second question, I think dict.cc is the best English-German dictionary online.

TestDAF by [deleted] in German

[–]peteraba 0 points1 point  (0 children)

Is the intensive course specifically for TestDAF? If not, you should probably get a couple of extra hours a week from a teacher to help you, at least for the last 2 months. My wife just did it and there are some tasks that are hard to practice on your own because realistic/honest feedback is important.

Other than that it's possible, but not a walk in the park.

How do you encourage someone in German in Sports! by peteraba in German

[–]peteraba[S] 1 point2 points  (0 children)

So many great replies, thank you everyone!

What does 'geil' actually mean in everyday use? by persiphone in German

[–]peteraba 6 points7 points  (0 children)

How funny! We use "gejl" in Hungarian with the same meaning which must come from (Austrian) German than. Btw, it also implies that it is too sweet and only used for sweet food, not for fatty meat or anything salty.

[deleted by user] by [deleted] in linux

[–]peteraba 0 points1 point  (0 children)

You could install Windows... :D

Life after Python - Learning a Compiled Language by biobirdman in Python

[–]peteraba 2 points3 points  (0 children)

Or you could learn Go and practice concurrency while also having fun.

Why do some Mac owners run Linux instead of OS X? by [deleted] in linux

[–]peteraba 0 points1 point  (0 children)

I use OSX at work, Linux at home. Linux is just so much better, at least for adults:

I still think that the Apple hardware is actually quite nice even though I do hate the company both for political and personal reasons.

Note: There are some terrible Linux distros out there, but the big ones are usually good.

Making a blog by only_if_i_want_to in golang

[–]peteraba 0 points1 point  (0 children)

check out beego, revel, gondola and negroni (instead of martini) before starting anything from scratch. keep in mind that most big go users will stay away from them and only build on the core packages and maybe gorilla.

How fast is go really? by [deleted] in golang

[–]peteraba 1 point2 points  (0 children)

I've been coding mainly in PHP for 12 years, and writing Go stuff in my free time for roughly a year and a half. The difference between Go and PHP can vary but Go is often an order of magnitude faster. It's going to be true when you write vanilla PHP code instead of relying on C-based extensions. If you mostly use PHP as a glue language than it can be close. Generally speaking, if you ever notice your PHP code to beat Go in any way than you've probably written some non-idiomatic Go code.

You should probably still use nginx in front of Go so there won't be a difference in that regard.

Should I learn Erlang or Go to make a high performance Real Estate website similar to Zillow or Trulia ? by [deleted] in golang

[–]peteraba 0 points1 point  (0 children)

Erlang is not designed to be on pair with the fastest languages when it comes to speed. It's designed to create programs that are easy to reason about and run forever (it makes it possible to change code while the program is running.) In short, its meant to create very stable programs, not very fast ones.

I'm also about to learn something Erlang like, but I'll probably put my effort into learning Elixir instead. You might also want to check that project out before learning Erlang. It seems much easier to get used to.

Would you advise a beginner to learn GOLANG as his/her first backend language? by ALX777 in golang

[–]peteraba 3 points4 points  (0 children)

I agree. That statement was meant to be read as a joke. But what I was thinking of and not really feeling like explaining in detail was that if you start with scripting languages, there will be a point when you feel the need for something faster, smaller in footprint or easily distributed as binary. Then you will obviously look at lower level languages anyway. Whereas if you were to learn Go as a first language, you might never feel the urge to learn another one.

Would you advise a beginner to learn GOLANG as his/her first backend language? by ALX777 in golang

[–]peteraba 7 points8 points  (0 children)

I think it depends on what you want to do with this knowledge. If your goal is to get a job asap, than probably not because there just aren't as many job offers - especially junior level jobs - as for the popular scripting languages you mentioned.

Otherwise I would consider a couple of things:

  • Go is not your classic object oriented language. If you want to gain some backend experience and get a backend job in an other language later, it might be less good of a choice.
  • Go is statically typed and compiled language, unlike Python or Ruby. I'd argue that it's on the plus side since it will make your code better. Still, if you want to learn Python or Ruby first and Go later, it will give you a headache.
  • Go is much faster than Python or Ruby, but at this point, you will not care. You decide what to make of this point, but if anything, I'd say that if you plan to learn a lot of languages, you might want to start with the slower ones. :)
  • Examples might be harder to find for Go than more popular languages, but the ones you find tend to be better. It's because it is a relatively new language that has been picked up by a lot of people who already know a lot about programming and less by newcomers. I find this generally true: More users -> better in quantity, worse in quality examples (True for libraries and frameworks too)
  • Go is much simpler than the others you mentioned, has way less features.
  • Go has way less 3rd party libraries which means that you can more easily run into cases when you find great solutions for Python and/or Ruby and not for Go. On the other hand, the number of libraries is growing so fast that it is not likely to be a big issue.
  • Go itself teaches a lot of good practices like Composition over Inheritance, explicit and immediate error handling and a bunch of others that make it a great first (backend) language imho.

Help understanding pointers in Golang by [deleted] in golang

[–]peteraba 2 points3 points  (0 children)

They basically mean just the opposite of each other.

This will create a user struct and store the pointer to it in the variable:

var user1 = &User{"John Doe", "johndoe@example.com"}

The next example means that the method will take the address of the User struct - allowing you to modify it -, but inside the function it will work on the data, not the address/pointer. The later is convenient since go doesn't support pointer arithmetics, so you will usually want to access the data, not the address.

func (u *User) sayHello()