[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: Shrug.jpg (41 KB, 427x441)
41 KB
41 KB JPG
What are you maids working on?

Last one: >>106908794
>>
>>106922287
Is there any github script that will autoremove registry keys for Visual Studio? All other ways to develop something in C++ on Windows are inferior, but this trannyware will nag you for pajeetsoft account sooner or later, unless you remove the keys manually?
>>
>>106922287
vertically integrated deep tech. currently pre-rev after our 3rd seed round
>>
Despite being peak pajeet programming, learning Hibernate properly (not just doing basic query in spring boot) is extremely useful.
>>
is it wrong to store a reference to the pointer contained inside of a unique_ptr if that reference is going to be deleted at the same time as the unique_ptr? My thinking is that the thing holding the reference should not have any ownership over the object and I'm using smart pointers instead of regular pointers to take advantage of polymorphic destructors.

it feels wrong, but it also makes sense to me
>>
File: 1737530393044444.png (311 KB, 680x621)
311 KB
311 KB PNG
Why does Python freak out if I mix spaces and tabs in indentation?
>>
>>106922841
because it doesn't have braces and must use something else to determine the beginning and end of a scope
>>
>>106922841
dumb frogposter
>>
>>106922841
syntactic ambiguity
>>
>>106922822
Can't you just take reference to the pointee?
>>
>>106923376
no, because the pointee only knows about the base type and the reference is on the derived type and is used for something that does not exist on the base type
>>
How often did you guys revisit work you did after learning new things and reflect how miserable your first pass was? How do you not kick yourself over it?
>>
File: 1759969788514.gif (673 KB, 512x512)
673 KB
673 KB GIF
>>106924704
>How do you not kick yourself over it?
You should have the opposite emotion. You've advanced enough to recognize shortcomings and correct or avoid them. That is an achievement. You are becoming a maid.
>>
i just spent 2 hours on a friday night solving a spatial problem with modular arithmetic when (after I solved it) it dawns on me i could have just looped over a the spatial coordinates with a bunch of loops =(
>>
>>106922841
why are you using tabs anyways faggot
>>
WHY DO THE FAGGOT USERS OF THIS GENERAL DON'T BAKE BEFORE THE MAIDFAG DOES REEEEEEEEEEEEEE
>>
>>106925400
This is a maidposting site.
>>
I have a spreadsheet full of number values. I have an XML file in Visual Studio, with a bunch of lines. Each line has two values. I want to paste all of the number values from the spreadsheet into the XML file, as the second value on each line. Is there an easy way to do this? Right now I'm just manually copying each value over.
>>
I bought a domain and rented a cloud (can't self host because NAT)
what can I do with it?
>>
>>106926503
who did you rent the server instance from? i've been meaning to get a test server for a while but everything seems over priced. i just want a linux box to ssh into and host some shit.

oh set up nextcloud for you and your family(?)
>>
>>106922287
>What are you maids working on?
I want to learn bash and python, do you think I can do this without going to uni, anon-senpai?
>>
If the thing you're making keeps getting better all the time, maybe you're polishing a turd.
>>
>>106926714
bash is simple. there's a couple of guides on the TLDP website that are good.

vanilla python is also retard simple, but the packaging is exhausting and expansive, so it's best to have a use case before diving in.

was this a serious question?
>>
>>106926757
Absolutely bullshit reddit answer before I saw the first arbitrary linebreak.

Bash is not "simple". It's 6 kinds of fucked and there are 20 ways to do the same thing.
It's simple if you type the command and don't care to consider why it looks like that and how it works which is how 2000 pajeets upvoting a Stack Overflow oneliner operate.

Adversely I assume C++ is a complicated big boy language to you because it has 400 keywords.
>>
File: astolfo.jpg (1006 KB, 2802x4096)
1006 KB
1006 KB JPG
>>106926757
>was this a serious question?
Yes, senpai. My loonix love motivates me to learn bash.

And for Python it's just whenever I use some scrips or AI shit, they always require some venv and pip shit, so I thought.. "I should learn more about python, it's useful and everywhere"
>>
>>106926587
hetzner, < $4 a month
>>
>>106926792
>i'm mad that i have choices. this is your fault!!!!
sir please calm down, you're scaring the children.
>>
>>106926792
>t. still hasn't figured out the difference between <, <<, and <<<
>>
>>106926809
Sorry I had an irrationally angry autistic moment there. I've been reading /r/programming too much, which is once a year

>yes sir use Bash. The industry defacto for 40 years since computers were made of wood. Secure on all worldly systems

In reality there is literally no standard way to format flags or parameters and every program just makes up their own.
>>
>>106926850
>In reality there is literally no standard way to format flags or parameters and every program just makes up their own.
binaries and their associated flags are not bash. they are entirely independent of bash. bash is the language. does using zsh mean ls flags are zsh?
>>
>>106926859
Powershell has ways of handling standard input. If you pass a dash it calls it a parameter.
This is one of the basic things that I think probably should've been implemented in Bash itself but just isn't.
>>
>>106926859
>>106926850
Anon chan? Anon senpai?
So should I learn bash and python now?
>>
>>106926873
again how a binary parses input variables is dependent on the binary(also why everyone bitches about bad documentation/man pages). they can be referenced with shell variables. e.g. i pulled this from my .bashrc.

function godoc() {
go doc ${1} ${2} | less

}
>>
>>106926882
Learn Bash as a utility when you need to and completely throw out any expectations about learning how computers work and expecting it to make sense.

Use Python for any kind of large-scale project.
>>
>>106926888
Powershell accepts "arguments" that are just passed in as values too. I think it has to, I don't know how else a shell is supposed to work. It also binds them to names if and when you tell it to.

Bash has nothing like this. If you want to identify a flag then you write a parser like every other Bash progrma does.
>>
File: frog.jpg (62 KB, 976x850)
62 KB
62 KB JPG
codex is kinda expensive
>>
File: pepe+.png (275 KB, 580x449)
275 KB
275 KB PNG
>>106922841
Because some moron decided white spaces should be part of the syntax.
>>
>>106927255
Normies fear the bracket and the brace. On the bright side it prevented code obfuscation to some degree.
>>
I can't talk about my project because I want to sell it.
>>
Snake game.
static void gameTick(){
if (!Snake.moving) return;

const int headDir = Snake.headDir;
const int newHeadPos = Snake.headPos + s_direction[headDir];
if (Canvas.pData[newHeadPos] & s_wallFlag) {
PlaySound((const char*)SND_ALIAS_SYSTEMASTERISK, nullptr,
SND_ALIAS_ID | SND_ASYNC);
return mazeInit();
}
Canvas.pData[Snake.headPos] = setDirFlags(s_tailColor, headDir);
if (Snake.tailSize == 0) {
Snake.tailPos = Snake.headPos;
Snake.tailSize = 1;
} else if (Snake.tailSize >= Snake.maxTailSize) {
const unsigned oldTail = Canvas.pData[Snake.tailPos];
Canvas.pData[Snake.tailPos] = 0;
Snake.tailPos += getDirection(oldTail);
} else {
++Snake.tailSize;
}
if (Canvas.pData[newHeadPos] & s_fruitFlag) {
PlaySound((const char*)SND_ALIAS_SYSTEMEXCLAMATION, nullptr,
SND_ALIAS_ID | SND_ASYNC);
Snake.maxTailSize *= 2;
Snake.fast = Canvas.pData[newHeadPos] & s_boostFlag;
if (!--Snake.fruits) return ++Snake.level, mazeInit();
}
Snake.headPos = newHeadPos;
Canvas.pData[Snake.headPos] = setDirFlags(s_headColor, headDir);
}

https://godbolt.org/z/3xqaMEKGc
>>
WinAPI is fucking miserable
>>
>try basedpyright in Zed
>open project with several dependencies
>one of them doesn't have native typing
>it also doesn't have a typing stub available
>project littered with warnings about typing
Lord in Hell. On that note, is it possible to ignore a complete module from typing warnings in basedpyright?
>>
File: 1735595028047368.png (1023 KB, 1493x1407)
1023 KB
1023 KB PNG
love cuties on programming tutorials
>>
>>106922822
if you are wondering if it could be done better, the answer is that with enough time, you will always find a more simple and faster solution.
usually when it comes to performance, you need to think outside the box and measure (ideally measuring a real world example).
>>
>>106922287
Fuck printf.
>>
>>106928839
That's.... not really a cutie. Get some standards anon
>>
>>106928839
thats a man
>>
>>106930370
>>106930398
100% a woman and she's into FP which adds 5 points
https://www.youtube.com/watch?v=hMVuguvKLnE
>>
>>106930495
Alright I'll checkit out
Why does everything have to be FP nowadays FFS.
Feels like I'll never be up to the standards
>>
>>106930669
Literally nothing is FP these days. The most popular languages are all OOP with mutations and there is a lot of hype around borrow checker languages. Haskell, OCaml and ML are all obscure in comparison.
>>
File: 1738020173257370.png (1.11 MB, 1117x1380)
1.11 MB
1.11 MB PNG
another cutie
https://www.youtube.com/watch?v=y9a3fldlvnI
>>
>>106930683
I mean that I've been seeing many "gurus" and lots of people on twitter go on and on about FP. But yeah I suppose you're actually mostly right.
>>
>>106925015
>You are becoming a maid
i married a controlling women
just divorced her so maybe theres more room for me to kick this state of being
>>
>>106930693
thats a man
>>
File: file.png (1.87 MB, 1024x1536)
1.87 MB
1.87 MB PNG
>>106930693
Another cutie
>>
>>106924704
I did that at first but I feel like I haven't actually progressed much over the past few years. Maybe I'm already that good for a while or maybe I just suck.
>>
>>106926793
Python is probably the easiest language. University hardly helps with programming, except that they force you to do projects.
>>
you people are so deranged from the tranny spam you can't tell the difference between a man and a woman any more
>>
>>106924704
My first few programs were Project Euler problems back in 2005 (written in BASIC and C). I still have them and they are not bad because I always checked the threads and improved my solution until it was as good as the ones that others posted.
>>
>>106930773
you will never be a woman
>>
>>106930803
Good, since I am a man. But if you can't tell which of the three girls above is a tranny (there is only one) you have a problem.
>>
>>106928839
tranny
>>106930693
tranny
>>106930726
kike and possibly a tranny.

all of them go in the oven, but we're ovening the jew twice just to make sure.
>>
>>106930833
It's so ironic and hilarious that you said "possibly a tranny" to the only actual tranny in that list
>>
>>106930849
fucking kek
>>
>>106930849
it's so hard to tell with kikes. they're all hideous.
>>
File: 1743451009476573.jpg (195 KB, 1024x1024)
195 KB
195 KB JPG
You'd think with all the "women" in tech you'd have developed some sense.
>>
>>106930849
>>106930870
admit it you would let him suck your shmekl
>>
The Chud Gambit:
If you call a man, a man, if they are made of söy they will seethen and fellow men remain unperturbed.
If you call a troon, a man, they will seethe, they shall never be women.
If you call a woman, a man, you will lower their self esteem, THEY DESERVE IT.
Post hoc ergo propter hoc: we're all men.
>>
File: 1734580731906595.gif (814 KB, 400x267)
814 KB
814 KB GIF
Turns out that /dpt/ is a sexhaver general, given the lack of activity on a Saturday night.
>>
how do you guys stay motivated? I keep procrastinating and just reloading 4chan every 5min
>>
>>106931645
your brain is broken. get off the tick tack tock youtube short train you dumb zoomer. stop whacking it to midget trannies too.
>>
>>106931677
but I don't watch any of that. Only 4chan. Not even gif or wsg since it takes ages to load one webm.
>>
>>106931645
no favorite prog lang?
>>
Python used to have a built in NNTP library, but removed it as obsolete. Sad!
>>
This took way too fucking long to get right.
>>
>>106934454
Um, retard alert?
https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_crc32_
>>
>>106934511
I'm computing ISO CRCs, not the Castagnoli variant implemented by the CRC32 instruction. Wrong polynomial.
>>
File: file.png (71 KB, 1024x1024)
71 KB
71 KB PNG
>>106934642



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.