• 8 Posts
  • 121 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle

  • We have (somewhat?) similar action in the US, there was a republican GOP member in New Hampshire that was pushing to keep legal marriage set at 16 rather than 18, described the 16 year-olds as “ripe”…super creepy

    I am pretty sure he’s an awful person just because he’s an American politician.

    But you’re missing the point though, you still think of young marriage as an absolutely-no-questions-asked obscene thing, which is understandable, seeing that most western teenagers are brainwashed into thinking they’re kids, and are therefore immature and aren’t ready for marriage. (Which creates some other problems because that’s the natural age for marriage)

    Where I live, we have 16-year-old men marrying 14-year-old women, and they have a child a year or two later, and they’re really fine, except for maybe being less educated that they could have otherwise been. Speed of maturity actually depends mainly on two factors: difficulty of life (maturity of the mind and body), and heat of the climate (sexual maturity), and considering how high both were at the time of prophet PbUH, marrying at 9 is absolutely normal.

    In fact, I am sure there are many marriage-ready 9-year-old women at places like Uganda and the poor African nations.

    Actually, the idea of setting a minimum age only came to us with the french when they decided to colonize us, so of course we won’t look positively at ideas brought by people who came to rape and pillage, and it still doesn’t seem so bright considering they’re still pillaging us implicitly through corrupt political affairs.

    Isn’t it weird that some resource-rich nations are dead-poor, while something like London can look like science fiction, and that a system as inefficient as democracy continues to function, and that every citizen somehow has human rights, and that the electricity doesn’t get cut daily. To this day I have a hard time believing that flat asphalt roads exist, and that driving on them doesn’t feel like riding a roller coaster of some sort; NO IT MUST BE FICTION, I WON’T BELIEVE IT TILL I SEE IT WITH MY OWN EYES!!!

    Note to Americans: you guys might say: “Oh, but our medical system is a scam and colleges cause students to drown in debt because we normalized the disgusting act of usury!”, it’s just because your government’s is spending a third-of-the-world’s-military-budget worth of money on bombing Iraq and Yemen and Palestine and Cuba and Afghanistan and some other things in the name of “War On Terrorism” against those they pillaged. (No wait they made it back when they built a dock in Gaza to steal all their oil, so your government actually has no excuse, it must be corruption/falling into usury)

    On the topic of American wastage, I read an article long ago where Americans were concerned that a 2000$ houthi drone was usually dealt with using a 2m$ missile, so the Pentagon spokesman or something replied with what was essentially: “Don’t worry, Americans! the houthi’s “terrorism” is already causing much more economic harm, so that’s a negligible efficiency loss”, like, how is telling people that the situation is much worse than they imagine supposed to calm them down?

    Edit: I forgot Russia, almost the only nation America has any right to actually fight.



  • Here’s the problem with English: I can not use the word “you”, and still have people know whether I am talking to them, or to people like them in general. Some of my "you"s were plural, some were singular. I need some way of coping with this language.

    You replied to only 1 paragraph of mine, and decided I am a troll just for suggesting pushing that slavery/“pedophilia” might not be bad, unlike what you were taught.

    Here’s an article I remembered, it’s written by a Christian:

    Although you’ve been lied to, it’s not the lies that’s the problem. As an adult, you can a lot of the times tell when the media is manipulating you, especially in the last past decade it’s gotten so obvious even a Boomer could see it. But what you don’t see is how when you were lied to (or told selective truths) as a child, you didn’t have the same BS-detector, and that allowed a lot of deep-seated impressions about the world to be formed. So a lot of people who don’t believe anything the media says now (rightly) are still mind-cucked. They accept the programming and differ on the details.

    I will give you this hint. Basically all of your programmed emotional responses are your enemies. There was an old Moldbug blog post where he talked about even far after “awaking from his dogmatic slumber,” he still was surprised that if he saw a group of Nazi LARPers, he would reflexively have a pang of emotional stress, but if he saw Stalinist LARPers, he wouldn’t have the same kind of emotional reaction. I think everyone raised in the West has that same programmed reaction. You might know with your head that the communist death count is supposed to be higher and the suppression wider, but it doesn’t click because you weren’t made sensitive to it.

    Edit: no, actually, English isn’t the problem, since I appended “guys” to my statement about looking at religion and deciding it’s silly, you should know that I wasn’t talking about you personally.

    I think the biggest flaw is assuming you’re among the atheist/agnostic crowd, but even then, I appended that claim with “(I guess)” to indicate that I am indeed putting words in someone’s mouth. Maybe you’re among the Christian crowd, or maybe you’re a… Zionist Jew? Hindu?

    For any passing people, the original reply isn’t edited, so I am safe from that side of accusations.



  • Then let’s talk facts and logic, why is an older person marrying a younger person bad? because you’re an educated Atheist/Agnostic (I guess), you must’ve questioned what you were taught at childhood, unlike those brainwashed and spoon fed Christians.

    “Minimum age of marriage”, who came up with concept? it surely isn’t common sense since it only appeared less than a century ago, so what is it? Some may say that young marriage is a mere relic of the ancients, a result of their underdeveloped logic and science, and that our advanced logic is better and is infallible.

    But wait, your people, just mere a century ago saw people 2 centuries a ago the exact same way, and so did those before them, so using our logic, we can deduct that our logic is illogical.

    How about statistical data we can speculate, a mere century ago, how did the world look like? there was certainly very little employees, even Christians believed in their book, Javascript did not exist (alhamdulillah), young people were treated as adults, and people older than Israel who to this day live under bombing by your morally superior society were being born; How does something like the depression rate among their youth compare to today? It is reportedly much lower, so how did your generation fail? Surely with all that development of medicine and the like, your people should “logically” be much happier. Are you really strictly superior to the ancients?

    “But statistics back then were biased and limited”, I see your point, unlike the “infallible” statistics of today, those statistics were surely awful, so let’s move to broader ideas.

    At childhood, you were spoon fed many ideas, like “Slavery is unacceptable”, “The old marrying the young is awful”, and “Humans evolved from monkeys”. By using the fact that our logic is illogical, we can conclude that these aren’t concrete facts. How is slavery involved with almost every product in the average American household? how did the ancients grow up to be healthy adults? Again, ask your grandmother. How is there not, to this day, concrete evidence of humans evolving from anything but slightly taller humans?

    How is slavery unacceptable in your eyes, yet you can’t live without it? Is the average McDonalds worker treated better that how Islam treats slaves?

    How did the ancients grow up to be healthy individuals? Is insisting that you’re much better than the ancients truly your way of avoiding depression?

    Why is anything that goes against the theory of someone named Darwin, of whose book you know nothing, and whose theory’s shortcomings you are ignoring, and whose teachings you were fed in school, and whose ways you never questioned, mere ancient fables?

    But there stands, the teachings of Islam, Allah’s divine revelation to us, it never failed, for 14 centuries it stood unchanged, yet who reads it could never tell, that this book wasn’t written by a scholar of today, how could it so accurately describe today? how did our caliphate, only a mere century from today, stand strong? How didn’t we truly fail, until we forgot the words and called it a day?

    //////////end

    I got a little peotic at the end.

    You guys just look at Christians and decide that religion is dumb.

    I thought of finishing with some miracles like the 360 joints, the beating of alcoholics and adulterers, and camel milk+urine, but the article south_park_remark reply got too long.

    I realize these miracles can be individually dismissed, it is not their individual traits that will persuade, it is their collected wight. It is the fact that the prophet, peace be upon him, never claimed anything that is wrong, unlike scientists of a mere decade ago, and that his medicines did nothing but heal, unlike scientists of a mere decade ago.

    This is likely to get downvoted, I say this because mentioning downvotes in your posts/comments usually prevents them from being downvoted (a little psychological thing probably)







  • Doods@infosec.pubtoProgrammer Humor@lemmy.mlgot him
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    6 months ago

    I just got some idea yesterday regarding impl blocks, ready to be my respondent?

    I had a big impl block with 4 levels of indentation, so I cut the block, and replaced

    impl InputList {
        //snip
    }
    

    with mod impl_inputlist; and moved the impl block to a new file, and did not indent anything inside that block.

    The advantage this has over just not indenting the impl block in place, is that people will have difficulty distinguishing between what’s in the block and what’s outside, and that’s why the impl was moved to its own exclusive file, impl_inputlist.rs

    Maybe I am overstressing indentation. Ss there something wrong with my setup that prevents me from accepting 4-space indentation?

    I use:

    Editor: Neovide

    Font: “FiraCode Nerd Font Mono:h16” (16px fonts are addicintg)

    Monitor: 1366x768, 18.5 inch, 10+ years old, frankenstein-ly repaired Samsung monitor.

    Distance: I sit at about 40-60 Cm from my monitor.

    That leaves me with a 32x99 view of code excluding line numbers and such.


  • Inaccurate report,

    I just ran Neovim in terminal and was used to Neovide, so I thought it was choppy.

    Intel HD 630.

    There is, however, a 2D game - which I am not going to disclose the name of - that’s pretty broken. (It uses Adobe Flash as an engine)

    Also the steam client doesn’t maximize properly with tiling but I am sure that’s reported.

    I have been daily driving Cosmic for a week now; it caused me Arch-syndrome, everyday I run sudo apt update hoping to get some polish to the desktop.

    Edit: there’s more…

    Neovide’s transparency is completely broken, and shows a blank, though not a pitch black, color and screenshotting it results in seeing the text with a checkered background. (In the resulting screenshot only) (Running on Proton 8.0-5)

    clipboard=unnamed plus, the setting supposed to unify Neovim’s clipboard and system’s, doesn’t work. clipboard: error : Error: target STRING not available

    I also was unable to transfer a file to my phone using Cosmic Files, but Nemo worked, though I read that’s fixed in some Blog.

    Edit II: I just discovered popdev:master it seems to be a general unstable branch instead of just Cosmic things, but I took the risk and added it, I just have to remember to remove it once 24.04’s released


  • Doods@infosec.pubtoProgrammer Humor@lemmy.mlgot him
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    6 months ago

    Formatters are off-topic for this, styles come first, formatters are developed later.

    My other reply:

    How about this one? it more closely mirrors the switch example:

    match suffix {
    'G' | 'g' => mem -= 30,
    'M' | 'm' => mem -= 20,
    'K' | 'k' => mem -= 10,
    _ => {},
    }
    

    How about this other one? it goes as far as cloning the switch example’s indentation:

    match suffix {
    'G' | 'g' => {
    	mem -= 30;
           }
    'M' | 'm' => {
    	mem -= 20;
           }
    'K' | 'k' => {
    	mem -= 10;
           }
    _ => {},
    }
    

  • Doods@infosec.pubtoProgrammer Humor@lemmy.mlgot him
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    6 months ago

    How about this one? it more closely mirrors the switch example:

    match suffix {
    'G' | 'g' => mem -= 30,
    'M' | 'm' => mem -= 20,
    'K' | 'k' => mem -= 10,
    _ => {},
    }
    

    How about this other one? it goes as far as cloning the switch example’s indentation:

    match suffix {
    'G' | 'g' => {
    	mem -= 30;
            }
    'M' | 'm' => {
    	mem -= 20;
            }
    'K' | 'k' => {
    	mem -= 10;
            }
    _ => {},
    }
    


  • Doods@infosec.pubtoProgrammer Humor@lemmy.mlgot him
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    6 months ago

    A single match statement inside a function inside an impl is already 4 levels of indentation.

    How about this?

    The preferred way to ease multiple indentation levels in a switch statement is to align the switch and its subordinate case labels in the same column instead of double-indenting the case labels. E.g.:

    switch (suffix) {
    case 'G':
    case 'g':
            mem <<= 30;
            break;
    case 'M':
    case 'm':
            mem <<= 20;
            break;
    case 'K':
    case 'k':
            mem <<= 10;
            /* fall through */
    default:
            break;
    }
    

    I had some luck applying this to match statements. My example:

    
    let x = 5;
    
    match x {
    5 => foo(),
    3 => bar(),
    1 => match baz(x) {
    	Ok(_) => foo2(),
    	Err(e) => match maybe(e) {
    		Ok(_) => bar2(),
    		_ => panic!(),
    		}
    	}
    _ => panic!(),
    }
    
    

    Is this acceptable, at least compared to the original switch statement idea?


  • Well, what I meant was just rustfmt’s default with:

    • 80 character line
    • 8-space hard tabs

    In addition to naming local variables short names, and soft-limiting functions to 48 lines long & their local variables to 5-10 (you know, normal reasonable things)

    The part about switch statements doesn’t apply as Rust replaced them with match.*

    The part about function brackets on new lines doesn’t apply because Rust does have nested functions.

    The bad part about bracket-less if statements doesn’t apply as Rust doesn’t support such anti-features.

    The part about editor cruft is probably solved in this day & age.

    The rest are either forced by the borrow checker, made obsolete by the great type system, or are just C exclusive issues that are unique to C.

    I left out some parts of the standard that I do not understand.

    I just skimmed through the Rust style guide, and realized the only real difference between the 2 standards is indentation, and line length. Embarrassing.

    *: I experimented with not-indenting the arms of the root match expression, it’s surprisingly very good for simple match expressions, and feels very much like a switch, though I am not confident in recommending to people.

    Edit: How did I forget?! Indentation is limited to 3, increasing code readability.



  • I am on Pop!_OS, I ran sudo apt install cosmic*.

    Don’t worry, you’re not missing out on much, running video games, or any OpenGL thing including 2D games and GPU-accelerated terminal emulators is a bad experience, and alt+f4 isn’t implemented, and f11 to fullscreen is janky, and theming for buttons and such is clearly alpha.

    The promise of an Arabic-supporting, Rust based, GPU-accelerated terminal is too attractive, however, as I was teared between multilingual terminal, Wezterm, Alacritty and Kitty for a while.

    The first is horrible at everything but supporting languages, the second is really janky, the third doesn’t support tabs, the fourth has bad theming and customization.


  • wasting 10% of that space for each indentation? What are you smoking?

    As I said before, this standard is older than C itself, and the kernel’s been using it for decades, I shouldn’t have to explain it. Long tabs and short lines boost readability, and restricting indentation to 3 solves the problem. Read my reply to 1rre@discuss.tchncs.de for more context.

    Also rustfmt didn’t move the string in

    println!("a very long string slice with a static lifetime"); to a new line even when it exceeded a 100 columns, I should seek a solution.

    Note: The actual string I used was way longer than that.