|
duz posted:our process that handles running scheduled reports absolutely can not handle when the last run time is in the future so when the time changes, it re-runs and emails the reports every minute for the duplicate hour I’ve been involved in some software that schedules stuff, and in Sweden it’s common to describe biweekly stuff as happening on odd or even numbered weeks. Sweden is also one of the few places that actually uses ISO8601 and it’s week numbers, which sometimes go up to 53. So what do you do when something is supposed to happen biweekly but also only on odd or even weeks and you have week 53 followed by week 1?
|
# ? Oct 14, 2021 17:49 |
|
|
# ? Dec 3, 2024 14:41 |
|
Zlodo posted:*poo poo++ maps directly to an addressing mode on the 68k (and I wouldn't be surprised if there was that on the pdp 11 too) and compilers were dumb in those days yeah on the pdp-11 there are autoincrement and autodecrement pointer addressing modes that are written as (Rn)+ and -(Rn) where Rn is a register containing an address. in that example *s++ = *t++ can be compiled to something like movb (R3)+, (R4)+ there's also auto-deferred ones where you use @(Rn) instead of (Rn) to denote that the register is a pointer to a pointer
|
# ? Oct 14, 2021 18:12 |
|
Sapozhnik posted:It teaches you that it's good to use clever tricks like the infamous "while (*p++ = *q++);"
|
# ? Oct 14, 2021 20:07 |
|
Carthag Tuek posted:but what does C have to do with rom hacks tho, werent they mostly written directly in assembly? & if not, was there a source code leak? The first two generations of Pokemon games were written in assembly, the third gen used mostly C with a little C++, and gen four used mostly C++. Also, lol, from the way I've heard people talk about assembly, I thought reading assembly code would be incomprehensible and esoteric. But I've spent the past couple weeks fussing with somebody's else's ROMhack of a gen II game, and actually it's more like... oh no, how will I ever figure out what the file called "moves.asm", and which contains a list of all Pokemon moves written in all caps, does? Truly, a mystery... Kazinsal posted:the pokemon rom hacking community is a batshit niche with all sorts of crazy decompilation stuff going on so it wouldn't surprise me if someone wrote some kind of object loader that can link compiled C into a specific set of game boy ROMs without issue Pokemon games up into the DS-era (so, 4th gen in the series) have been decompiled by the ROMhack community at this point. And the decomps are reliable enough; you can even buy ROMhacks on custom cartridges from Etsy, if you're a hardware purist and only want to play your bonkers ROMs on the original hardware. As far as I know, no one's managed it for the 3DS or later games.
|
# ? Oct 14, 2021 21:03 |
|
solid lol at using manually hacking a pokemon cart and writing it up on the internet as evidence of ability vs a truly acceptable corporate cv of:
smdh at kids these days
|
# ? Oct 14, 2021 22:15 |
|
The best C book is C primer plus. The best C++ book is C++ primer plus.
|
# ? Oct 14, 2021 22:29 |
|
DoomTrainPhD posted:The best C book is C primer plus.
|
# ? Oct 14, 2021 22:36 |
|
Sapozhnik posted:I haven't read K&R so take this with a pinch of salt but from what I understand it can teach you some very bad habits, since it was written in a very different time and in a very different context. I have been programming in embedded c for years now and have basically learned that there's a 0% chance I will be smarter than the compiler. Do things the most explicit way, and then let -02 take care of it. If it's hard to read, it's probably wrong
|
# ? Oct 14, 2021 23:14 |
|
agreed, for most compilers, and for most constructs. I’m sure you remember the bad old days before gcc had everything or on weird arch’s or whatever lol
|
# ? Oct 14, 2021 23:28 |
|
I need to switch to clang and de gnuify my makefiles for my personal C project. those are the last two pieces of GNU software in my build chain except I guess technically GRUB since I use that as a PXE loader but I can just write a replacement.
|
# ? Oct 14, 2021 23:33 |
|
mystes posted:Yes but how do you pronounce it? C primer plus C plus plus primer plus. It's fun to say!
|
# ? Oct 14, 2021 23:36 |
|
Kazinsal posted:I need to switch to clang and de gnuify my makefiles for my personal C project. those are the last two pieces of GNU software in my build chain except I guess technically GRUB since I use that as a PXE loader but I can just write a replacement. Use CMake if you are using CLion. Use meson otherwise.
|
# ? Oct 14, 2021 23:37 |
|
Phobeste posted:agreed, for most compilers, and for most constructs. I’m sure you remember the bad old days before gcc had everything or on weird arch’s or whatever lol Nope! I am one of the few people who decided to get into C programming five years ago because it's the hot new poo poo (more like forced to because embedded programming is basically all c or c++)
|
# ? Oct 14, 2021 23:40 |
|
darkforce898 posted:Nope! I am one of the few people who decided to get into C programming five years ago because it's the hot new poo poo (more like forced to because embedded programming is basically all c or c++) you lucky motherfucker. I missed most of it if I’m honest but the stuff I didn’t miss really made an impression. I threaten our ees with death if they even think about asking if a psoc is a good idea
|
# ? Oct 14, 2021 23:47 |
|
Phobeste posted:you lucky motherfucker. I missed most of it if I’m honest but the stuff I didn’t miss really made an impression. I threaten our ees with death if they even think about asking if a psoc is a good idea a good policy man i really need to get back into embdev
|
# ? Oct 14, 2021 23:50 |
|
Sapozhnik posted:a good policy it’s so good now. everything is cortex m. they got real apologetic about having to switch an upcoming device from an stm32g4 to an stm32l5 because [insert supply chain rant] and I was like Uhh yes very bad hate it (knows jr dev can adapt the hal in about two days and nothing else needs to change)
|
# ? Oct 15, 2021 00:01 |
|
Sapozhnik posted:a good policy Why do you want to go back to env that's generally even shitier than desktop?
|
# ? Oct 15, 2021 05:48 |
|
at least its not web
|
# ? Oct 15, 2021 05:51 |
|
Web is fine, actually
|
# ? Oct 15, 2021 06:25 |
|
Phobeste posted:you lucky motherfucker. I missed most of it if I’m honest but the stuff I didn’t miss really made an impression. I threaten our ees with death if they even think about asking if a psoc is a good idea better than a poopsock
|
# ? Oct 15, 2021 06:26 |
|
Armitag3 posted:Web is fine, actually
|
# ? Oct 15, 2021 07:28 |
|
just remembered the time our infra team set up a new fancy autoscaling policy but left the minimum and default instance count at 0
|
# ? Oct 15, 2021 09:00 |
|
oh my god work fixed the security web proxy loving up SoundCloud, now im going to have to actually do some work
|
# ? Oct 15, 2021 09:02 |
|
for my java module at uni we are being taught using the IDE "processing", which AFAIK is supposed to be used for graphical programs, and abstracts the living poo poo out of everything why are we being taught general java using this
|
# ? Oct 15, 2021 13:23 |
|
tight feedback loop? type a couple words see a thing move on screen
|
# ? Oct 15, 2021 13:26 |
|
pokeyman posted:tight feedback loop? type a couple words see a thing move on screen i guess, but still these fuckers are going to show up to a job interview with their java knowledge from this poo poo and not know a loving thing
|
# ? Oct 15, 2021 13:28 |
|
or be correctly pissed off that getting anything done takes way longer than it should
|
# ? Oct 15, 2021 13:36 |
|
people in this forum getting mad at me for not liking java and then people getting mad about java this sure is yospos
|
# ? Oct 15, 2021 13:37 |
|
you've been gifted an easy uni module of hacking out cool fractals and spirals and you're complaining? smdh
|
# ? Oct 15, 2021 13:39 |
|
ynohtna posted:you've been gifted an easy uni module of hacking out cool fractals and spirals and you're complaining? smdh for real
|
# ? Oct 15, 2021 14:01 |
|
Xarn posted:Why do you want to go back to env that's generally even shitier than desktop? embedded is fun at least the stuff i've done/am doing is
|
# ? Oct 15, 2021 14:03 |
|
yea tbh that sounds way more fun than building a lame inventory tracking system or whatever the gently caress
|
# ? Oct 15, 2021 14:03 |
|
less "cool fractals" and more uh this guy
|
# ? Oct 15, 2021 14:03 |
|
embdev is not yet completely infested with css and javascript although i'm sure it's getting there so it is better than desktop for that reason alone
|
# ? Oct 15, 2021 14:06 |
|
seriously though look at this this is the ENTIRE program (in processing) to draw that bike and make it go left to right across the screen literally everything Java code:
|
# ? Oct 15, 2021 14:15 |
|
reminds me of qbasic days just open a blank file, write two lines of code and you've got a circle on the screen why are you complaining again?
|
# ? Oct 15, 2021 14:19 |
|
because im learning nothing and he's framing it like "this IS java, this is exactly what its like everywhere" and that makes me worried for the rest of these fuckers too
|
# ? Oct 15, 2021 14:20 |
|
hbag posted:less "cool fractals" and more uh a reliant robin?
|
# ? Oct 15, 2021 14:39 |
|
duz posted:a reliant robin? no that has THREE wheels
|
# ? Oct 15, 2021 14:42 |
|
|
# ? Dec 3, 2024 14:41 |
|
All schooling is like this.
|
# ? Oct 15, 2021 14:47 |