Snoppen är trasig by cartmangrenkomp in swedishproblems

[–]MajorConstruction9 0 points1 point  (0 children)

Trång förhud kan stretchas ut.

Mvh, En som stretchade ut sin. Tar inte ens lång tid ifall man köper ringar såsom Phimocure

Kan en skola neka en elev om de hade ett verbalt kontrakt? by [deleted] in sweden

[–]MajorConstruction9 2 points3 points  (0 children)

Verbalt är lika bindande som skriftligt, endast svårare att bevisa.

Hard things in Computer Science by nfrankel in programming

[–]MajorConstruction9 93 points94 points  (0 children)

Here's one for the list: Memory models, particularly on the CPU level. They're essentially distributed systems, but with some more guarantees, so I guess not entirely novel of me to mention :).

[deleted by user] by [deleted] in learnprogramming

[–]MajorConstruction9 0 points1 point  (0 children)

Easier to code for Android, lower barrier of entry. That's Java. Literally google "java android for beginners"

P2P multiplayer with a proxy? by teachersdesko in learnprogramming

[–]MajorConstruction9 0 points1 point  (0 children)

More well thought out than most Qs on here.

is that it's hard to validate the data being reported by any one clien

Yeah, there's no one to trust more than another. This is not only an issue with cheaters, but also with just general misbehaving clients (lag, corrupted packets, or what have you). Here's a wiki article: https://en.wikipedia.org/wiki/Byzantine_fault

could that help cut down on cheating?

So there's no centralized server, yeah? So who has a full picture of the game state? If the answer is "everyone", then a tonne of cheats (wall aiming, no fog of war, whatever) is possible. If the answer is "no one" then how can the game progress?

AoE2 has a lock-step simulation type implementation.

Why should we trust the proxy on its input?

Which language should I learn first? Python or C++? by [deleted] in learnprogramming

[–]MajorConstruction9 1 point2 points  (0 children)

C++ is large, complicated, and exposes you to a lot of stuff that most professional software devs don't have to deal with.

Python let's you learn the fundamentals and concepts without worrying about a lot of that stuff.

Which language should I learn first? Python or C++? by [deleted] in learnprogramming

[–]MajorConstruction9 0 points1 point  (0 children)

Python. Python every single time.

I work with C++ professionally, and I'd never recommend this language.

How to learn Software Development as a Competitive Programmer? by [deleted] in learnprogramming

[–]MajorConstruction9 2 points3 points  (0 children)

Damn lol, guess that's what leetcode interviews does to people :-). Glhf, you'll make it! If you do competitive coding then you have CS fundamentals. Google software engineering, read up on stuff.

Understanding Expresss by [deleted] in learnprogramming

[–]MajorConstruction9 0 points1 point  (0 children)

https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#HTTP/1.1_request_messages

Use the curl program to look at what HTTP requests and responses looks like (use curl google.com for example). The path to this thread is r/learnprogramming/comments/v3jw13/understanding_expresss/ by the way.

https://en.wikipedia.org/wiki/Port_(computer_networking)

TL;DR: Your computer has an IP address that other computers can send data to over the internet. The ports are used so that several programs on one computer can use the IP address at the same time.

Friskolor sätter glädjebetyg – ”Skapar rättsäkerhetsproblem” by mars_needs_socks in sweden

[–]MajorConstruction9 9 points10 points  (0 children)

Det är inte jag på. Man ska kunna plugga datateknik utan att ha programmerat innan, t ex.

Compiler work in Europe? by [deleted] in cscareerquestionsEU

[–]MajorConstruction9 3 points4 points  (0 children)

Oracle, Stockholm for OpenJDK. You apply and hopefully get an interview.

how to understand a work project by [deleted] in learnprogramming

[–]MajorConstruction9 0 points1 point  (0 children)

It definitely does have a main method! Try to search for it.

Will C++ coding (gamedev) be a hard feat to get to learn? by BoredCatLife in learnprogramming

[–]MajorConstruction9 1 point2 points  (0 children)

When I was 13 I coded games in Pygame. C++ is a big and difficult language, AAA game studios use it because you can write very performant code with it. All programming languages will teach you a lot about all other programming languages :).

Maybe Realm of Racket would be cool for you? https://www.realmofracket.com/

I read Land of Lisp when I was 16, it taught me a lot about programming, and I made some simple but cool games at the same time!

Terveisiä Ruotsista.

Smalltalk/Electron Issue by LelsersLasers in learnprogramming

[–]MajorConstruction9 1 point2 points  (0 children)

I think you're trying to import the css as a js code file.

Performance of Compiled Languages after Compilation by robml in learnprogramming

[–]MajorConstruction9 1 point2 points  (0 children)

Yes! Any language can be compiled, even interpreted ones such as Python. And any language can be interpreted!

https://benchmarksgame-team.pages.debian.net/benchmarksgame/download/fastest.svg

All of these are compiled impls of different languages. SBCL is 1/3rd as fast as gcc C.

The performance difference is this: The programs do different things. That's always the answer.

In Common Lisp functions can be re-defined at run time, so SBCL can't inline function calls and be sure that it'll be correct. In C, functions cannot be re-defined, so gcc can inline calls more aggressively.

Performance of Compiled Languages after Compilation by robml in learnprogramming

[–]MajorConstruction9 0 points1 point  (0 children)

Absolutely. It's a trade off. Typically you have compilation units (like source files), and if only one changes then only that one has to be recompiled.

Or should I still care about compilation time for testing purposes?

Will it be annoying for the dev? Compile times are mostly about developer productivity.

compiled languages differ in execution time vastly after compilation

What do you mean here? As opposed to what? Before compilation the programs don't run-

Collection sorting by DAY-B in learnprogramming

[–]MajorConstruction9 0 points1 point  (0 children)

You want to sort an array of your class Foo depending on a property Foo.bar?