|
flakeloaf posted:hey computer this makes perfect sense not sure what the issue is.
|
# ¿ Jul 17, 2018 20:43 |
|
|
# ¿ Apr 25, 2024 17:23 |
|
one of those is an array of chars and the other one is an array of char pointers.
|
# ¿ Jul 17, 2018 20:51 |
|
JawnV6 posted:int* ptr1, ptr2; this always bugged me enough that i would never declare 2 variables on the same line because of it.
|
# ¿ Jul 17, 2018 21:36 |
|
Star War Sex Parrot posted:im glad I've never had to touch a javascript or a php it’s called “being a professional”
|
# ¿ Jul 18, 2018 05:56 |
|
JawnV6 posted:fake edit: i wanna say MISRA or similar disallows multiple declarations on the same line, but can't find the actual rule I swear when I was messing with MISRA this rule applied, but maybe it’s a Mandela effect going on.
|
# ¿ Jul 18, 2018 06:00 |
|
no tabs, 3 space indent, no spaces between if/for/while and parenthesis, indent the brackets to the next level on the next line.code:
|
# ¿ Jul 18, 2018 14:47 |
|
Lutha Mahtin posted:is there a way to auto format comments in jetbrains ides? in java files they support autoformatting when it's a javadoc comment, but not when it's a standard block or line comment. I've looked around and not found anything for it, which is super frustrating because the code to do it is obviously there select all, code -> reformat code
|
# ¿ Jul 18, 2018 22:16 |
|
phds are fine if you want to be in academics for the rest of your life and you hate writing good code. but lol if you pay for your graduate studies, you'll never make the money back. if it's not paid for by the school it aint worth it.
|
# ¿ Jul 20, 2018 17:57 |
|
tool and library development is my favorite part about my job since I don’t have to be nice to the customers at all. at this point most of my job is pointing people in the right direction or gesticulating wildly in front of a whiteboard about an algorithm or process. then whenever we run into a problem that doesn’t have a fix off the shelf (deployment tools, source code generators, etc) I get to throw my headphones on and just knock out a bunch of code, and is probably the only time where the requirements are actually 100% known at start
|
# ¿ Jul 22, 2018 14:26 |
|
i need a java library that does parsing of html, it doesnt have to be perfect, i just want to set up a proxy webserver and use the library to replace some strings without compltely breaking the html tags. i own a domain that is a parody of a very popular nazi discussion board and i'm going to have some fun with it. any suggestions
|
# ¿ Jul 23, 2018 14:42 |
|
i'd rather not work with a plang and have to set up uwsgi or anything like that
|
# ¿ Jul 23, 2018 14:57 |
|
tef posted:is https://github.com/rath/libxml2-java an option? well, any bindings to libxml2? i mean, it does the job might work maybe, but im going to be working with parsing html written by racists so im going to assume it's not going to have closed tags etc
|
# ¿ Jul 23, 2018 17:58 |
|
Peeny Cheez posted:Using a proper XML library for HTML is like trying to pick up hookers in a go-kart: it's probably not going to work and you look foolish doing it. ty. seems to be the consensus. going to make some skinheads realmad with this project.
|
# ¿ Jul 23, 2018 18:17 |
|
<p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br><p><br>
|
# ¿ Jul 23, 2018 20:22 |
|
wow jsoup works great. almost got the html transformer part of my project done last night. just going to do one for the css and javascript then slap it in a netty webserver. surprisingly enough, nazis make well formed html so i probably could have done it with a plain xml parser, but whatever
|
# ¿ Jul 24, 2018 14:33 |
|
djgpp? that's a name i haven't heard in ages.
|
# ¿ Jul 24, 2018 15:37 |
|
maybe if windows wasnt a POS OS...
|
# ¿ Jul 26, 2018 19:02 |
|
there's a very small number of companies these days that can justify running their own hardware. anyone who argues otherwise are people whose sole skill is running such hardware, and are terrified of becoming obsolete, despite the fact that it already happened.
|
# ¿ Jul 30, 2018 13:42 |
|
you shouldn't be using whatever UI a service provides to manage your cloud infrastructure. might as well just use the compaq stuffed under an interns desk at that point.
|
# ¿ Jul 30, 2018 13:59 |
|
floatman posted:I have tests for a codebase with no abstractions, no dependency injections. Imagine MVC, but no models so controllers and views are directly touching database tables. why you should define an xsd schema for your xml documents.txt.doc.zip.exe
|
# ¿ Aug 1, 2018 15:26 |
|
Finster Dexter posted:That has almost nothing to do with why this is horrible. at least you could generate the code to form the XML then instead of hand writing it
|
# ¿ Aug 1, 2018 18:51 |
|
there’s no way I wouldn’t get into the exact same poo poo Mcafee did if i were in Belize.
|
# ¿ Aug 5, 2018 20:36 |
|
my first lovely programmer job was being a temp at a place optimizing sql queries to speed up crystal reports that were embedded in ASP 1.0 pages, which used COM objects for database access. after 8 months the other lead devs left and I was the lead.
|
# ¿ Aug 9, 2018 03:08 |
|
CRIP EATIN BREAD posted:my first lovely programmer job was being a temp at a place optimizing sql queries to speed up crystal reports that were embedded in ASP 1.0 pages, which used COM objects for database access. Mao Zedong Thot posted:extremely literal a bit afterwards half the company got sold off and i left because i didn't want to help with the transition because it was going to be a clusterfuck. also my loving college was going to pay me more for research, with health benefits, and free tuition, so that sweetened the pot
|
# ¿ Aug 9, 2018 15:00 |
|
sometimes i go a whole week without doing anything at all
|
# ¿ Aug 9, 2018 23:15 |
|
of course there is
|
# ¿ Aug 9, 2018 23:38 |
|
cinci zoo sniper posted:9 months in, is absolutely baffled by and unable to perform such complex devops manipulations as "ssh into centos box and type htop to see ram use or cat a config file in known path to check the variables" (decade of professional it experience) i'm working with another organization who has their "AWS IT Specialist" as our point of contact, and the guy didn't even know what an AWS access key was, where to configure the AWS client credentials, or how to use the AWS cli to assume a role and grab an auth token. the guy is in charge of their AWS infrastructure. i once watched him struggle with why their server couldn't reach some endpoint we had and its because he decided to put an EC2 instance in a subnet with no routes through a NAT or to the internet. he spent 30 minutes looking at his iptables configuration before finally agreeing that what he was doing wasn't going to work. some people are so loving stupid, i feel like contacting his employer and throwing him under the bus for being so incompetent.
|
# ¿ Aug 10, 2018 18:03 |
|
MALE SHOEGAZE posted:sorry i should have been more specific, i meant binary formats specifically, although it wouldn't need to be restricted as such. it'll need to be custom built, unless the format is braindead simple at which point it's not very useful. also where are you sending such binary objects? would the tool need to support RS-232, JTAG, some other transport mechanism, etc? i work with a few satellite comm providers and they provide some tools that lets you define a schema for messages and then generate the binary representation from a UI to send/read for testing. same thing with a lot of the embedded hardware we deal with. the reason why postman works is because http is a standard.
|
# ¿ Aug 10, 2018 18:11 |
|
cinci zoo sniper posted:nah, i with no qualms with acknowledge that the guy smart and a rock solid dwh architect/database anything really senior in general. i just wish he'd at least try to step outside of his comfort zone, he's extremely bad at doing that, and so non-windows things are still a black box to him, and so is communication with non-programmers i meant making GBS threads on the guy i was talking about, not your dude. my blood just started boiling when thinking of an "AWS system admin" who doesn't know AWS at all, besides logging into the GUI and following tutorials for EVERY. SINGLE. THING.
|
# ¿ Aug 10, 2018 18:23 |
|
i had never heard of dbt either but i looked into it last night. it's not really an ORM as much as it is a way to organize a bunch of select statements via templates and then compile them, with some built in helpers to make iteratively copying data easier to handle in a standard way. seems like its cool.
|
# ¿ Aug 10, 2018 18:53 |
|
MALE SHOEGAZE posted:can anyone recommend exercises for getting comfortable with hex, binary, and their associated operations? They make me sick to my stomach but I just need practice. I need something like that vim adventure but for binary and hex. do all the project euler puzzles in x86 assembly. you'll be a bit flipping wizard in a few days. problem with binary operations is that they are often processor specific, unless they are abstracted away from you by the language, but even then, shifting a 8 bit integer to the left 9 bits will always be implementation specific. ran into that a lot when i was debugging some code on an embedded machine that was giving weird errors but when testing the expressions in GDB it seemed to be correct, because GDB implemented bit shift THIS way, and the target processor implemented bit shift THAT way, doo da doo doo
|
# ¿ Aug 12, 2018 16:33 |
|
Symbolic Butt posted:jesus I can't even imagine coding a sieve of eratosthenes in assembly code:
|
# ¿ Aug 12, 2018 20:55 |
|
i did not write this, this is from the project euler guy who answers all the questions in x86 assembly
|
# ¿ Aug 12, 2018 23:41 |
|
MALE SHOEGAZE posted:personally, i've found the functional approach incredibly useful to me throughout my career. i dabbled in haskell very early in my programming development, and while i remember little to nothing about haskell, a few of the functional concepts stuck with me and i think they helped me a lot, even when i was working on a terrible rails app. there are very few places where you can't escape from some stateful context into a pure function. this, a hundred times this. you don't need to be purely functional, but if you have stuff with side effects that populates values which are SOMETIMES needed, I will loving berate a coworker about this kind of thing to no end. This stuff drives me mad: code:
code:
code:
|
# ¿ Aug 13, 2018 12:03 |
|
Sapozhnik posted:You must absolutely make your unit tests deterministic. So yeah hard code some plausible minimal test cases into your code. In situations where randomness is required your classes under test must take an RNG as a constructor param and you should supply an RNG that was initialized with a hard coded seed. also to compound on this, if anything is time-based (now(), etc), make sure whatever functions you write let you pass in the current time, so you can test it. basically: code:
|
# ¿ Aug 14, 2018 14:36 |
|
Sapozhnik posted:Well in that specific case it may be better to pass a Clock, but of course it depends on the exact task at hand well yeah, i was trying to simplify it.
|
# ¿ Aug 14, 2018 14:56 |
|
best thing is that if you are writing with testing in mind, not only is it easier to test your code, it really enforces thinking about some design decisions that will improve your code in general. you can also go overboard though: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition I'm the LoopContextStateManipulation.java LoopContextStateRetrieval.java LoopPayloadExecution.java LoopCondition.java LoopContext.java LoopFinalizer.java LoopInitializer.java LoopRunner.java LoopStep.java
|
# ¿ Aug 14, 2018 20:06 |
|
we use phabricator at work and i'll never go back
|
# ¿ Aug 14, 2018 20:43 |
|
bob dobbs is dead posted:phab is good as hell but they note right there on their front page that they use php so "even babies and dogs can contribute (with supervision)" for awhile on their site navigation bar there was a link just titled "pokemon" that just listed off different types of pokemon. its a good piece of software.
|
# ¿ Aug 14, 2018 21:33 |
|
|
# ¿ Apr 25, 2024 17:23 |
|
this thread made me look into that emulator101.com page and now im designing UIs for a debugger in ANSI C. thx, thread
|
# ¿ Aug 20, 2018 20:58 |