[ home ] [ jp ] [ snow / tan ]

/jp/ - Mysterious Thoughtography Collection

Name
Email
Subject
Comment
File
YouTube
Password (For file deletion.)
- Please read the Rules and the FAQ.
- Supported file types: JPG, PNG, GIF, SVG, WebM, MP3, OGG, MID/MIDI
- Maximum file size: 20MB

[Return][Go to bottom]

File: 1468382079908.png (834.34 KB, 1200x1080, boys who program.png) [ IQDB | SauceNAO ]

 No.6550[View All]

Does /nen/ know how to program?
196 posts and 46 image replies omitted. Click reply to view.

 No.27935

Does anyone know a library or other way to get groovy and java compiler output in a machine readable form?

Right now I'm just dumping the Stream into a temp file and running javac/groovyc and reading exit codes and redirecting stderr.

 No.28975

can /nen/ do K&R exercises?
In C, write a function that reverses a string in place recursively.
I'll post my solution and my favorite one from the solutions wiki if anyone else thinks of something.

 No.28977

>>28975
I gave up after the first segmentation fault

 No.28979

>>28977
I bet your code tried to read before the start or after the end of the string in consideration. だめです!

 No.28981

>>28979
I was getting segfaults on mine because I forgot about the difference between char var[] and char* var.

 No.28982

File: 1546108765977.png (170.13 KB, 354x402, ganbaru-beemu-flip.png) [ IQDB | SauceNAO ]


 No.28984

File: 1546110677775.jpg (265.45 KB, 850x1043, 1335564482672.jpg) [ IQDB | SauceNAO ]

>>28982
That looks like a lot more code than one needs.
I'll post my solution and my favorite someone else did.
Don't look if you want to write your own, though.
https://pastebin.com/aqFq5FF8
explanation:
One passes it two pointers to the beginning of the string. as it climbs up the stack, it collects each character of the string into a local variable to each call of the function. then as it cascades back down the stack, it assigns into the string. when f is at 5 in 12345, l+strlen(f)-1 will be 0, at 4, 2, and so on.

 No.28986

>>28984
at 4, 1, I meant to say, oops. it will always be however far along l needs to be.

 No.28987

>>28975
I couldn't think of anything really recursive, so I just transformed the iteration...
http://sprunge.us/0WckGE?c

 No.28988

>>28987
Thats not bad at all! Its similar to the favorite solution on the wiki I posted.

 No.29898

File: 1550191750106.jpg (20.19 KB, 300x300, top20051225.jpg) [ IQDB | SauceNAO ]

I'm gonna install Linux tonite, and I DEFENITELY am going to stick with it, DEFENITELY won't get cold feet and go back tto using Windows 10!! BElieve it!!!!

 No.29902

>>29898
I installed Arch and it's pretty fun, but I wouldn't be able to do anything if I didn't use Google because figuratively almost everything was missing something or wasn't configured properly. As in installing bootloader for dualboot, Xorg, i3, and even the /home partition from my old Linux distro that I forgot to change owner and permissions so every time I tried to run something it wouldn't work.

Well, if you need anything just ask.

 No.29903

File: 1550210000379.jpg (486.61 KB, 700x953, 47919995_p0.jpg) [ IQDB | SauceNAO ]

Also, if I were you I wouldn't completely get rid of Windows. If your computer supports UEFI you should look into dualbooting it with Linux because some stuff might not work. I tried to read Fate S/N with wine and it didn't work. I don't play games so I didn't miss them, however some visual novels simply won't work. It was also good because I had some problems with the intel drivers but at the time I didn't know if it was hardware that wasn't working as it should so it was good that I had a Windows installation because I could confirm it wasn't the hardware.

Do you know what you're going to install? I particularly think DEs look pretty meh on Linux and kinda abandon the fast and minimalist charm that Linux has. This is why almost every application I use is cli-based and using them on a laptop is much more practical once you get used to it because you will be only using your keyboard. Honestly, I see no point in switching if you're going to use a shitty bloated system like Ubuntu or anything with a DE, you're not gonna use the command line, then you should stay on Windows because it has more support and can run games just fine.

 No.29904

>>29903
software freedom and os level privacy are good reasons to use linux even if you intend to use a windows like system.

Besides, command line is an entirely different way of using the computer that has to be learned over time if what you leaned first was a windows style of computer use. It's to be done in incremental steps. Most people I see on imageboards who prefer it really miss the point anyway and just use GUI programs that happen to represent the GUI with text, or just memorize the usage of special purpose programs with too many options.
if you want to learn to use the command line, by the way, I recommend using the 'rc' shell.

 No.29908

All I do with my computer is programming, browsing the web, watching anime and playing vns.
Linux is no good with vns so it doesn't satisfy my need, dual-booting is annoying I don't recommend it you'll end up always using the same OS.

 No.29909

>>29908
uh, I boot into Windows when I want to read my vns. You're the typical code monkey, can only do programming but doesn't know how to set dualbooting up.

 No.29910

File: 1550269458891.jpg (1.08 MB, 1000x1419, 468e0b25f9ed34796621d2118f….jpg) [ IQDB | SauceNAO ]

It's called GNU/Linux...

 No.29911

>>29909
Well how much of a pain that is depends on how often you play VNs. I'd probably run windows by default if I played more wine-incompatible vidya more often, but wine works for most of my stuff so its fine.
>>29910
excues me (´ω`)

 No.29912

>>29909
Rude but I don't want to stop everything I'm doing everytime I want to read a vn and I prefer to have things always ready.

 No.29916

It's simply impossible to discuss programming nicely.

 No.29922

File: 1550346407261.jpg (277.47 KB, 1920x1080, 40e2f4ee4588423cb94764d1eb….jpg) [ IQDB | SauceNAO ]

>>29916
We just have to try really hard!

 No.29923

File: 1550351502228.jpg (12.01 KB, 250x181, 1523245983665.jpg) [ IQDB | SauceNAO ]

ganbare /nen/! You can discuss program nicely! I believe in you!!

 No.29924

File: 1550359216442.gif (1.53 MB, 540x675, tae.gif) [ IQDB | SauceNAO ]

Nenfrens discussing programming nicely!

 No.29946

Although I always put the opening brace on the next line, I believe I can be frens with those same-line weirdos!

 No.29954

File: 1550543827510.jpg (278.82 KB, 1699x1181, __hakurei_reimu_touhou_dra….jpg) [ IQDB | SauceNAO ]

>>29903
I don't care that much about customizing; if the defaults are good then I would prefer to leave them alone and if the defaults are bad then the developers should check themselves. Mainly I just want a UNIX base underneath a stable desktop. Pipes, redirects, cat, grep, sed.. yes... special device files, shell scripting... but all the Linux desktops are slow and the 'minimal WM's' depend on a lot of that customization. That doesn't leave a lot of options... maybe a Mac when Apple admits defeat on USB-C and the headphone jack.

 No.29959

>>29954
Plain WM's dont /necessarily/ require so much customization, depending on which ones. This is a problem with...I guess its a problem with the linux community, mostly.
I hear the BSDs are better about this. I just customized my system to a nice, usable state and havn't touched the configurations much at all since.

 No.29962

>>29961
They also exist in cmd scripting. findstr is sort of a barebones grep, but you can also install mingw32 or something equivalent to get access to the rest of the commands you would expect.
https://ss64.com/nt/syntax-redirection.html

 No.29966

>>29961
Oh you don't need to sell me on Powershell, I do love me some Powershell and even bought a hard copy of the Month of Lunches book for it, but it's a completely different ball game from sh scripting and has its weaknesses depending on what you want to do (I wouldn't use it to do any large scale file operations and obviously sh is better with streams of text)

 No.30362

>>6550
Does it mean that python and LISP for gays crossdressers only?

 No.30365

>>30362
No, just that they're the best at it.

 No.30372

>>30362
Yes, whats the problem are you some kinda breeder?

 No.30387

What text editor does nen use? I was thinking about trying out vscode again and maybe making a nen theme for it

 No.30388

>>30387
yucky
I use sam and/or vi.

 No.30389

>>30388
wow, way to be elitist about it...

 No.30390

>>30387
notepad++, it was the first one I found and I just stuck with it.

 No.30391

>>30389
We're talking about text editors. Elitism and text editors are inseparable.

 No.30396

I bet nenmin already made the nen theme for their editor of choice so I'll just wait for their post

 No.30399

>>30389
I'm not implying im superior, just that vs is bad.

 No.30400

File: 1553101017592.png (383.83 KB, 1024x768, 1384365381216.png) [ IQDB | SauceNAO ]

What programming language does nen write programs?

 No.30402


 No.30403

>>30400
>>30402
I tend to do more with scripts actually though. I wrote a flashcard program with the same spaced repetition system as anki in rc.

 No.30410

>>30387
I use emacs!

 No.30411

It's not /nen/ theme but emacs has a moe-theme which is very cute: https://github.com/kuanyui/moe-theme.el

 No.30414

>>30410
Emacs is almost more like a lisp-based OS run as an applicaiton than just a text editor.
Some people say its bad because its too big and multifunctional, but it seems like thats missing the point, its not that dedicated emacs fans want a very intricate integrated editor, its that they want a lisp based computing environment.
I don't use it, but I might try it if I ever decide to learn a lisp.

 No.30429

I'd like to use emacs but it looks hard

 No.30438

>>30429
You can do it, I believe in you!!

 No.30452

>>30438
how do I start?

 No.30453

>>30452
Start emacs, press Control+h then press t.

 No.30455

>>30452
ctrl x, ctrl c hehe

 No.30617




Delete Post [ ]
[Return] [Go to top]
[ home ] [ jp ] [ snow / tan ]