Old thread: What are you working on, Jow Forums?
/dpt/ - Daily Programming Thread
First for C#
C isn't a high level language
based
For you
>not programming the 1's and 0's on your own line by line like a real man
Leave that shit in the old thread.
>not hooking up electrical circuits to your nipples to help power your rig
First for ryuuko and Java
>First
?
why even use c++ if your code looks like this
Result downloadToFile(std::string url, std::string path)
{
Result ret = 0;
printf("Downloading from:\n%s\nto:\n%s\n", url.c_str(), path.c_str());
void *socubuf = memalign(0x1000, 0x100000);
if (!socubuf)
{
return -1;
}
ret = socInit((u32*)socubuf, 0x100000);
if (R_FAILED(ret))
{
free(socubuf);
return ret;
}
}
In this it's not the first post in the thread but the first post advocating the topic
Because it's in the job description
Thoughts on C++20?
It's shit.
Does anyone really care at this point?
do i want to make application to possibly score a client
according to my mate, the current application they are using is beyond yet
utter garbage, do is his idea to make something better and try and sell them in the upgrade
is electron the best option for such a task? or is there toolkit that i dont know that is great?
i don't even know what you're asking for.
You might want to work on your English skills first.
how i make program where it make program for me/
Why wasn't this in the language from the start?
github.com
seriously what the fuck
Print("Print(\qHello World\q)")
sorry im phone posting
basically i need to make a clean sleek, but well performing gui application that beats out an existing garbage application.
Would electron be the best choice?
why not implement try-catch like a semi-normal language?
>Exceptions
Implementing a new keyword? Worse tbhq
Perhaps consider the "or die" pattern from Perl
I mean that would be my preferred solution, but Go doesn't have them "by design"
golang.org
Learn Lisp.
Lisp is well suited for metaprogramming.
You can write code that generates code easily.
Read Common LISP: A Gentle Introducion to Symbolic Computation first, and then read On Lisp by Paul Graham.
>gets an error
>whoop de doo da program crasheroonies
why is everyone so bigoted against exceptions
it's by design so it's ok
I'll live without my invisible goto, thanks.
Something that converts python/Matlab syntax to C++
monads or something
It's funny how most modern languages still ignore zero-cost exceptions and do other retarded shit instead. I'm glad the C/C++ committee is finally considering it but from the looks of it they are scared of change
ifs are invisible gotos
loops are invisible gotos
function calls are invisible gotos
function codes are more than just a jump (goto)
No they're not, dumbass.
even worse
can't believe people are still using functions in 2019
This. Functions considered harmful!
Yes they are, do you into scope my dude?
>that moment when you realize goto is an invisible goto
no, it's a visible goto
...
this seems like something for dpt.txt
I design websites in assembly and a embedded kernel in html5
Functions are overrated.
#include
static void *stk[10];
static int top;
int main()
{
int i;
for (i = 1; i
maybe-monads are the way to go
read yourself some rust::Option or rust::Result
they forces the programmer to consider every possible situation so you can't complain that your program crashes :)
>write an if statement
>for some reason the program ignores all the code in the block completely and just jumps to the end
>spend hours debugging this
>turns out if the condition isn't met there's an invisible goto straight to the end of the block
>how the fuck was I supposed to know
O mae wa mou shindieru
functions define scopes
functions setup the stack
functions return values on the stack for you if desired
gotos don't replace them
And if is more than a goto. It's a comparison and a new scope for each case.
yes, and? It's still an invisible goto
Scopes are overrated. It sucks to refactor when you have to move from one scope to the other. Better to just have everything in one scope.
The visible is simply the invisible made apparent.
Nani!?
What frameworks/APIs should an experienced java developer know?
Is today the official retarded shit-posting pedantry day or something?
Are you looking to kill yourself in ENTERPRISE world? Spring, and all that bullshit.
There are historical basketball things happening
>make everything global
what could go wrong
That's every day
i'm watching a video and the guy keeps saying "gooey" for some reason. he said you could run "gooeys" written in java on any system. it took me a while to realize he was pronouncing GUI.
it worked for COBOL
That's a really common pronunciation of GUI.
that's the canonical pronunciation tardo
According to who? I've always said Gee-You-Eye.
Gooey sounds fucking stupid.
Is SQL pronounced "sequel"?
yes
no
It's pronounced "squeal"
def return_sum(n, target):
stop = len(n)
for i in range(0, stop):
for c in range(y, stop):
if n[i] + n[c] == target:
return [i, c]
return 'no sums'
I don't really see too many people using COBOL as an example of "a programming language done right"
In fact, that's why all the people that know it get paid an outrageous salary, maintaining legacy systems nobody else wants to touch
no its not it's pronounced 'SQl' why do you try to pronounce it as a word when its an acronym?
how to spot the retard
i always thought "My S-Q-L Connection Error" rolled off the tongue better
no you're trying to pronounce an acronym like it's a word. that is retarded do you call USA 'ewsa' in real life you fucking autistic retard?
you mean you don't call america oosa?
You clearly are a novice to tech if you say S-Q-L
>your pronunciation of a word shows your how much experience you have with the technology
t. jif parasite
t. 12 year old
Es Queue El
see here esl-kun
>monads
go away haskeller
no it seems if it's three letters you pronounce it 'SQl' however 'UNIX' is not pronounced 'you in eye x' so really it depends how big the acronym is desu.
this thread is disgusting
Unix is not an abbreviation.
only three posts with a code block
Threads today have been particularly bad for some reason:
i just realized this after typing that so it seems you pronounce it as a you would a regular acronym by saying the letters individually.
SUMMER is HERE!
I need help, because I'm a very retarded person. Also, I have no time at all because I go to college and have a job and have a gf and go to the gym.
I want to learn either C or Python. I mean, I can program in both languages, as in I know the basic syntax and can write some easy programs in both languages. But I want to master at least one of them.
What book and at what rate should I read it? What worked for you? If someone could make me a study "program" that would be great. I'd just trust an user here.
Example: If you study n hours, every m days or daily should take you z weeks to finish x book.
I know this might sound dumb so just ignore if you can't help. Otherwise, thanks a lot.
Simply reading books isn't going to make you master anything.
You actually need to program some stuff.
SICP
how would you pronounce this?
sissp
Studying does nothing except allow you to remember factoids and sentences from a book. Failing is where you learn what does and does not work. Look at anyone who you think is a good programmer and I guarantee you they have failed on more projects than you can imagine.
sick pee