Go is a good programming lan-

Go is a good programming lan-

Other urls found in this thread:

groups.google.com/forum/#!topic/golang-nuts/hQiZsd1ZRdA
st.suckless.org/patches/
blog.golang.org/errors-are-values
google.github.io/styleguide/cppguide.html#Exceptions
yosefk.com/c fqa/exceptions.html
twitter.com/AnonBabble

if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}
if err != nil {
fmt.Println(err)
}

You're supposed to be using streams faglord

deadlocked

The reason I hate this fucking language. No generics means boilerplate EVERYWHERE.

>generics
you are so fucking stupid you are an insult to human kind.

Nice tweet OP, hilarious, followed

Do you use any of the mods with st? I hate the no paging, faggot devs. No I don't want to learn tmux

Excellent argument, really activates my almonds.

pls don't write go, code monkeys coming from java are not appreciated.
groups.google.com/forum/#!topic/golang-nuts/hQiZsd1ZRdA

go shit in your designated street you fucking unoriginal piece of shit.

suck it up and learn the right tool for the job.

pls fuck off - if you think it's okay to force programmers to type the same fucking lines over and over again because manually checking errors is SO 31337, go write COBOL, fuck off, and provide something that doesn't insult my time.

Fuck the forced error checking, fuck the lack of exceptions, fuck the massive binaries, fuck the (((google))) backing, fuck Go.

>i have two threads and sometimes they run at different speeds
really activates your almonds

I have it open tmux for every window. I hate tmux too but st is pretty much the sanest terminal unless you're going for Konsole or Gnome terminal. urxvt is just a pain in the ass and xterm doesn't support alpha which doesn't look good on a tiling wm.

I use alpha, scrollback and copy/paste patches.
st.suckless.org/patches/

Except when they both stop running after half a second. This last set of 1's is just because the second thread had stopped already.

>stopped another code monkey from using Go
i call it a day.

>pls don't write go
I want to add to this. Please don't write anything if you don't know how to handle errors, the patterns Go enforces should be in projects of other languages anyway, if not, I have bad news, you're writing shit.
>why check return values when I could just assume everything was fine?
>why design my own error handling system or use a library for it when I could just ignore erroneous code paths and data? This isn't my first fizz-buzz kid...

They literally have an article aimed at beginners who don't know how to program. People like you.
blog.golang.org/errors-are-values

Do you just default and brute force every problem, even outside of Go? The only people I see complaining about Go ever are actual shitters. Please learn to program, every complaint people have with Go is just something you should be doing in other languages anyway but it's not enforced there, that doesn't mkae Go bad or your language bad, it makes you a shitty programmer. I'll say it again, I'm fucking baffled that people are mad they have to handle errors properly, like that's seriously a fucking argument, the fastest way to out yourself.

You didn't stop shit, user - I've no desire to write overly bureaucratic shit like Go or Java.

I don't need tmux capabilities all the time, nor do I want to remember i3 keys and vim keys and tnux keys constantly, especially just to scroll back 1 page or whatever

try tilix

> patterns Go enforces should be in projects of other languages anyway

They're called EXCEPTIONS and every language worth a fucking shit has them.

"Let's do an if { }block after every single fucking function call!" said the retard.

with the scrollback patch you can use alt+pgup and alt+pgdown, there's also another patch you can add on top of that to scroll using the mouse wheel but after a few patches it just becomes a mess very fast.

If you don't handle an exception your program blows up. So hard.

mfw Sup Forums praises c when it literally has the equiv. of if err != nil (if result == NULL)

Yeah I use the scroll back, actually I just use a fork called xst in the AUR. I like it

C is a good programming lan-

#include

int main ( int argc , char* *argv){
printf("ohayou ^.^\n");
return ( 0 );
}
>fatal error

Nobody should be writing C in 2017 either.

exceptions are exceptionally bad idea. even google doesn't use them.

google.github.io/styleguide/cppguide.html#Exceptions

Why was Go made anyway?

kek

go back to writing java please

..in C++, which makes sense, because C++ exceptions are shockingly, cripplingly, mind-blowingly stupid.

yosefk.com/c fqa/exceptions.html

Isn't the idea to be just c with packages?
Seems like a neat idea, I could see why s companies with a shit load of code would make it / want to use it

because C++ is a clusterfuck that takes centuries to master, only a few people know C++.

you can start being productive in Go in a week tops

Go back to pooing in the loo please.

>Let's do an if { }block after every single fucking function call
You actually have no idea how to work with data, if you have this complaint with errors I gaurantee your programs are poorly formed even in relation to things that are not errors, you can't figure out how to solve this thing that isn't even a problem, something that has who articles written about it, you can't figure it out, and you expect me to believe you know how to write anything of value. I'll ask again, do you just brute force every other problem you encounter? You write shit, there's no contest here, you're outing yourself.

>EXCEPTIONS
0 difference, the ironic thing is that the linked article shows you how to implement something that works just like them. At least in Go they're not built in, the practices I see with exceptions is truly horrific
>giant catch all that doesn't handle shit, it just passes on the error
Good job. I don't trust you kids today, you should be forced to handle all errors not just whatever you feel like.

haha ebin joke my fren :DDD indians use go and white men write java am i rite

options bitch, rust wins again

>Go
kek

Rust has good concepts, it's too bad the syntax is ugly and I would never trust modern Mozilla to not fuck it up somehow. May as well be dead in the water. At least with Go I can trust Google isn't going anywhere and will maintain this shit.

Every fucking language is considered pajeet on this board. Honestly what language isn't pajeet?

You don't get me you dumb nigger, the problem is that you're forced to do if err {} checks in areas where you literally do not care (or explicitly throw away the return value with _). This means that these checks litter your code like fucking kudzu where in 90% of the cases an error means your program should die anyways (and it will in most sane languages)

Where in any other language that wasn't designed by (((Google))) committee, if I care if a function call blows up, I put it in a try/catch. But that's my choice at the end of the day, because it's my code.

literally only c. fucking neckbeards

I have a theory that js dudes makes new frameworks to keep the pajeets out

the more mainstream it is, the more pajeet language.

because they don't program out of joy or curiosity, they are true code monkeys with zero creativity and shitty code.

>you're forced to do if err {} checks
I can't tell if you're serious or not, that's legitimately not true. Read that article before I fucking kill myself out of frustration with your inability to handle returns, as someone else pointed out it's no different than handling errors in C or most other languages without an explicit error type, the only difference is that Go has multiple returns and an explicit error type, that's it, that's the only difference. Nobody complains about error handling in other languages though for 2 reasons, you either know how to handle them correctly, or you just don't handle them because you're ignorant, Go forces you to think about it which upsets the latter group. I'm sorry but it's time to learn good habits and concepts so your shit doesn't fail in unexpected ways.

Your whole argument is the same as everyone else on this topic
>I only know one way to handle this and I don't like it, that must be the only way to do it
Literally what. You people are so stupid, I'm not even defending Go here I'm just extremely pissed of that people in 2017 don't know how to handle errors without exceptions, when it's covered in every fucking book for every language and every lecture should have time dedicated to this. If you can't handle something that equates to an enum string errno int pair how can you be expected to handle ANY datatypes properly. I'm going to fucking throw up at the idea of your verbose as fuck projects because you don't know how to handle data processing efficiently so you just write the simplest most brute force way possible. Disgusting, holy shit I need a fucking bucket. Please never write anything ever again.

top kek

>the problem is that you're forced to do if err {} checks in areas where you literally do not care
wtf? you have no idea about Go, better shut up.

>I'm going to fucking throw up at the idea of your verbose as fuck projects because you don't know how to handle data processing efficiently
Somebody post the graduate image of the guy parsing input to find out if it's a number or a string.

>this is the only way I know how to parse strings, it must be the only way

C, Forth, Lisp

...

>Lisp
seconded, they are too dumb to code in lisp.

options are a great concept (especially used as monads), but they require generics which go does not have

-----
go seems very divisive, at least on Sup Forums, but you have to look at the language knowing that the creators sought to make a simple, easy to learn, yet powerful language. Sure, it is very opinionated, and seems limited and does not seem very advanced compared to other languages. But it is incredibly easy to pickup and be very productive with - there's generally one accepted way to do things, and you're not going about trying to figure out the best way to accomplish a task out of 50 (javascript...). Like a few hours for any good programmer to learn from scratch and be able to start to produce something non-trivial.
That's what's great about it.

superior programmer coming through
import re
instr = input()
if (re.match('\d', instr):
print("NUMBER")
elif (re.match('\w',instr):
print("WORD")

Pretend there's another bracket at the end of the if statements

I tried to do some work with a sqlite DB using it and it was painful. The documentation was terrible

python ifs don't need those outer parens

well.. yea you are at the mercy of using libraries a lot which can be hit or miss

>implying a lot of stupid language design decisions don't result in a lot of stupid programs

Haskell

English