Old thread: What are you working on, Jow Forums?
/dpt/ - Daily Programming Thread
Other urls found in this thread:
b24-q7wnnh.bitrix24.es
github.com
beginners.re
tuts4you.com
youtube.com
way-cooler.org
twitter.com
First for JavaScript
Second for hotglueing figurines
I hate Haskell
Not because you've got difficulties learning it, right user?
No I already know Haskell. I hate it.
My program wasn't working so I held down 'u' until my history was exhausted. That fixed it.
Last one is cuter
Is it reasonable to attempt to dev simply video games in Python?
Python doesn't output into exe files and the binary compiling methods I seen so far are broken at best or take hundreds of MBs. So distribution of my stuff would be difficult.
Would JS be more reasonable for simple no 3D libraries stuff? I'm learning beg JS as it has a chance of being used as nobody here outside of academia stem students use python. Maybe I could become a free-lancer web dev, in future.
Is this a Trie? I'm trying to group things this way, and seemed like something similar to what a trie would solve.
What IDE is that?
It's just codesandbox, since I was toying around with that, but you can get the same thing using VSCodium
b-but haskell tiddy monster
Code in whatever you feel like, if it won't be enough you will know then. Understand algorithms then switching language will take you little time.
Integrating with a niger(ian) payment processing API. It feels like each field and each sentence in the docs was written by a separate """developer""".
Python is super slow, not really
JS for sure. It's faster, has WebGL and plenty other built in graphics things and you can share your shitty creations instantly with other people.
Welcome back Jow Forums, please I am trying to setup a collaboration suite,
Please somebody fill up the form, it is just a contact test
b24-q7wnnh.bitrix24.es
For javascript compiler you have two options Node js or browser
Please somebody let me know he she filled up the form
If you're interested in making games then concern yourself less with finding the right language and more with finding the right game engine.
There's no reason to forgo an engine other than performance concerns but if you're building something simple then that shouldn't be a concern. So you'll absolutely be using an engine and the engine you use will impact your development experience more than the language.
I hear good things about the godot engine, though I've never personally used it.
If I want to make a project that uses QT, OpenGL, and CUDA, would it be best to just use an IDE i.e. QTCreator at that point? Dealing with linking on the command line seems like a nightmare
Not to mention interfacing between .cpp and .cu files
Hi /dpt/ I'm trying to write a function that's able to separate a string in 3 parts, rewrite its middle part and rejoin them.
Transforming something like "abc + Vx + def" into "abc + (expression) + def"
Any ideas?
Find the indices of the `+`'s and extract the middle string out as a sub slice?
What exactly is the problem? That is trivial.
The standard library doesn't really give me a way to separate from a string, only a character, that wouldn't be a problem if my strings were different. but since my token strings are in the shape of "Vx", where V is a constant across several variables if I were to use strcspn() for example that would just give me the position of the first ocurrence.
This sentence is more alike to the actual problem:
"V(1) + 0 + V(2) + V(3) + 0"
What I want, is to replace the V(x)'s for another expression.
Using a tokenizer? I don't see a way to do it withouth losing the characters that are before the token.
Ah I see. So your problem stems from being memed by Jow Forums into using a terrible language with terrible lackluster standard library and shit library ecosystem. Any modern language has tools to do this easily in standard library and then several libraries to do advance string parsing and replacing.
now this is based
github.com
can you say anything good about it other than "it's based"
>inb4 it's redpilled
Show me ONE Haskell user who looks like that.
CMake is your friend in this sort of situation.
Well, sort of. It's not a very good friend.
Not really Jow Forums but my professor. Can't really change languages sadly. Thanks anyway user.
cmake should be banned from existing
Yeah, that's what I thought and it's cool. But what about georgians and indians stealing my code? Is there any safeguard against that?
But are there any methods to compile python to a binary that I don't know about and google is silent about that don't generate 0.5 GB monster exe files?
I'm skeptical about the game engines. It feels like advanced game marker or rpg maker kids used 15 years ago to make dbz, and generally these aren't popular locally so I'd have to struggle with reddit or fuckoverflow. And I'm unimpressed by asset flip "indie games developers" and the whole importing libraries for single function mentality. (expect for when they buy assets from me, hehe.).
Sepples or bust.
Can’t for the life of me find a decent tutorial
QTCreator has built in cmake integration, but I’m not sure how well it works with git
C doesn't have the tools you need to do this in a high-level way, so just do it manually. Iterate over the input string, writing characters to an output string. If the last N characters match whatever your replacement pattern is, look forward to find the close paren, extract the stuff in the middle, compute the result and write it to the output string at the appropriate position.
Game engines usually get a bad wrap because it's obvious when someone makes something shit using a game engine.
If someone makes something good using a game engine you usually can't tell it was made in a game engine.
Cities Skylines was made in Unity. Hearthstone was made in Unity. Now we can debate whether these are "good" games but they are certainly high polished games that have done well commercially.
me
this is how peak coding looks like: java with comic sans
Is there a way to override a matlab variable when executing matlab from the linux shell?
Something kinda like: matlab -nodisplay 'my_code.m' a=7
how do I get into reverse engineering software?
any recommendations?
get a webcam and download the ida leak
thanks user
This guy's channel is about malware analysis, but that occupation involves a lot of RE regardless.
He has a video about what tools to use and some other resources, might be worth your time if not for the things he says but the entertainment aspect of it
youtube.com
what did you all study at college?
I'm studying math but I'm interested in computers.
A friend grabbed a Info sec meme degree, 3.5y seemed short for a degree but seems like he's going to be on a good track for an easy job.
They don't have much programming is more scripting and sysadmin.
I'm just wondering how you all doing in life and what you're working on
>not using ghidra
gh what
Open source reverse engineering software
Is this the type of anime doll that you can fuck
I studied Biotechnology and just started a Masters in Applied Mathematics.
I used python, R and a bit of C++ in my bachelor's thesis.
I'm currently working in some projects related with system's biology
Computational physics
Still finishing up my degree, planning to go into software
So i made a friend learn python and make me a fizzbuzz in a day, he did this
What do you guys think about ot? Im a complete codelet tho
I've been in IT for 3 years now and I'm still a junior. Worked as DevOps and now I'm in Test Automation. After I'm done at work I just want to chill and not study. How do I get gud?
>if a/15 in ...
bizarre way of doing it
not very efficient but it's pretty creative
Electric engineering representing
>I've been in IT for 3 years now and I'm still a junior.
oh hey is this me
Thanks, what would be the better way to put it so i can tell him?
really sucks when you see a guy that started as the same level of knowledge as you and now he's a team lead at some fancy american company while you're still sucking dick making less than 20k a year
i'm not familiar with python particularly but usually rather than / you would use modulo which returns the remainder, then check the remainder is 0 to see that it's divisible
also if you're going from 1 to 100, then anything that multiplies with 3 will only go up to 33 or 34 at most
Thanks, sent your message to him
Surely going to make him do it on haskell or c# or something else so he can check them too
That is complete shit code.
Using a for loop over range gets rid of:
- the variable a
- the a+=1
- the a==101 check
Using the modulo operator (%) gets rid of
- all division checks
- that retarded x variable
- nested if statements
> codelet
indeed
not a good idea, he should stick with one at least for a while
haskell is totally different anyway
He doesnt need that break statement, the whole loop condition should do that just fine
Also he doesn’t seem to understand that if it’s divisible by both 3 and 5 then it will be divisible by 15, so you don’t even need to check it. The separate “fizz” and “buzz” branches will automatically create the “fizz buzz” output when appropriate
For loops are a dumb meme and you should feel ashamed for using them
> a%15 == 0 checks if a is wholly divisible by 15
> a%3 == 0 check if a is wholly divisible by 3
> t. faggot w/ aspergers
It's easiest to just use QT creator since qt requires an extra program that parses the code and qmake (qt's build system) does it automatically for you.
Alternatively you can use meson which also supports qt or cmake, and they all work fine with git (your other question).
Thanks for the feedback, i myself am the codelet tho so i dont get half shit you said, but sent him the message, hell surely get it better than me
Oh well i really want him to see how different they are so he doesnt just stick to the first one
Thanks to you too, i explained fizzbuzz to him wrong then lol
Sent him this too for more info
Dont fight pls
He did fine, and is he checks divisibility is neat and shows that he's smart. However, he should look into the modulo/remainder operator, which I'm assuming he didn't know existed. It'll make the check for divisibility super easy. Some other anons also mentioned for loops, which are just syntactic sugar and not using them while a beginner is perfectly fine. In fact using a while loop demonstrates his understanding of how a program works better
Thanks, sent him the message, he seemed happy :)
Now i told him to make me a calculator
Update: he rewrote the fizzbuzz based on feedback but still doesnt know how to prt scr
Feedback is greatly thanked
Lisp is the most powerful programming language.
cool, guess I'm not so off the track then
after math I can study computational science masters or something like that on applied math
Tell Tomas to fuck himself in the ass
Why tho
(Told him tobfucking prt scr it)
So you have to use qmake with QT? Kinda gay but alright
use visual studio.
Bug finding janky ui code by writing a new toy ui and seeing how it breaks
What up man, what's your area?
visual studio kode
up
DOLLTRANNY
Would starting a compiler for a new language by making a c compiler first be a dumb idea?
I think the problem with a lot of obscure langs is they have abhorrent c interop and it's a nightmare to get basic bindings going to jumpstart adoption.
It's not the language the compiler is written in that matters. It's the call conventions that matter. Ideally your compiler is eventually self-hosted.
What is the easiest language to write a self-hosted compiler for?
well first-class c support is pretty vital for the time being. And a lot of langs i've used have a bunch of quirks and headaches when trying to bind to C libs. So i figured starting with a C compiler, and then building off of it seems like a nice approach. I'm not sure of the specifics but Zig does something like this with also being a C compiler itself.
lisp
I'd rather not)))))))))))))
Ive always wanted to get into these dolls but it also means spending hundreds if not thousands of dollars just to get started. Still I might do it so help me god i might do it.
do you plan on cumming on them?
>Ideally your compiler is eventually self-hosted.
Unless a language is intended for writing compilers then self-hosting could be a negative influence on its design.
Fuck no I will be keeping mine in a dust free display case other than when I change its clothes or poses. Its going to be my daughter. Ill stick to the $60 dollar range PVC figs for my cum dump needs.
Yes QtCreator is probably the best way. I never u derstood why Jow Forums hates IDEs so much.
>costs too much
It's not my area of interest but here are some possible solutions. You could substitute 3d models instead to negate the cost, or start a business based around the physical entities to pay for the costs. For example, you could make clothes and sell them on etsy. You could design clothes then hire somebody from the third world to mass produce them. Of course, it's possible that you would only lose money, but you would learn about doing business along the way.
It's over. Rust won again.
d beat you to it awhile ago.
also shoo shoo rust shill
way-cooler.org
When would someone use this?