|
cinci zoo sniper posted:if you dep to windows the conda env is an option, otherwise (and maybe in general) check out pipenv, it’s the new hotness quote:Pipenv is a dependency manager for Python projects. If you’re familiar with Node.js’ npm is where i stopped reading
|
![]() |
|
![]()
|
# ¿ Mar 25, 2023 05:18 |
|
Lutha Mahtin posted:i did too. if one's goal is to learn the general theory and practice of how native code is executed on hardware, I'd definitely suggest going with an easy to learn architecture like MIPS just ... not the kind of mips they used in ps1-era consoles, in which the instruction after a jump is always executed even if the jump was taken, and the instruction after a read or store will still see the old value
|
![]() |
|
flakeloaf posted:file io in c++ is hard and it makes me feel stupid just #include <cstdio>
|
![]() |
|
delphi is the answer. all the good parts of vb but with a not entirely terrible language behind it
|
![]() |
|
replaced a horrendously fragile mess of regexes with an antlr grammar today naturally the main outcome is that i am now aware that none of the inputs are actually well-formed
|
![]() |
|
Luigi Thirty posted:the Russians used a pointer
|
![]() |
|
Toady posted:i've never understood why there are two programming threads there is a thread where we admit we’re terrible programmers and a thread where we pretend we’re not
|
![]() |
|
ctps: copy constructors are hard so I just did clone() { return unserialize(seriallize(this)); }
|
![]() |
|
comedyblissoption posted:i used vanilla emacs w/ a bunch of customizations hello I literally have autism and my .emacs.d/init.el is about 8 lines long
|
![]() |
|
gonadic io posted:goddamn logstash literally has a literal 12 minute startup time the performance of ruby, the simplicity of the jvm. what’s not to like
|
![]() |
|
MALE SHOEGAZE posted:i would like to have a deeper understanding of how computers work, and i would like to pursue career paths where having a deeper understanding of how computers work is important. I take it you’re aware that all modern processors actually compile the asm down to javascript and execute that
|
![]() |
|
MALE SHOEGAZE posted:^^ once twice refactor is such a good rule of thumb. this is a good post. learning new languages is good (even if they’re not widely used for real work), learning industry standard methodologies is good (even if yospos rightly sneers at them) basically imo if you’re learning something then you’re doing it right. learn Haskell, learn x86 asm, learn spring or asp mvc, it will all help your brain develop in useful ways. the genuinely terrible programmers are the ones who learn to do exactly one thing and then try to rely on that their whole career.
|
![]() |
|
one good reason to learn asm imo is that it forces you to think about how your code is structured, because careless or poorly documented code becomes unmaintainable after a few dozen lines of code at most, whereas in a higher level language you can get away with hundreds or even thousands of lines of bad code and still be able to work with it you almost certainly shouldn’t be using asm for anything real (unless you’re working in some very specific domains), but it’s a nice didactic tool
|
![]() |
|
Captain Foo posted:what's a unit test code:
|
![]() |
|
Stringent posted:quoting from way back, but learning vi is pretty much the equivalent to picking up smoking. it’s useful if you ever ssh into a barebones linux, or if you sudoedit without remembering to set EDITOR and can’t be bothered to change programs here is a complete cheat sheet of vi commands worth learning:
|
![]() |
|
Finster Dexter posted:I dunno, part of my bias could be the fact that the bulk of my gitlab experience has been from the on prem gitlab our Russian contractors are using. i didn't realise you wrote software for voting machines
|
![]() |
|
Sapozhnik posted:this is like the "i listen to everything except rap and country" of programming opinions no, people who reject rap and country out of prejudice are incorrect
|
![]() |
|
Schadenboner posted:How can I get myself to a place where any of what you guys are talking about makes any sense? yosposter, on deathbed: "that time i spent with people i loved was ok i guess, but drat i wish i'd had a better grasp of pl theory"
|
![]() |
|
you know you're in for a good day programming when you open up the code you need to debug and the first thing you see iscode:
|
![]() |
|
Sapozhnik posted:
so does java 8, if you’re not allergic to lombok
|
![]() |
|
CRIP EATIN BREAD posted:lombok is super bad. why? the implementation is probably hideous but I haven’t run into any problems as a user admittedly I don’t touch the parts that generate a bunch of methods, just lombok.val
|
![]() |
|
very carefully
|
![]() |
|
DONT THREAD ON ME posted:i have a basic generic linked list and if i want to define map it's all pointers to void and casting. pretty gross. I thought you were doing c not go
|
![]() |
|
AggressivelyStupid posted:
appropriate username/code combo
|
![]() |
|
AggressivelyStupid posted:malloc AggressivelyStupid posted:it's modern c++ uhuh
|
![]() |
|
comedyblissoption posted:weed-out courses are a dumb idea depends how the course is branded really. if it's computer science then that's a branch of mathematics and it's perfectly reasonable to start with theory instead of getting bogged down in "no you just have to write public static because the compiler demands it don;t worry about why yet" from day 1
|
![]() |
|
I helped debug a thing today where it turned out the third party api returned 200 application/json in all cases, but if there was an error then sometimes the content was not in fact json please do not do this.
|
![]() |
|
Chalks posted:It depends how you define your endpoint. If the functionality is "create this user or return details of the user if it already exists" it's not an error condition if it already exists. Something can "fail" to do what the user is attempting, without being an error as long as it's an anticipated part of your process flow. yes, but that kind of case isn’t what the other side is talking about I’m talking about poo poo like getting a 200 if you provide incorrect credentials, which is a textbook loving 401. I’d also accept 403. not 200. and the server still claims it sent you application/json even though the content is the bare text “invalid credentials”
|
![]() |
|
anatoliy pltkrvkay posted:thankfully we now have HTTP/2, aka "content-length mismatches are now a fatal error, get hosed" we’ve learned the hard way that the so-called robustness principle is a terrible idea that inevitably leads to security disasters. eg a different kind of content body not matching content length was literally the bug behind heartbleed. maybe it’s harmless in an http context but it’s better to just force terrible programmers to fix our terrible code and not take the risk.
|
![]() |
|
The_Franz posted:no, "basic" text editors shouldn't require you to read a manual just to figure out how to move the cursor, make a simple change and save the file except in emacs you can move the cursor by pressing the cursor keys, and save the file by either clicking on the “save” icon in the toolbar or selecting “save” from the file menu, just like other editors? it’s pretty simple. and most of the common keyboard shortcuts are the same as in bash so you’ll want to get used to them anyway if you’re using a linux. MononcQc posted:how come everyone wanting to interrupt a topic in this thread does it to talk about rust-related things? I’m glad rust is the current hipste
|
![]() |
|
akadajet posted:nano works mostly okay, shaggar nano is really bad. the only reason for anyone to start using it today is because emacs and vi use non-standard keyboard shortcuts ... except so does nano so that’s not much of an improvement. just learn a proper editor if you ever actually need to edit files in a terminal, which you probably don’t
|
![]() |
|
jit bull transpile posted:lol all the scala idiots in my org are gonna get so much louder now do they not understand that this affects scala in exactly the same way as it affects java
|
![]() |
|
gonadic io posted:In general I have found haskell library documentation to be quite poor you have the type signature, what more could you possibly need
|
![]() |
|
mystes posted:Didn't he say they were literally not allowed to use other companies' IDEs anyway? So I don't think they have much choice about dogfooding unless they have a secret less lovely internal IDE. I mean there is a third option: no ide literally saw someone internally arguing in favor of writing code in loving notepad++ the other day. thank god they weren’t working on anything I’ll ever have to touch
|
![]() |
|
ctps: major third-party dependency finally has a version that supports java 9+ so now we're looking at updating our stuff! ![]() except we still have to support java 8 as well. multi-release jars look like the way to go but every time i look into how to actually produce them i find myself contemplating a career change
|
![]() |
|
Main Paineframe posted:current terrible programmer status: for OO practice and refreshing my vague memories of Java, i made a little card game engine make a text-mode ui, there must be java bindings for ncurses or w/e
|
![]() |
|
lol if your login page doesn’t send the plaintext password for a client side check
|
![]() |
|
ctps: git continues to have the worst, most user-hostile interface ever designed who the gently caress thought that it was a good idea to have both "git show revision path" and "git show revision:path", and for them to do completely different things
|
![]() |
|
ctps: somehow I’ve ended up writing a perl script
|
![]() |
|
![]()
|
# ¿ Mar 25, 2023 05:18 |
|
Finster Dexter posted:I know I'm lttp for js spa talk, but at the risk of shaggaring I have the horrible opinion that asp.net core mvc with plain ol' razor views is the pinnacle of webdev right now. I want server-side rendering and jfc get nodejs away from me eww gross so you’ll be able to write the same lovely spas using equally lovely frameworks ...... but with all the joys of c++ on top?
|
![]() |