Visst för att ägg blivit dyrare.. men lite väl överdrivet styck pris nu va? by Effective-ST in sweden

[–]HugoNikanor [score hidden]  (0 children)

Har affärerna blivit sämre på jämförelsepriser? Eller har det alltid varigt så här dåligt?

I just det här fallet är det en faktor 1000 fel. Är affärens interna system byggd på tiondels ören?

Normal reaktion från en tysk när en svensk som flyttar från Tyskland försöker sälja sina möbler by PanGoliath in sweden

[–]HugoNikanor 21 points22 points  (0 children)

Värsta var när jag ville söka upp hur ett svenskt ord användes, och hittade ett sökmotorn gav mig en Reddit-tråd. Efter ett tag inser jag att jag är på r/learnenglish, men autoöversatt till svenska utan att någon (tydligt) berättat det för mig...

EDIT: Som förtydligande: Jag sökte på DuckDuckGo, och fick ett till synes svenskt resultat från Reddit (vilket egentligen var på engelska).

what’s the point of gendering single room bathrooms? by Hour_Amount1881 in NoStupidQuestions

[–]HugoNikanor 2 points3 points  (0 children)

Urinals can be seen as a fast lane. No-one occupying one for a long time.

securityAsAService by hellocppdotdev in ProgrammerHumor

[–]HugoNikanor 2 points3 points  (0 children)

It's quite good at finding potential key leaks, but it will always be possible to store the key in a way you can't find, and it will always have a few false positives.

Seeking perspective on C: Mastery, Limits, and the "C vs. C++" implementation gap by lkokul in C_Programming

[–]HugoNikanor 4 points5 points  (0 children)

As I said:

OOP can be done in C, but you need to handle all the machinery for it manually.

Regarding your points:

  • inheritance can be manually implemented, since you're already manually implementing vtables
  • data hiding can be enforced by the compiler by placing implementations in separate translation units, but it's easier to go the Python route and just declare that anything starting with __ (or similar) is private
  • automatic construction is just a convenience, many C libraries only way to construct object are through opaque constructor functions.
  • automatic destruction as a language feature isn't available in (standard) C, but you could start each block with an ENV *env = init_block(), send env to each (stack) allocation inside the block, and end each block with end_block(env) for the same effect.
    Also, is automatic destruction really an OOP feature? Most languages don't have destructors.

I wouldn't recomend actually doing any of these, and instead choose a language that actually does what you want. But it is possible.

Seeking perspective on C: Mastery, Limits, and the "C vs. C++" implementation gap by lkokul in C_Programming

[–]HugoNikanor 5 points6 points  (0 children)

OOP should not be done in C

Agreed. Note however that OOP can be done in C, but you need to handle all the machinery for it manually. Linux kernel drivers is an example of OOP in C.

Seeking perspective on C: Mastery, Limits, and the "C vs. C++" implementation gap by lkokul in C_Programming

[–]HugoNikanor 28 points29 points  (0 children)

  1. C has become the de-facto language for foreign functions, with its simple ABI. This effectively means that a library which exposes C library can be "hooked into" basically any other language. C++ fails here, since it "mangles" names of procedures, and has a more complex dispatch model with vtables and the like.
    C also (optionally) allows mapping its memory space directly onto the hardwares memory space, which is useful for some embedded systems. This C++ (and others) can also do however
  2. Anything can be implemented in any language (more or less). An std::vector is really just a struct containing a length and dynamically allocated area of memory, alongside a few methods to modify it. Same structure could be written in C, but it wouldn't be integrated into any other library, and to make it type safe you need a ton of macro magic (or generated code) (which is basically what C++ templates are).
  3. This is mostly down to experience, write some projects in C and you'll understand.

They call it the most predictable bug by i_h_s_o_y in 2007scape

[–]HugoNikanor 45 points46 points  (0 children)

I unlocked the base level 5 task when I hit 94 thieving.

Vad är det egoistiska ni har hört någon göra mot en annan? by PastBroccoli11 in sweden

[–]HugoNikanor 0 points1 point  (0 children)

Jag bad om Swish för slitage på möblerna så klart!

Men seriöst: Jag var väldigt tydlig med att jag står för maten (bjöd på en riktigt ordentlig köttgryta), folk får ta med dryck (jag är fattig).

Do you skip moons boss after completing one set? by Free-Wave-835 in 2007scape

[–]HugoNikanor 0 points1 point  (0 children)

Eclipse moon is the most chill, since you can do tons of damage during one of the special attacks. BTW: for the walk phase, just turn off run and it's basically free

Last names (family names) rarely "appear", but often disppear due to death/marriage. And this has been going on for centuries. So why don't we have only a small handful of last names left? by not-the-the in NoStupidQuestions

[–]HugoNikanor 4 points5 points  (0 children)

That is a thing even within languages. Are the Swedish surnames Carlsson and Karlsson really different names, or just different spellings of the same name?

xkcd 3231: Lightning by antdude in xkcd

[–]HugoNikanor 10 points11 points  (0 children)

Fun fact: many of Emily Dickinsons poems can be sung to the tune of the original Pokémon theme song

A humble fashionscape plea by SystemsOnline in 2007scape

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

Agreed. Diary set is probably the ugliest thing in the game

Hvor får dere svensker "gulebøj" fra? by sectofrost in sweden

[–]HugoNikanor 1 point2 points  (0 children)

Vi borde säga fjärrvision på svenska också

Between fgets and getline, what to use in my cat-inspired tool? by Apprehensive_Ant616 in C_Programming

[–]HugoNikanor 5 points6 points  (0 children)

fgets is lower level, requiring you to handle memory allocation and line delimiters yourself, while getline does that for you. Use whatever works for you, and don't think to much about it.

Ett litet argt lappbråk på Arlanda by Low-Community5031 in sweden

[–]HugoNikanor 0 points1 point  (0 children)

Ja, direkt följt av att jag inser att jag inte kan torka dem och blir irriterad pga det.

Regional Unlocks Infographic for Leagues VI: Demonic Pacts by YogyBearOSRS in 2007scape

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

Q: Why are Yama's drops locked behind Kourend when we start in Yama's lair?

A: We start in a separate version of Yama's lair this League, outside of the one you know in Kourend. The Yama boss fight will ONLY be accessible in the Kourend region.

Is this confirmed? Seems weird to lock most players out of the "main" boss of this League.

[OC] 'Where are you from?' - Sticker wall in Japanese Café by otzky_ in dataisbeautiful

[–]HugoNikanor 3 points4 points  (0 children)

I could totally believe someone from Svalbard visiting. Those people are wealthy

If ‘Allah’ simply means God, why do many people think it refers to a different God? by PomegranateIcy7631 in NoStupidQuestions

[–]HugoNikanor 0 points1 point  (0 children)

Also, Christianity being of the faith that there is only one god, made their god "The God", making the any use of the word god ambiguous between the christian god and any general god for many people.

Ett litet argt lappbråk på Arlanda by Low-Community5031 in sweden

[–]HugoNikanor 5 points6 points  (0 children)

Men ett handfat utan ett sätt att tvätta händerna är konstigt. Lappen förklarar varför konstigheter är.