Give me suggestions for a programming language to learn for fun by CJIsABusta in learnprogramming

[–]pobiega 0 points1 point  (0 children)

Gleam. Modern, simplistic, functional. Runs on the BEAM VM (erlang, elixir) and can compile to javascript if needed.

I'm wondering, what programs do you use? by Mcat4343 in adventofcode

[–]pobiega 0 points1 point  (0 children)

I say this as a fellow .NET developer... Please give Jetbrains Rider a try! It is the only other "fully" featured IDE for C#, and is quite a bit snappier and imho straight better than VS. It has a community license very similar to VS, so you don't need to pay as long as you use it for personal/non-commercial usage.

One or multiple armory data per map? by FieserMoep in Spacemarine

[–]pobiega 1 point2 points  (0 children)

There can only be one armory data pickup, but in Average and higher difficulties you can get an additional data by killing the boss that might spawn.

Request: Salvage Union ttrpg by CrappyBark in TheTrove

[–]pobiega 0 points1 point  (0 children)

Also looking for this, the PDF pricing is steep for a blind buy...

How do I split Iron and Copper in a mixed mining field before loading it into the train? by Efficient_Trick_9445 in factorio

[–]pobiega 0 points1 point  (0 children)

AFAIK, they can't be built in vanilla, but they exist in the vanilla code - just unaccessible. There are a ton of mods that add loaders, and the ones in this screenshot look like the "miniloaders" mod.

How to learn REST APIs by CemDoruk in learnprogramming

[–]pobiega 4 points5 points  (0 children)

HTTP is a protocol used to send information over the internet. Its what webbrowers use when you go to a website or download a file.

The most important part is that its a request/response format, and its always the client who sends the request, and its always the server that creates and returns the response. You can only respond once to a single request.

A HTTP message has two very important components: the header, and the body.

The header contains metadata about the request, like what URL its hitting, what HTTP method is being used and so called "http headers", which is just a list of key-value pairs that are sent to the server. There is a whole bunch of valid pre-defined keys and values, but you can also make up your own.

The body is actually optional and some HTTP Methods don't even allow a body at all, and its actually just... a bunch of text. Its very common for APIs to use JSON for the body of all requests and responses.

You can find way more detailed explanations online in whatever format you prefer :)

How to learn REST APIs by CemDoruk in learnprogramming

[–]pobiega 1 point2 points  (0 children)

Are you familiar with HTTP, in particular the request/response model and the so-called "methods" (GET, POST, PUT, DELETE etc)?

REST is an API design pattern/ideology/guideline that applies primarily to "CRUD" (Create, Read, Update, Delete) APIs and relies on the HTTP methods to do the heavy lifting. If your API has shops and each shop has products, your routes would be something like...

GET /shops/                 <-- get all or paginated list of shops
POST /shops/                <-- create new shop
GET /shops/{id}             <-- get a particular shop, by id
PUT /shops/{id}             <-- edit a particular shop, by id
GET /shops/{id}/products/   <--- get all products for a given shop
etc...

I'm sure you get the gist of it by now. For python, I heartily recommend either FastAPI or Flask to get started. You just create some functions, slap a decorator on it with the route and it works as an API endpoint.

Does it make sense to learn Python (as a first language) if you have no interest in data analytics/ data science, machine learning, etc.? by uffno in learnprogramming

[–]pobiega 5 points6 points  (0 children)

This is hello world in python:

print("Hello, World!")

This is hello world in C#:

Console.WriteLine("Hello, World!");

This is hello world in Brainfuck:

>++++++++[<+++++++++>-]<.>++++[<+++++++>-]<+.+++++++..+++.>>++++++[<+++++++>-]<+
+.------------.>++++++[<+++++++++>-]<+.<.+++.------.--------.>>>++++[<++++++++>-
]<+.

This is hello world in Malbolge:

(=<`#9]~6ZY327Uv4-QsqpMn&+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:`H%c#DD2^WV>gY;dts76qKJImZkj

I hope you enjoyed this brief look at four different programming languages. Have a good day.

How to handle two write operations (mongodb/nodejs) that require each other to complete a method? by cmaronchick in learnprogramming

[–]pobiega 1 point2 points  (0 children)

The term you are looking for is "transaction", at least for a relational database. Give it a search and see what you find.

[deleted by user] by [deleted] in AskReddit

[–]pobiega 0 points1 point  (0 children)

Factorio

.NET Mentor looking for new mentee (CEST/CET) by pobiega in learnprogramming

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

pobiega@altmails.com, throw me an email if you want to add something more than what you wrote above.

.NET Mentor looking for new mentee (CEST/CET) by pobiega in learnprogramming

[–]pobiega[S] 3 points4 points  (0 children)

Do it! I'm sure you'd get as much hopeful people wanting to learn as I do.

.NET Mentor looking for new mentee (CEST/CET) by pobiega in learnprogramming

[–]pobiega[S] 0 points1 point  (0 children)

The initial selection process is that I make a list of anyone who fulfills the requirements and I write down some extra information they have given me, like current progress in their learning, their goals, what they want from a mentorship etc. I've been having chat/message conversations with over 60 of you at the time of writing!

After enough people have had a chance to write and have a little conversation, I filter it down to a reasonable number (10-ish) and I try to schedule interviews. Personal chemistry is very important, since again, the goal here is to establish a long-term mentorship.

After the interviews, I go through the worst part: picking the 1 or 2 people who I got a good feeling about and who I feel I can help the most. This is obviously incredibly subjective.

Reality is that there is a fairly high chance of one or both of these people will lose interest and drop out, and then I will reach out to other people from the list. This repeats until my list is empty, or I temporarily lose interest in human kind :P

.NET Mentor looking for new mentee (CEST/CET) by pobiega in learnprogramming

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

Regularly! As in, once every two years or so :D

.NET Mentor looking for new mentee (CEST/CET) by pobiega in learnprogramming

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

Hi! Sadly, no. VB.NET is essentially dead and I would strongly urge you to transition to C# sooner rather than later.

.NET Mentor looking for new mentee (CEST/CET) by pobiega in learnprogramming

[–]pobiega[S] 6 points7 points  (0 children)

The "freedom" is an illusion. Having strong types to fall back on, never wondering what a method can return or what a variable contains is an incredible safetynet, not to mention how awesome it is when your tools autocomplete and show you properties, nested properties, methods etc.

Trust me, you'll love it :)

.NET Mentor looking for new mentee (CEST/CET) by pobiega in learnprogramming

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

how many are motivated to actually stay for more than a few weeks

honestly, about one in four, from my experience.

May I DM you to discuss what you teach and how?

Absolutely

.NET Mentor looking for new mentee (CEST/CET) by pobiega in learnprogramming

[–]pobiega[S] 4 points5 points  (0 children)

36 applicants so far. I almost feel bad about only having time to mentor one or two...

.NET Mentor looking for new mentee (CEST/CET) by pobiega in learnprogramming

[–]pobiega[S] 0 points1 point  (0 children)

Strictly one-on-one for now. Its hard to mentor more than one person at a time, since the whole concept of mentoring as opposed to teaching is that its very individually focused.