[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

Quick, show us what you're programming


Thread replies: 69
Thread images: 19

File: Dsu3ScD[1].png (29KB, 598x742px) Image search: [Google] [Yandex] [Bing]
Dsu3ScD[1].png
29KB, 598x742px
Quick, show us what you're programming
>>
File: 1453653438419.gif (147KB, 850x613px) Image search: [Google] [Yandex] [Bing]
1453653438419.gif
147KB, 850x613px
>>53866069
This is one of the last things I programmed as a hobby

Unfortunately I now have a programming job
>>
File: 1446250639374.png (3KB, 391x289px) Image search: [Google] [Yandex] [Bing]
1446250639374.png
3KB, 391x289px
>>53866069
>>
>>53866108
holy shit i hate you so much
>>
>LaTeX
>programming

writing background information for my bachelor's thesis.
>>
>>53866211
deal with it cunt
>>
>>53866234
I need to start as well.
Fuuuuuuuuuuuuuuuck.
>>
>>53866234
what's it on?
>>
>>53866288
>>53866234
mah niggas
>>
>>53866234

Guide me senpai. How do you start?
>>
>>53866288
get on it mayne. future you will thank you

>>53866304
Signal processing/analysis. More specifically sampling and reconstruction, and effects of aliasing when undersampling.

>>53866330
with what part?
>>
>>53866349
ayy lmao ill give you a blowie joey next time i see you in class (no homo)
>>
>>53866069
>inline js
disgusting
>>
>>53866405
Why does it matter if the whole thing is one page?
>>
>>53866432
>what is good practice
>what is modular code
>>
>>53866432
I guess it's ok if it's a small personal project, but please don't do it elsewhere.

Sidenote: be careful not to pollute the global namespace
>>
File: da.png (84KB, 1925x1044px) Image search: [Google] [Yandex] [Bing]
da.png
84KB, 1925x1044px
>>53866069
Faggot web-dev.

I'm looking at an empty page.
>>
>>53866469
>>53866472
I never learned how to write modules or whatever properly
I wish I wasn't being serious
>>
>>53866506
shit anon, now's the time to learn then

luckily, it's not hard, just try to write code so it can be used in multiple places if needed (and no, I don't mean copy-pasting)
>>
>>53866506
well shit, it's never too late to learn. Do yourself a favour, man. As soon as a project hits ~10 or so files, having everything in one place is a fucking pain.
>>
>>53866498
VS is a mess
>>
>>53866579
Visual Assist makes it better. Would be using NetBeans if I bothered to but I don't.
>>
Some Bomberman clone for Atmega128A.

void lcd_send_data(uint16_t data) {
LCD_CS_L();
send_data_spi(data >> 8);
send_data_spi(data);
LCD_CS_H();
}

void lcd_write_register(uint16_t register_index) {
LCD_RS_L();
lcd_send_data(register_index);
LCD_RS_H();
}

void lcd_send_command(uint16_t register_index, uint16_t data) {
lcd_write_register(register_index);
lcd_send_data(data);
}

void lcd_clear_screen(uint16_t color) {
INIT_DISPLAY_BOX(0, 0, 0xef, 0x013f);
for (size_t i = 0; i < SCREEN_SIZE_Y; i ++) {
for (size_t j = 0; j < SCREEN_SIZE_X; j ++) {
lcd_send_data(color);
}
}
LCD_RS_L();
LCD_CS_H();
}

void lcd_display_init(unsigned char x, unsigned int y, unsigned int width, unsigned height) {
INIT_DISPLAY_BOX(x, y, width - 1, height - 1);
}

void lcd_display_image(const uint16_t img[], unsigned char x, unsigned int y, unsigned int width, unsigned height) {
lcd_display_init(x,y,width,height);
for (unsigned int i = 0; i < height; i++) {
for (unsigned int j = 0; j < width; j++) {
lcd_send_data(pgm_read_dword(&(img[i*width+j])));
}
}
}
>>
>>53866543
>>53866541
Where to start?
>>
>>53866631
Start by putting your js in a separate file (multiple separate files if needed). Abstract code which you might use multiple times into a function. Google "maintainable js" or something similar for more
>>
>>53866234
Swe?
>>
>>53866069
>var, not let or const
>mixing single and double quotes
>inline else if
>gay comment lines
>unreadable font that makes {} look like []
>using an expression shorthand as an if/else block
absolute pleb
>>
>>53866631
Not any of them, but additionally, if you are going to work on larger projects, try and have as much of the js work back end, and send back as much html/css as possible rather than front-end scripts. Nothing wrong with front-end js frameworks though, they help alleviate the mess
>>
R and Python monstrosity that I can't post about due to classification. But it sucks. a lot.
>>
>>53866069
>.innerhtml
>appends text instead of html
It's like you're self-taught but didn't even do that right
>>
>>53866631
>>
>>53866765
You forgot

>javascript
>>
>>53866498
fake and gay.

there is no way github would allow 'bra' to be in a project name.
>>
>>53866813
>Git
>Github
Those are not the same
>>
>>53866808
What is the alternative?
>>
>not writing machine code directly

Compilers are for fags


b8 21 0a 00 00 #moving "!\n" into eax
a3 0c 10 00 06 #moving eax into first memory location
b8 6f 72 6c 64 #moving "orld" into eax
a3 08 10 00 06 #moving eax into next memory location
b8 6f 2c 20 57 #moving "o, W" into eax
a3 04 10 00 06 #moving eax into next memory location
b8 48 65 6c 6c #moving "Hell" into eax
a3 00 10 00 06 #moving eax into next memory location
b9 00 10 00 06 #moving pointer to start of memory location into ecx
ba 10 00 00 00 #moving string size into edx
bb 01 00 00 00 #moving "stdout" number to ebx
b8 04 00 00 00 #moving "print out" syscall number to eax
cd 80 #calling the linux kernel to execute our print to stdout
b8 01 00 00 00 #moving "sys_exit" call number to eax
cd 80 #executing it via linux sys_call
>>
File: shobon.jpg (4KB, 124x144px) Image search: [Google] [Yandex] [Bing]
shobon.jpg
4KB, 124x144px
>>53867123
>#moving "Hell" into eax
>>
File: tpw.png (41KB, 929x955px) Image search: [Google] [Yandex] [Bing]
tpw.png
41KB, 929x955px
Making my own VN esque game.
>>
>>53867123
>machine code directly
>hex digit representation
>comments
>directly
>>
program Hello;
begin
writeln ('Hello, world.')
end.
>>
File: images (1).jpg (5KB, 158x203px) Image search: [Google] [Yandex] [Bing]
images (1).jpg
5KB, 158x203px
>>53867184
>>
>>53867184
Just use RenPy
>>
File: large.jpg (102KB, 499x491px) Image search: [Google] [Yandex] [Bing]
large.jpg
102KB, 499x491px
>>53867281
>>
>>53867302
Renpy isn't that good for interactive animation scenes, otherwise i would. Plus the code for what's needed to make is pretty much done.
>>
>>53867303
>>
>>53866234
what text editor is this
>>
>>53866349
Signal analysis is where it's at m8
>>
File: bigbazingatheory.png (28KB, 856x673px) Image search: [Google] [Yandex] [Bing]
bigbazingatheory.png
28KB, 856x673px
Guess the algorithm? Not sure if this will give me a memory leak, structures in UE4 are a bit weird.
>>
>>53867447

Why disuse "nullptr" and the various convenience features standardized in C++11 and beyond?
>>
File: 5702e2e7adabf.png (9KB, 962x674px) Image search: [Google] [Yandex] [Bing]
5702e2e7adabf.png
9KB, 962x674px
I have yet to start.
>>
File: code.png (126KB, 2560x1322px) Image search: [Google] [Yandex] [Bing]
code.png
126KB, 2560x1322px
>>
I've begun to refactor CImg.
>>
File: meme_scraper.png (42KB, 1336x610px) Image search: [Google] [Yandex] [Bing]
meme_scraper.png
42KB, 1336x610px
An imgur scraper to miss no meme
>>
>>53867552

Eh NULL is mostly a bad habit, always forget that nullptr exists.
>>
 static int IsNegative(float arg)
{
char*p = (char*) malloc(20);
sprintf(p, "%f", arg);
return p[0]=='-';
}
>>
>>53866776
That's not really an option. I can abstract some math away to the back end but a lot of it is web audio and webGL stuff. My alternative would be streaming audio and that's a lot more awful.
>>
>>53867863
Consider the disuse of raw pointers as well. Substituting them for an appropriate smart pointer type defined in the standard library will likely save you from headache.
>>
Dining philosophers
>>
>>53866765
only one of those is a legitimate complaint
>>
>>53867941
???
return arg < 0;
>>
>>53867971

Engine won't allow it senpai.
>>
>>53866069
I can't, it's proprieatary
>>
>>53866234
latex isn't programming
>>
>>53868583
shhh, html/css fags will get triggered
>>
>>
>>53866069
>.querySelector()

must be nice having only one customer and no cross browser compatibility
>>
>>53869186
what color scheme is that anon?
>>
File: theais.png (41KB, 1316x665px) Image search: [Google] [Yandex] [Bing]
theais.png
41KB, 1316x665px
Working on a general purpose AI.
>>
File: wrokeoking onees.png (57KB, 643x596px) Image search: [Google] [Yandex] [Bing]
wrokeoking onees.png
57KB, 643x596px
>>53866069
been learning since christmas and trying my hand at a shit game.
Thread replies: 69
Thread images: 19
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK