|
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
|
# ¿ Jul 17, 2018 22:17 |
|
|
# ¿ May 25, 2024 13:47 |
|
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
|
# ¿ Jul 19, 2018 21:26 |
|
flakeloaf posted:file io in c++ is hard and it makes me feel stupid just #include <cstdio>
|
# ¿ Jul 21, 2018 11:54 |
|
delphi is the answer. all the good parts of vb but with a not entirely terrible language behind it
|
# ¿ Jul 23, 2018 10:09 |
|
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
|
# ¿ Jul 27, 2018 20:58 |
|
Luigi Thirty posted:the Russians used a pointer
|
# ¿ Jul 28, 2018 18:06 |
|
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
|
# ¿ Jul 31, 2018 09:30 |
|
ctps: copy constructors are hard so I just did clone() { return unserialize(seriallize(this)); }
|
# ¿ Aug 3, 2018 18:56 |
|
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
|
# ¿ Aug 4, 2018 18:13 |
|
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
|
# ¿ Aug 7, 2018 18:39 |
|
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
|
# ¿ Aug 11, 2018 22:23 |
|
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.
|
# ¿ Aug 13, 2018 10:42 |
|
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
|
# ¿ Aug 13, 2018 17:50 |
|
Captain Foo posted:what's a unit test code:
|
# ¿ Aug 14, 2018 00:28 |
|
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:
|
# ¿ Aug 14, 2018 10:19 |
|
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
|
# ¿ Aug 15, 2018 07:10 |
|
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
|
# ¿ Aug 17, 2018 19:41 |
|
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"
|
# ¿ Aug 18, 2018 11:29 |
|
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:
|
# ¿ Aug 20, 2018 20:04 |
|
Sapozhnik posted:java 10 has local variable type inference so does java 8, if you’re not allergic to lombok
|
# ¿ Aug 23, 2018 18:39 |
|
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
|
# ¿ Aug 23, 2018 20:20 |
|
very carefully
|
# ¿ Aug 29, 2018 16:26 |
|
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
|
# ¿ Aug 30, 2018 20:57 |
|
AggressivelyStupid posted:
appropriate username/code combo
|
# ¿ Sep 10, 2018 21:05 |
|
AggressivelyStupid posted:malloc AggressivelyStupid posted:it's modern c++ uhuh
|
# ¿ Sep 10, 2018 21:51 |
|
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
|
# ¿ Sep 15, 2018 15:30 |
|
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.
|
# ¿ Sep 20, 2018 23:03 |
|
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”
|
# ¿ Sep 21, 2018 11:32 |
|
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.
|
# ¿ Sep 22, 2018 08:47 |
|
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
|
# ¿ Sep 24, 2018 23:17 |
|
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
|
# ¿ Sep 25, 2018 15:21 |
|
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
|
# ¿ Sep 27, 2018 10:34 |
|
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
|
# ¿ Sep 27, 2018 17:38 |
|
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
|
# ¿ Sep 30, 2018 22:13 |
|
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
|
# ¿ Oct 1, 2018 19:01 |
|
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
|
# ¿ Oct 7, 2018 19:44 |
|
lol if your login page doesn’t send the plaintext password for a client side check
|
# ¿ Oct 9, 2018 08:22 |
|
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
|
# ¿ Oct 11, 2018 00:10 |
|
ctps: somehow I’ve ended up writing a perl script
|
# ¿ Oct 16, 2018 02:29 |
|
|
# ¿ May 25, 2024 13:47 |
|
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?
|
# ¿ Oct 20, 2018 21:00 |