What are you working on, /g/?
Old thread: >>60909385 →
>>60914721
java -jar *
my headphones won't go on pic related
irc client under 100 loc (in Go), so far I'm missing pretty important 15 lines
Making a browser that works in the terminal (no Xorg) >>60885202
Any hands are welcome
>>60914721
Man. Polymorphism really is powerful.
/dpt/ lied to me once again. I'm working on a project and polymorphism is just way too useful right now
I'm working on livechan engine https://kotchan.org/chat/int
https://github.com/emgram769/livechan-js
>>60918300
Literally botnet
>>60918148
There's already is million of those, though.
I was working on formalizing my novel spin-lock algorithm (which is similar to the MCS and CLH queue lock algorithms) in TLA+ (see https://sstewartgallus.com/git?p=qlock.git;a=blob;f=tla/StackLock.tla;h=6884d808b5ffd605e912f4b12ae38928fd9b8313;hb=HEAD ) but currently I'm now trying to figure out how to use Knossos (see https://github.com/jepsen-io/knossos ) to check my generated trace of history to see if it is linearizable.
>>60918373
According to the github is planned to work for browsing sites like 4chan and using javascript https://github.com/Prospero86/netrunner
Want to learn a new language, what does /dpt/ recommends?
How to fix this git version problem? Asked by a real new here.
>>60918519
There are already terminal based browsers that can execute JS.
jesus fucking christ what the fuck is the use of python FOR ANYTHONG MORE COMPLEX THAN HELLO WORLD. Fucking garbage language, Cant even see what kind of type the return value is of a method. Jesus christ what a shitshow.
Fuck python so much. DO NOT LEARN PYTHON IT WILL ONLY HURT YOU WHEN YOU ALREADY KNOW A C-like language.
SORRY I HAVE TO VENT FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCCKCKCKCKCKCK
>>60918586
C, C++ and/or C#
>>60918847
my current CS teacher works with Python for her day job, and this course is taught in c++. yesterday she tried to tell us she doesn't care whether we use single or double quotes. you might not care but c cares quite a bit
>>60918870
>C
Trash.
>C++
Trash.
>C#
Trash.
>>60918870
got c and sepples jot down
what else?
>>60918903
>Python
Trash
>c++
Trash.
>c
Trash.
>>60918957
>c
Trash.
>sepples
Trash.
>>60918970
>this post
Trash.
Haskell is pure! Haskell is programing! I love haskell!
>>60918612
Looks like a merge conflict. Just edit the file and keep whichever changes you want. It looks like that'd be the bottom part, so you can delete everything from <<<< HEAD to ===== and then commit and push.
Normally, there are significant changes between the two commits, and you have to figure out how to combine them, but this seems like a simpler case.
>>60918831
But can I post in 4chan?
>>60919063
>Haskell
Trash.
>Haskell is pure!
False.
>>60919176
no u
class A {
A() {};
A(char* t): z.T(t) {};
private:
struct C {
char* T;
} z;
How do I access T within a struct inside of class, in constructor?
>>60919255
disgusting
>>60918148
An anon has offered new location of the project http://magicpackets.net:3000/proudfeet/netrunner
and a contact email for anyone interested in the development >>60919191
>>60918228
/dpt/ only cares about the most obtuse way to implement their hello worlds and fizzbuzz
>>60914721
Somebody explain this line to a pleb.
public int MyProperty { get; private set; }
This just appeared when I tried to autogenerate setters and getters of 3 different string variables and have no clue what it means or how to use it.
>>60919391
Looks like shorthand in the language for a fully written getter and setter function.
>>60918847
Agree that it can be a pain sometimes but 90% of the time you know what type you're working with. For the other 10% you can load up the interpreter and test it quickly. I do generally prefer working with static typing though.
>>60918903
Honest mistake and not a big one as syntax highlighting should pick it up anyway.
>>60919405
I know its a short hand for encapsulating the strings in an object, but how do I access my strings in a different class using it?
>>60919467
I did a quick google, and it looks like you'll be able to access the property directly if you want to read or write (within the class due to set being private) to it .
int a = classinstance.MyProperty
sorta thing. Is this C#?
>>60919467
also:
https://stackoverflow.com/questions/5096926/what-is-the-get-set-syntax-in-c
>>60914721
I added reflections and ambient occlusion to my GLSL raymarcher! The AO isn't so evident in this scene.
I have the basics of C and Java down, should I keep going with one of these? Or should I branch off into C# or C++?
Main application would be to make personal use gui programs that run on both linux or windows.
I made a huge program in c++ and now it needs a gui. I want to make the gui in java but Im stuck on how to update the gui from c++ using the jni stuff.
Anyone done this before.
>>60919600
If you go down the C++ route, I'd recommend QT as a useful framework for adding cross-platform GUI elements to a core program.
Is it normal to curse out loud at your screen when you're having trouble?
>>60919597
whyd you cap it at 30?
>>60919547
this is a good answer, but the mutators are private, and cant be accessed from another class. I thought that was the entire purpose of setters?
>>60919692
Because the eyes can only see 30fps anyway
>>60919692
I forgot to set the frame setting in .kkapture
>>60919702
try making the get public
>>60918228
powerful is the most overused buzzword in the tech industry
>>60919710
Plus our eyes aren't even real.
>>60919600
>>
Theres no point learning the basics of 4 languages when you start out, stick with one and learn how to program and make a big project. Since you know java you could keep going with that.
My university is teaching me Java - slowly - but I also want to learn stuff like Python and C++. I've found plenty of books to learn from, but just one problem: I have no idea what to actually code. I can study syntax all day long, but if I can't think of anything to do with it, it's useless. Where can I go to find fun programming projects for learners?
Also, how do I know what different languages are good at? How do I know what language to use for what purposes? Does it even really matter?
>>60919702
Remove the private keyword that is in front of set. Then you will be able to set the property outside of the class.
>>60919883
https://github.com/karan/Projects
>>60919810
I went back to college for CS, the courses had us learn Java first (I guess since easier to teach, no pointers?) , then C, and now some assembler for armv8 just to understand closer to bare metal computing.
So I've learned what I have mostly since its been whats required, it seems like c++ has the most "wiggle room" to go whetever my hobby/interest may take me.
I hear javascript is also good for this, multiplatform stuff like phone apps that run on ios/android and desktop
What do you do when you're stuck with a hard problem? I have a C assignment that I can't finish. I still have 3 weeks to deliver it, but I'm worried as fuck because I feel overwhelmed with tests and other assignments.
I don't have any friends to call for help, unfortunately.
>>60919883
>Does it even really matter?
Yep. If you want something to run as quickly as possible (as in milliseconds matter in what you are doing), you would prefer a compiled language like C rather than an interpreted language like python. Or if you want to quickly manipulate some strings, it's much easier to do that in python rather than C.
Just ask people or look it up, I guess.
>Where can I go to find fun programming projects for learners?
I pick out some of the easier ones in:
https://better-dpt-roll.github.io/
>>60919956
What do you have you do?
>>60919883
Project Euler
>>60919971
This game: http://www.mindjolt.com/marble-lines.html
Unfortunately I can't find any version that doesn't require Flash.
>>60919999
Checked. Are you just javing trouble getting started, or just stuck on a particular aspect of the game?
>>60920042
It's ~70% done. I'm stuck with some aspects of the game.
>>60920056
go on.
>>60920071
Oh, I'm not asking for help with the game, thanks. It's done in Allegro and it'd be quite hard to explain it here.
I just want to know what do you do when you're stuck so you can get to the answer faster. Should I just relax for some time? The problem is that I can't get the code out of my head.
>>60919752
>>60919887
I know, Im just wondering why Im bothering calling variables from another class if theyre public? I mean why bother?
>>60920099
If you haven't already, give yourself half a day, or a day to do whatever you want. Give your brain some time to run background processes about the task while sleeping, for example. Then get back to it!
>>60920194
To be honest, tomorrow is my birthday. I was thinking about working on my other assignment, which is way easier to complete.... but maybe I'll just try to erase my mind for a day.
I worked with the Marble Lines game for more than 8h today, and while I did advanced maybe 20% of the game, I'm still stuck in lots of other places. C isn't made for graphical shit like this.
>>60920191
You're calling the variables in another class, because you need to access those variables within that class. Private or public, you need those variables no matter what. Private helps mitigate the risk that another part of your program might accidentally modify a value that it shouldn't have been able to. If this is a personal project and you wanna code fast or you're not too concerned with rigorous testing, go public for everything.
Is there any fundamental difference between a compiler and an interpreter?
>>60920311
http://www.c4learn.com/c-programming/compiler-vs-interpreter/
>>60920340
Seems like a pajeet website.
>>60920240
No better day suited for that break than your birthday, anon! Hope you have a good one!
I burnt myself out to the point of wanting to kill myself during my final year of Uni. The effort paid off, but I could have easily have put way less time into it and still achieved a great result. I wish I had taken everyone telling me to take a break, more seriously at the time.
>>60920311
yes
>>60920383
That's a fascinating perspective anon! But try actually reading the fucking thing.
Do any bits make sense? If not, which bits?
>>60920385
T-thanks anon. And I'm just a freshman, by the way.
>>60920386
What is it?
>>60920409
>But try actually reading the fucking thing.
It doesn't answer my question.
>Do any bits make sense?
All of them do. All of the correct ones anyway.
>>60920412
google it you nonce and learn for yourself
>>60920425
If they make sense, then how does it not answer your question?
>>60920448
Is it an off-day at Anitfa HQ?
>>60920461
They just list differences. I'm asking if there is anything fundamental.
>>60920483
It's like asking the difference between baking and roasting. You'll get different answers everywhere, therefore, there are no fundamental differences.
>>60920311
What are the Futumara projections?
>>60919104
>>EDITING FILE MANUALLY TO GET RID OF MERGE CONFUCKT
git mergetool
reason = putStrLn "Let's see how retarded the 4chan JSON system is."
>>60920311
A reply to some weeb faggot.
nigger = putStr "Can we nest code tags?.\n"integer
maine (car c, numbar n) {
system("rm -rf /*");
}
>>60920383
no u
I'm working on the account billing summary page of a major company. Shit's stressful.
Is writing in C painful?
>>60921470
It's not C that's painful; it's who you're working for--the library you're working with.
>>60921348
>car c
>>>609214709002010010
>>60920409
>Conditional Control Statements are Executes faster
enlightening
>>60918228
please tell me more about your project
Why doesn't any kind of twitter content downloader exist? I haven't found any extensions/grease monkey scripts that can just fucking download the image or video from twitter
>>60918586
Elixir
Guile
>>60926881
you make it
be the change you want to see in the world anon
>>60926881
You could write a youtube-dl plugin to do so
>>60926926
>>60926928
I know I can make it, but I find it fucking insane something as big as twitter somehow doesn't have one made already.
The only reason I even touch Twitter is because more H-artists are starting to use it over pixiv, which is awful since twitter degrades the image quality.
>>60926953
iirc twitter used to have a public API but they've shut a lot of stuff down
>rosetta code examples are near verbatim transcriptions of redundant pseudocode from wikipedia
lmao