|
|
01-24-2020, 09:16 PM
|
|
California Sober
|
|
Join Date: Jul 2004
Location: Silicon Valley
Gender: Bender
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Quote:
Originally Posted by Ari
I decided to start learning python, it’s amusing what things it’s picky about and what it’s ok with. Somewhere in previous programming I got in the habit of using indents to make things more readable to me, this is both good and bad. Omg yes Python, I know that’s not supposed to be indented.
|
This still makes me itch on a fundamental level. Whitespace choices should be made for the benefit of a human reader, not the compiler/interpreter.*
Quote:
My previous programing experience includes a variety of different basics and a little bit of C but where I spent most of my time was a combination of assembly and hypercard (which is a hilarious combination, given hypercard is basically scripted powerpoint and in assembly you’re controlling individual clock cycles and memory registers), which means I focused on fighting with the languages to do what I wanted as much as actually making things.
|
Wow. You're right, that is hilarious.
Quote:
I wrote a quick Fizz Buzz* program and a terminal tic tac toe game, and my versions feel quite kludgy and BASIC style, so now it’s time to find some videos and do some reading, if anyone has any suggestions of Python for intermediates, I’ve found lots of Python for beginners but some are a bit too beginner.
There are a lot of code in my tic tac toe game that feel like there should be an option to condense things and let the language take over, like I’m sure there’s a way to make an array or matrix for my tic tac toe board instead of faking one with a few dozen independent variables.
|
I like this video:
It's not really beginner or intermediate, it's about taking your existing (and possibly inherited) code base and making it more pythonic.
Quote:
*Fizz Buzz was stolen from a youtube video and is said to be an interview question. Write a program that outputs 1 to 100 but where ever there’s a multiple of 3 say Fizz, whenever a multiple of 5 say Buzz and a multiple of 3 and 5, FizzBuzz. I think FizzBuzz should be adopted as the thing after Hello world, since Hello World always felt a bit too simple to me for any language beyond assembly.
|
This was a very popular interview question here before it got banned for being leaked all over the internet. It's still one of my go-to mock interview questions.
* I can think of at least two exceptions to this, but they are esoteric as hell. Don't @ me.
|
01-24-2020, 09:47 PM
|
|
I read some of your foolish scree, then just skimmed the rest.
|
|
Join Date: Jan 2005
Location: Bay Area
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
As a kid I liked the early cd puzzle game Myst and discovered that not only was it written in Hypercard with a bunch of add on libraries but that the game on the mac disc was just a bunch of hypercard stacks hiding as game files and could be copied out and fed back into hypercard in an editable way. Which means a bunch of my early programing experience was from a game that hacked around the pitfalls of hypercard.
I also learned 68k Assembly on the same machine, and I think anyone who programs seriously should be forced to work in some sort of assembly just so they can thank the many features of a higher level language. Which may or may not have to do with friends being unimpressed when telling them I made a line and animated it to spin in a circle (to the detriment of any input besides a hard debugger break, Computer: “I guess spinning this line is my life now...”)
Oow, that looks interesting!
I like that there are a couple different ways to tackle Fizzbuzz and IMO *take in a sequence, perform a check or operation on it and output a modified sequence* is so much more computery than *show static text*
|
01-24-2020, 10:07 PM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
inb4 ceptimus recommends Project Euler - yes they are mathematical puzzles but quite a range of different kinds, and that will help you look at different kinds of programming approach.
Learning Python is a laudable goal, but I find (my experience and others') that "learning a language" as a goal gets pretty tedious. You get a lot further if you try to build something that interests you, and learn the language as you go along. Don't feel you need to learn anything more than you probably already know before tackling something big. Don't feel you need to make your first efforts "Pythonic". But do embrace the idea of rewriting what you've done to make it more pythonic, to make it more modular, to make it more flexible - those are things we should all be doing at all stages (do what I say not ...)
I don't remember any single tutorials or sites being particularly helpful, just a lot of googling for answers and advice, and a lot of reading the official documentation.
You could always post one of your programs for feedback here
|
01-24-2020, 10:10 PM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Quote:
Originally Posted by Ari
I like that there are a couple different ways to tackle Fizzbuzz and IMO *take in a sequence, perform a check or operation on it and output a modified sequence* is so much more computery than *show static text*
|
You mean like this ...
Code:
print(1)
print(2)
print('Fizz')
print(4)
print('Buzz')
...?
|
01-25-2020, 08:30 AM
|
|
Shitpost Sommelier
|
|
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
What is it called when you're reading a web page and some ad shoots you through a series of pages to make it hard to back up from?
__________________
Peering from the top of Mount Stupid
|
01-25-2020, 10:27 AM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
A fuckup of history-button proportions?
|
01-25-2020, 10:53 AM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Redirect chain abuse?
I have a feeling the problem you describe does have some semi-informal name.
|
01-25-2020, 12:51 PM
|
|
Man in Black
|
|
Join Date: Dec 2004
Location: Over here.
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
I use a MacBook for iOS programming. It is managed by the company. I have to change passwords every 3 months. The login is connected somehow to my company network login. What happens is that I change my password as required...and the MacBook lags behind the rest of it all, meaning that I have to log in on the MacBook using the previous password. Then I get a prompt to enter the new password, separate from the Mac login window. Then I get a prompt to update the Keychain password. Which seems to fail silently, generating a new login Keychain. Then my signing certificate for Xcode for the MacBook can't be found in the new Keychain. I've learned how to find the previous Keychain and rename it and add it to the Keychain Manager but then I have to enter the password for that old keychain. It is driving me nuts. Is there a way to import items from the old keychain into the current login keychain, and how am I to know which oneses I needses? At least I have the signing certificate available but geez oh man I do not understand the nefarious intricacies of Keychain management.
__________________
The flash of light you saw in the sky was not a UFO. Swamp gas from a weather balloon was trapped in a thermal pocket and reflected the light from Venus.
--
Official Bunny Hero
|
01-25-2020, 02:58 PM
|
|
Solitary, poor, nasty, brutish, and short
|
|
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Quote:
Originally Posted by Kamilah Hauptmann
What is it called when you're reading a web page and some ad shoots you through a series of pages to make it hard to back up from?
|
It's a type of callback, but I don't know if it has a name of its own other than back button hijacking.
Here is me complaining about them before. I went back to find that to see if anyone had said what they're called, but nobody did.
Last edited by lisarea; 01-25-2020 at 03:11 PM.
|
01-26-2020, 11:40 PM
|
|
I read some of your foolish scree, then just skimmed the rest.
|
|
Join Date: Jan 2005
Location: Bay Area
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Ok 6 problems in to projecteuler and Im hooked. There are clearly some I can’t do but ones I can are just enough of a challenge to feel like a small accomplishment getting a green check.
|
02-06-2020, 02:10 AM
|
|
Man in Black
|
|
Join Date: Dec 2004
Location: Over here.
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Er um yeah about that button that is supposed to close the overlay but isn't there in the app build I sent today...it's there but it's not visible because I set the underlying view layer to a Z-index > 0 which kinda sorta obscures that button...just tap where it used to be, up there in the corner. Maybe draw one on your iPad screen with a Sharpie for now.
__________________
The flash of light you saw in the sky was not a UFO. Swamp gas from a weather balloon was trapped in a thermal pocket and reflected the light from Venus.
--
Official Bunny Hero
|
02-06-2020, 02:19 AM
|
|
I read some of your foolish scree, then just skimmed the rest.
|
|
Join Date: Jan 2005
Location: Bay Area
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Patch notes: print on transparency and patch this overlay on to the ipad screen to fix bug where overlay close button wasn’t appearing. Notice: this button does not close the overlay on the screen but does close the on screen overlay.
|
02-06-2020, 09:14 AM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Quote:
Originally Posted by Pyrrho
Maybe draw one on your iPad screen with a Sharpie for now.
|
I have drawn an additional on my screen for this point alone.
|
02-07-2020, 07:47 AM
|
|
Shitpost Sommelier
|
|
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
__________________
Peering from the top of Mount Stupid
|
02-14-2020, 03:03 AM
|
|
Man in Black
|
|
Join Date: Dec 2004
Location: Over here.
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Website I manage...has a contact form...sends email via standard PHP mail() function to an account on the server which we access via webmail and/or email client specially set up for that purpose. New bosses have demanded that the form send the email directly to them. Explained the concept of spam to them. Also explained that their corporate email system automatically blocks emails from their web server because it's on a different system from their in-house system and the form emails will go into a bitbucket someplace that we can't do anything about.
Them: WE DEMANDS R EMAILS!! CONFIGURE FORM TO SEND DIRECTLY!!
Okay then! One less thing for me to monitor.
It's okay though, because the form gets like 2 or 3 spammers filling it out each week. Even the spambots are staying away in droves.
__________________
The flash of light you saw in the sky was not a UFO. Swamp gas from a weather balloon was trapped in a thermal pocket and reflected the light from Venus.
--
Official Bunny Hero
|
02-14-2020, 08:34 AM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Quote:
Originally Posted by Pyrrho
It's okay though, because the form gets like 2 or 3 spammers filling it out each week. Even the spambots are staying away in droves.
|
Want that to change?
|
02-14-2020, 07:47 PM
|
|
I read some of your foolish scree, then just skimmed the rest.
|
|
Join Date: Jan 2005
Location: Bay Area
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
E-mail’s so slow and outdated, we want to stay on the pulse, clearly the form send to their personal sms instead!
|
02-17-2020, 09:14 PM
|
|
Shitpost Sommelier
|
|
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
__________________
Peering from the top of Mount Stupid
|
02-19-2020, 12:45 PM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
My metadata has metadata.
|
03-13-2020, 07:24 AM
|
|
Shitpost Sommelier
|
|
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
__________________
Peering from the top of Mount Stupid
|
03-13-2020, 09:43 AM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Isn't exactly the reverse of what Verizon did during the California fires last year? (Or some ISP during some event in some recent year)
|
03-25-2020, 06:27 PM
|
|
Shitpost Sommelier
|
|
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
__________________
Peering from the top of Mount Stupid
|
04-04-2020, 08:35 PM
|
|
Shitpost Sommelier
|
|
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
__________________
Peering from the top of Mount Stupid
|
04-14-2020, 08:35 PM
|
|
Shitpost Sommelier
|
|
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
__________________
Peering from the top of Mount Stupid
|
04-18-2020, 03:03 AM
|
|
Stoic Derelict... The cup is empty
|
|
Join Date: Sep 2011
Location: The Dustbin of History
Gender: Male
|
|
Re: Bits and PCs - a Computers and Tech Miscellany
Anyone know COBOL? The news says some states need people to help get their mainframes to process unemployment requests or something like that. Hard to find people who can work it.
__________________
Chained out, like a sitting duck just waiting for the fall _Cage the Elephant
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 05:47 AM.
|
|
|
|