What are working on, Sup Forums?
Old thread:
What are working on, Sup Forums?
Old thread:
Other urls found in this thread:
github.com
discord.gg
twitter.com
First for flowcharts
Second for anime
And a parallel functional programming thread:
What's your more dangerous programming technique?
Newb here, could really use some help with this webdev-related thing
tl;dr:
- working on a simple client for NodeBB forum software for the sake of learning
- found this: github.com
- discovered that mynodebbdomain.com/api/login will return a login token of some sort if I send user/pass in a POST request
That github page states that I can use some kind of bearer token or a JSON web token of some sort, but I'm not clear on how to interface my user's login with any of that. Obviously I can create a token manually for each user using the admin panel as per the github readme but that's pointless—I'm going for a functional client here which doesn't require admin intervention for each separate user
Anyone have any helpful tips etc.?
please respond, have a rare pepe
You mean
t. uses a language that has its own built in makefiles
macros
Programming in C.
>tfw about to graduate
>desired salary: 80k
think your hot shit user just bc you're going to have a degree?
I literally use GOTOs in every control statements because it produces faster code.
lol no.
I'm doing a python script for hackernews.
So far so good, but what's the best approach to open the links I want in my browser?
You can use the webbrowser module.
>graduating in May
>actually shit at programming
Fuck
Mate, you know C# well enough, and I've seen you do some interesting projects with it. Just learn ASP.NET, and you'll sort out being a shit programmer in the workplace, surrounded by other shit programmers.
>He didn't put /dpt/ in the subject field.
You had one job. Now no one will find this thread if they search for /dpt/ in the catalogue.
Did you do an internship at all yet?
>spill vodka on keyboard
>surprisingly good cleaning solution
things are looking up
>not searching by a list of hashes of known /dpt/ images
baka
fug
New thread:
>not assuming all pngs are optimized
boi
Xorb made me realize how little I actually know.
>made TCP chat server program using my server framework as a good example
>works fine with telnet
>add usernames and some other functionality
>make chat client
>literally receive server's debugging output in client
what
don't actually start a new thread you moron
lol
Xorb?
In my server:
printf("Sending \"%s\" to %d\n", message, userID);
send(userID, message, strlen(message), 0);
My client literally sees this:
Sending message "Hello world" to 4
h o w
There's gotta be something funky going on with the memory, maybe a missing '\0'.
Have you tried Valgrind?
One of the fags on the discord.
There is a dpt discord?
come ruin it.
>ruin
i'm sure it has been a true delight up until now
>IT director's last name is Kim
>show up to work, enter IT director's office
>he's Indian
i was not prepared
>uses GOTOs because it produces faster code.
>write shitty algorithms without higher order optimization
No, it's just a meme someone is trying to force.
Don't use it. Discord is cancer.
Still learning design patterns desu.
Am I right in thinking this is what the decorator pattern is?
var loliWith = {
gun: function(loli) {
loli.hasGun = true;
loli.speed -= 5;
},
armour: function(loli) {
loli.hasArmour = true;
loli.health += 25;
loli.speed -= 10;
},
innocence: function(loli) {
loli.isVirgin = true;
loli.health += 10;
}
};
function createLoli(name, age, decorateWith) {
var loli = {
name: name,
age: age,
health: 100,
speed: 100
}
decorateWith.forEach(function(decorator) {
loliWith[decorator].call(undefined, loli);
});
return loli;
}
var sarah = createLoli("Sarah", 10, [
"innocence",
"gun",
"armour"
]);
>JavaScript
Post another link nigga
How's that possible? Where do you study?