[ home ] [ jp ] [ snow / tan ]

/jp/ - Mysterious Thoughtography Collection

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.


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.


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.


I gave up after the first segmentation fault


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


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


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


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

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.
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.


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


I couldn't think of anything really recursive, so I just transformed the iteration...


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


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!!!!


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.


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.


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.


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.


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.


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

It's called GNU/Linux...


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.
excues me (´ω`)


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.


It's simply impossible to discuss programming nicely.


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

We just have to try really hard!


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

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


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

Nenfrens discussing programming nicely!


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


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

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.


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.


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.


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)


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


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


Yes, whats the problem are you some kinda breeder?


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


I use sam and/or vi.


wow, way to be elitist about it...


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


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


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


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


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

What programming language does nen write programs?



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


I use emacs!


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


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.


I'd like to use emacs but it looks hard


You can do it, I believe in you!!


how do I start?


Start emacs, press Control+h then press t.


ctrl x, ctrl c hehe


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