/dpt/ - Daily Programming Thread

What are you working on, Sup Forums?


Previous Thread:

Other urls found in this thread:

youtube.com/watch?v=ad4BVmPni7A
pastebin.com/RhXaTt2a
pastebin.com/7FBYPrdj
github.com/subjectivelyobjective/osrs-lightbox-solver
twitter.com/AnonBabble

I don't think it's possible to enjoy programming.

What does /dpt/ use to listen to online radios on their mobile device? ServeStream can't into metadata

First for C. I am currently creating a uniform cost search algorithm so I can find an optimal solution for something. C is pretty hard but I am getting better at it.

There is literally nothing wrong with pedophiles or Rust.

or gender equality

There is nothing wrong with Rust, but pedophiles need to go to prison.

>What are you working on, Sup Forums?
learning to create users (with different access/authentication) on the phoenix framework because trying out being a wageslave
would rather i was indie developing games

anzuchang is 17 years old and not a loli

is it a mistake to mass produce a bunch of poorly polished, poorly programmed but functioning clones of simple games just to practice and to have a large volume of completed projects to show to future potential employers? because i honestly don't know what to program other than some kind of dream game project that i will discard within a week, and i really have only one or two finished projects to show for my mediocre programming skills

it can definitely be rewarding which in itself you can derive enjoyment.

>defending Rust

Pedophiles are the lesser evil, you dumb woman.

Quit your job and make videogames
There are people literally lined up wanting to give you cash

Just make the 30th chess/sudoku app and put some ads on the borders, someone will download it

Fuck programming as a career, it's shit

When it was just a hobby it was fun

you don't even need to make the games, just say you will and occasionally post to a blog and the money will roll int

That's the reason why I freelance. I couldn't stand doing this is an office setting.

planning on wageslaving for about another year
hopefully i find free time to meanwhile work on my own projects

Pedos did nothing wrong.

I finally completed my "own" sum of primes below 2 million program.
I more or less had to copy someone else's code, but I made sure to spend a long time studying it, and understanding why it works the way it does and the logic behind it.

Lol. That's easy. Let me know what you did 1 million primes

billion wtf autocorrect?

Is java easy to get acclimated to if you're a C zealot?
How do i get unsigned numbers in javascript?

pretty spooped desu senpai

Is freelancing really any better? I expect you still have to deal with ill-specified and ill-informed requirements and poor quality input data.

plus, companies know they can just NOT pay you since the cost of your work is much less than the cost of a lawsuit.

Do you guys need a degree for a programming job?
I know C pretty well I'm wondering what I can do with my knowledge
Should I show an employer some projects of mine? Would that even be enough?

personal projects and experience will beat a degree every time.

>the cost of your work is much less than the cost of a lawsuit.
4 U

You'd be incredibly stupid to do thousands of dollars worth of work for a client without money down.

Depends on the degree and the personal experience to be honest

Someone with a shitton of frontend webdev experience but nothing else applying for a backend position makes me more nervous than someone with no/little real world experience but a top tier degree

That's fine. Companies will just give the contract to someone who hasn't learned that aspect of freelancing yet.

C++ still is not "clicking with me" as much as Rust did :^(

Probably because of no UFCS and the insane amount of verbosity when it comes to using iterators in data structures.

The only reason why I am determined to use C++ is because of the Qt Quick/QML technologies. Haven't done any GUI before so I thought Qt is an easy start (as opposed to using GTK with bindings)

why would they even apply for a backend job?

Shall we make a list of acceptable /dpt/ programming languages? I'll start:

>CL
>Scheme

If your language isn't on this chart, it's irrelevant toy garbage.

They're (understandably) fed up of JS?

In C++ why aren't all types objects, doesn't that mean that it's not really an OOP language??

In Java not all types are objects, does that mean it's not really an OOP language?

>Lisp garbage

>cuck overflow

Thoughts?

:- module fib.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.

:- implementation.
:- import_module int.

:- func fib(int) = int.
fib(N) = (if N =< 2 then 1 else fib(N - 1) + fib(N - 2)).

main(!IO) :-
io.write_string("fib(10) = ", !IO),
io.write_int(fib(10), !IO),
io.nl(!IO).

>:- everywhere
>write_string
>!IO

Absolute trash.

I know it's not that impressive, but I'm proud of myself for kind of solving this problem that has been plaguing me.

>R 4.4%
this is the real reason I hate python
fuck off python

>idiot doesn't know how mercury is written
As expected from a brainlet.

by solving you mean convincing yourself you did something by copying someone else's code? and then getting some dopamine from posting about it on an estonian metalworking forum?
Yes, good job! Well done my friend

It's better because I can take naps at 2pm and I have a steady stream of clients since I'm working in a niche field that desperately needs my type of programmers.

I have an attorney that makes the contracts with clients which I look over. A lawsuit or not, I will get paid one way or another.

I even forgot
>periods after things
>func

The language is trash.

use strict;
use warnings;
use IO::Handle;

my ( $remaining, $total );

$remaining = $total = shift(@ARGV);

STDOUT->autoflush(1);

while ( $remaining ) {
printf ( "Remaining %s/%s \r", $remaining--, $total );
sleep 1;
}

print "\n";

What does this program do?

Counts down the seconds up to a given threshold.

Has anyone here used libui? I want to use cairo inside its drawing area for drawing, but the arguments state a need for a "AreaHandler"?

Reminder that Haskell is obsolete

youtube.com/watch?v=ad4BVmPni7A

>Quit your job and make videogames
>There are people literally lined up wanting to give you cash
This is what a stupid 3D artist would say.

Good 3D artists are sorely needed. If you can do that and programming you can make bank.

unfortunate that such an insufferable character is talking about something interesting to me

Why is he an insufferable character?

>tfw your programming friend turns into a trap
t-traps make good programmers right?

Yes.

perhaps upbringing

I don't understand though, his build was naturally effeminate but he didn't act like a girl and now he changed his name and grew long hair which he dyed purple and he's a girl. I don't think he even programs anymore. Why would he become a trap if he doesn't program anymore?

pastebin.com/RhXaTt2a

After calling graph_new and subsequently graph_free valgrind is complaining that 3 allocated, but only one free pastebin.com/7FBYPrdj

Assuming that those unfreed are g->edges & g->vertices can someone tell me why they aren't being freed?

It sounds like he went too far. You are only supposed to be a girl(male). If he went on HRT then all of his masculine advantages are fleeting and thus will lose interest/ability to program.

Because you aren't freeing them you dunce. Doing free(tree) when tree is a pointer to a struct with pointers doesn't free the pointers inside it.

/agdg/ on /vg/ says the trap posting here is just 1-2 mentally ill rust posters. Is this true?

Yes it is.
t. that guy who also frequents here

I just happen to like rust and the trap posting is inconsequential. I doubt rotate or sourcefam are here. Or the couple other rust posters in /agdg/

Pretty much. That is your mind on Rust (tm).

>make bank.
*less than most other jobs
Going into videogames for money is one of the stupidest things that you could do.
If you want to make money you'd do middleware.

I think there's some that tag along occasionally as it's now a meme. But it's very stale now. I see it disappearing soon.

This is not wrong.

Kill yourself, Aoba.

R U D E

Trap sex can be fun though

where are the pics of agdg-tan and dpt-tan hanging out and being best friends

Completed a light box solver for Oldschool Runescape today.
github.com/subjectivelyobjective/osrs-lightbox-solver

What's the "correct" way to write setup scripts for Python? My setup.py is a complete and utter hackjob.

I'm working on a blackjack game.
I finished the poker deck simulator, what's a portable way to do simple graphics to display a card game?

...

Try SDL. Or something simpler. It depends, what language are you using?

C

Have you written a chess AI yet?

do a webapp faggot

I'm shit at chess tho

Can I use dlload and dlsym on windows even though the shitty platform isn't even POSIX compliant?

You cannot call yourself a real programmer until you develop a decent Chess AI.

LoadLibrary/GetProcAddress respectively

I'm not going to use some retarded fucking shit. Is there POSIX dl for windows?

Yes

>i want to develop for windows but i dont want to use the windows api
"no"

As you said yourself, Windows is not fully POSIX compliant. You're going to need to use Windows syscalls.

dumb retard, have you never head of portable libraries?
Use cygwin

retard

>no scheme
>PHP that high at 28%
The programming community really is a joke these days.

Halfway through writing an installer for our new product, I realized that I was well down the road of reimplementing ncurses in node.

But this isn't the TIOBE index, user.

(require 'macro) ; Required to use this with SCM. Other Scheme implementations
; may not require this, or it may even be an error.
(define *cont-stack* '())

(define (push-catch cont)
(set! *cont-stack* (cons cont *cont-stack*)))

(define (pop-catch)
(let ((retval (car *cont-stack*)))
(set! *cont-stack* (cdr *cont-stack*))
retval))

(define (throw exn)
(if (null? *cont-stack*)
(error "Can't use throw outside of a try form")
((car *cont-stack*) exn)))

(define-syntax try
(syntax-rules (catch)
((try (body ...)
catch exception (catch-body ...))
(call-with-current-continuation
(lambda (escape)
(dynamic-wind
(lambda ()
(let ((exception
(call-with-current-continuation
(lambda (cc)
(push-catch cc)
#f))))
(if exception
(begin catch-body ... (escape)))))
(lambda ()
(begin body ...))
(lambda () (pop-catch))))))))

How does Sup Forums feel about FORTRAN?

>exceptions
Lisp is disgusting.

>thinks that's lisp
Hello retard.