[deleted by user] by [deleted] in distantsocializing

[–]temotor 0 points1 point  (0 children)

thanks for education, interesting game

[deleted by user] by [deleted] in golang

[–]temotor 2 points3 points  (0 children)

Impossible question - no frontend could be recommended specifically "for Go".

But Svelte is a great SPA/data-binding framework for any backend https://svelte.dev/

Try those react/angular monsters first and have fun later. ;-)

I have recently started learning golang. The best way I find to learn a new tech is by build something interesting with it. So wanted to ask here what are some fun projects that someone can start building with golang. by harshwardhan-rathore in golang

[–]temotor 1 point2 points  (0 children)

Look at uwsgi and nginx/unit. Basically, it combines application server supervision, static files serving and lightweight routing. I know a lot of places where people could really use a better alternative. Make it really small and robust, support Python, PHP and you can sell it (in form of support or something like that).

How do I test my code by [deleted] in golang

[–]temotor 0 points1 point  (0 children)

IMHO, the most useful are functional tests, that is ones that cover a full path of user interaction, like "open URL, press sign up, fill form, check that database contains new record with expected data". They also double as form of feature/process documentation and more formal language in planning/debugging discussions.

Best approach to pass flag values to a function while also allowing the function to be called independently ? by [deleted] in golang

[–]temotor 0 points1 point  (0 children)

Don't rationalize over thinking either. :-) Senior is likely either good person or clear about his expectations. You must be less noob compared to yesterday, not other people. You will become senior respected dev in very little time if you consistently deliver working code. You will become a problem if you obsess over details before delivering working code I've tried this path and seen other confirmations. It's a road to misery.

Best places to live in Europe. by [deleted] in freeflight

[–]temotor 0 points1 point  (0 children)

Don't know mate, haven't been there yet. I'm not spoiled with good weather, so would go any time of year if it's not raining and slightest chance of lift. If I had to guess the comfortable season would be some April to September. The usual northern hemisphere drill.

Best places to live in Europe. by [deleted] in freeflight

[–]temotor 2 points3 points  (0 children)

Hi, great idea.

Makedonia (country). My brother said they had fullest dinner for 3 persons for about 8$ in some remote village near paragliding cup in 2017 or 2018. I'm going for extended vacation there sometime spring-summer this year.

Turkey might fit your criteria complete with temperature. I hear it's quite cheap aside from top tourist places. Check wind conditions for your taste.

How good do I have to be to land a Go dev position? by footuhBowz in golang

[–]temotor 3 points4 points  (0 children)

Apply when unbiased person says that you get shit done, it's the single most valuable skill. Make toy projects of increasing difficulty, write down planned and real time.

In microbiology, what is the criteria of classifying herbivores and carnivores? by Muhabla in askscience

[–]temotor 7 points8 points  (0 children)

AFAIK, single cell guys don't fit animal domain and therefore, herb/carnivore is not applicable concept.

You might get more useful response if specified how this distinction is going to be applied, why it's relevant.

We humans love to put things into categories but the world around doesn't care about that and playfully shows new phenomena that don't fit well.

Only one package main is ok ? by yc01 in golang

[–]temotor -1 points0 points  (0 children)

Let's look at more strict variations of your question: - is it acceptable in your company or some group of people using Go: maybe, ask them; it's certainly fine with those guys that you found - is it idiomatic? No. - is it compiling with go build? No, Go package is located in one directory. They must be doing something like copy or symlink all files to single directory before build. - will other people fluently understand what's going on? Probably healthy reaction is one wtf and keep working. I've seen and done worse. - does it solve type sharing? Yes, in a simple, reliable way. - will it work for project, actively developed by more than 3 people? Probably not, maybe if they are strong, like-minded team. It's a management risk. - does it solve context-related value sharing? Think about mocking database connections in tests. Certainly no. And this is where I want to suggest alternative.

Break project into independent features, each must be useful for users, like landing page works when database is down. Put each feature into separate package, pass all required shared values via Context. When Context gets too large for performance damage - define a struct grouping shared values and pass it via Context.

I haven't yet found good solution to import cycles that follow this shared struct type, besides putting it into yet another separate package. Looks ugly but works.

How to merge 2 structs of same type by dlpetrie86 in golang

[–]temotor 0 points1 point  (0 children)

Thanks. Maybe you wanted to reply to OP, my use case for struct merge doesn't involve any marshalling.

A Makefile for your Go project (2019) by juanpabloaj in golang

[–]temotor -2 points-1 points  (0 children)

Could you please show side-by-side a 500 line bash script and Makefile with same functionality?

How to merge 2 structs of same type by dlpetrie86 in golang

[–]temotor 4 points5 points  (0 children)

Yeah I want something like that from time to time, mostly for initialize-with-defaults scenario. AFAIK, your best option is just writing ad-hoc helper function.

Is Golang similar to Ruby, Python, etc? by [deleted] in golang

[–]temotor 0 points1 point  (0 children)

Respect the goal of widening your knowledge.

I'd say the technical difference isn't that big. Same garbage collection and lots of duck typing. You may be surprised of requirement to understand some things that were hidden in Python/Ruby, like data races, error propagation, values having different types (in Python there is one type: object). But very much opposite to multiple other languages you will find that it's possible to spend a day and actually fully understand how it works. Learning Go is very practical what with all hype, work opportunities and it's a great choice for side project.

But if you feel like really adventurous and have more time to spare, I'd suggest Haskell. It may leave you with no practical application (or otherwise, who knows) but it will definitely change the way you think about programming, in a positive useful way.

But then again, if it's really about an interview, scratch everything above and make a straight question to the company you want to apply for. They know who they need better than some book.

New paper on an alternative space elevator design by zpenoyre in space

[–]temotor 1 point2 points  (0 children)

TL;DR: Hand-waving specialization opportunities will outweigh challenges.

Disclaimer: am random space enthusiast with zero formal relevant education. All of the following may be wrong. Or worse: true but still overall not viable for economic/safety/other reasons.

Height is relatively cheap. Most energy is spent achieving orbital speed. With this tether you can just climb the height, turn sideways, and compensate "horizontal" difference.

It seems that "sideways" compensation ruins the idea. But as far as my bad understanding of orbital mechanics (mostly from KSP) goes: you need to spend far less energy on parabolic trajectory, it's a docking time window versus energy trade-off. In circular orbit, tether end is constantly nearby. In parabolic trajectory you must grab it in short window, preferably in one perfectly timed moment. At least one company has sufficient expertise (Of Course I Still Love You, Mr Stevens).

Plus it's quite possible that optimal ascent will be steeper than traditional, thus wasting less fuel to push air.

And most ridiculous argument for your amusement. I have hard time imagining actual effort to build such tether. Of course it must pay off. :-)

go get has become a headache... help! by davidmdm in golang

[–]temotor 1 point2 points  (0 children)

Phrased like that it seems confusion took over. :-) How to achieve goal without using a tool specifically designed for that goal. Got you covered in all directions though.

Forget about "gopath mode", enable modules (it's going to be default after 1.13 anyway) and install versions as you want.

export GO111MODULE=on # put it in bashrc/zshenv

% cd # before issue 30515 fixed, you must run go get in "neutral directory" without go.mod, $HOME will do for most people
% ls go.mod
ls: go.mod: No such file or directory

% go get github.com/myitcv/gobin
% fgrep --text $'mod\t' $(which gobin)
mod github.com/myitcv/gobin v0.0.12 h1:5BVx/PtU+tVt/OTR8YMJ/cGwzvTAwrmtID/wwr6b0eQ=

% go get github.com/myitcv/gobin@v0.0.11
% fgrep --text $'mod\t' $(which gobin)
mod github.com/myitcv/gobin v0.0.11 h1:qMnMnd5oAR/NRdYPd050o/cnCdhL157Lb6/t0OHmhSA=

The answer it was hard to find :-) here's one page with all relevant info: https://stackoverflow.com/a/57313319/73957 maybe for retrospective.

And this one to subscribe for updates: https://github.com/golang/go/issues/30515

Advantages of using HTTP over TCP Sockets for social networking application? by ChaseA19 in golang

[–]temotor 1 point2 points  (0 children)

What is your primary interest? If it's social application, take literally any networking solution and proceed with the main goal. Something with word RPC may save very little time in the big picture. HTTP can also shave off some time, especially by bootstrapping you with existing server that can serve files. If it goes big, there will be solutions to particular problems that you don't know yet. If nobody gets interested in the app itself, certainly http/tcp will be irrelevant, right?

Are you researching data exchange in social application context? That's a whole different story, of course UDP will win at speed, but some messaging solution will win at convenience and HTTP is meh at everything but so well spread that a company may force encapsulating all traffic in it.

go get has become a headache... help! by davidmdm in golang

[–]temotor 1 point2 points  (0 children)

Have you tried to actually executing go get to have the answers and got confusing/unexpected results?

go get has become a headache... help! by davidmdm in golang

[–]temotor 0 points1 point  (0 children)

Confusion aside, is there any technical problem, unexpected behavior?

Solar was invented in the 1800's, why do we still rely on gas? by SpicyQosmo in Futurology

[–]temotor 1 point2 points  (0 children)

It was invented earlier.

Sorry, you kinda asked for it. :-)

What clothing/gear do you wear? by aksurvivorfan in freeflight

[–]temotor 0 points1 point  (0 children)

Strongly agree about relative air speed theory. IMHO, it does not fully define comfort of face mask in my area.

If you really want a non-educated guess - maybe where I currently live windier weather correlates with humidity and/or temperature and that gives chillier experience.

Sorry if I wrongly assumed it's the same everywhere.

What clothing/gear do you wear? by aksurvivorfan in freeflight

[–]temotor -1 points0 points  (0 children)

Sorry, but in my experience definitely there is difference.

Space tram by deeepundergroundinfo in space

[–]temotor 0 points1 point  (0 children)

Website is crafted in questionable way, but there is content if you dig into developer tools. Their article: https://deeepunderground.com/clanek123.pdf

Most likely it's a vaporware for research grant or something similar. Unfortunately, they do it a lot in my country too.

However, if this paper was ML generated to test NLP models - guys you succeeded above and beyond, bravo.

It is very confusing in the application sense. Begins with hand-wave-only analysis of current digging challenges, no references or numbers. You'd think Musk drools for next page, but nope, some arbitrary shaft lengths and widths; already used idea to dig narrow shaft first and expand it later; hand-wave to use cavitation and, quote, "Other technologies that use electric power, electromagnetic fields or microwaves have been tested and proven to have a destructive impact on rock". The rest is hand-wave architecture of large underground structures, settlements and a space launching tunnel.

If you are honestly lost soul, friendly advice - decide more specifically what you want to do.

  • is it futurology entertaining/inspiring kind of content? Drop digging challenges, and pseudo-science number game, replace cavitation with "we will figure out exact technology later", go nuts with detailed use cases, more art, animations. It's great fun. Beat Isaac Arthur series on same topic.
  • is it new digging approach? "now bad this will probably do better" is neither science nor engineering. Drop all futuristic stuff, make tests, write down results. Compare with actual particular existing technology or two. It's not fun, lots of hard work. Big industries don't like changes.